Skip to content

Commit

Permalink
Merge branch 'release/48.0.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
alaingilbert committed Aug 20, 2022
2 parents 41355b8 + 7592cb0 commit 4807b98
Show file tree
Hide file tree
Showing 14 changed files with 432 additions and 432 deletions.
176 changes: 88 additions & 88 deletions pkg/extractor/v6/extractor.go

Large diffs are not rendered by default.

336 changes: 168 additions & 168 deletions pkg/extractor/v6/extracts.go

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions pkg/extractor/v7/extractor.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func NewExtractor() *Extractor {

// ExtractPremiumToken ...
func (e Extractor) ExtractPremiumToken(pageHTML []byte, days int64) (string, error) {
return extractPremiumTokenV7(pageHTML, days)
return extractPremiumToken(pageHTML, days)
}

// ExtractResourcesDetailsFromFullPage ...
Expand All @@ -33,7 +33,7 @@ func (e Extractor) ExtractResourcesDetailsFromFullPage(pageHTML []byte) ogame.Re

// ExtractResourcesDetailsFromFullPageFromDoc ...
func (e Extractor) ExtractResourcesDetailsFromFullPageFromDoc(doc *goquery.Document) ogame.ResourcesDetails {
return extractResourcesDetailsFromFullPageFromDocV7(doc)
return extractResourcesDetailsFromFullPageFromDoc(doc)
}

// ExtractExpeditionMessages ...
Expand Down Expand Up @@ -92,12 +92,12 @@ func (e Extractor) ExtractResourcesBuildings(pageHTML []byte) (ogame.ResourcesBu

// ExtractResourcesDetails ...
func (e Extractor) ExtractResourcesDetails(pageHTML []byte) (out ogame.ResourcesDetails, err error) {
return extractResourcesDetailsV7(pageHTML)
return extractResourcesDetails(pageHTML)
}

// ExtractConstructions ...
func (e Extractor) ExtractConstructions(pageHTML []byte) (buildingID ogame.ID, buildingCountdown int64, researchID ogame.ID, researchCountdown int64) {
return ExtractConstructionsV7(pageHTML, clockwork.NewRealClock())
return ExtractConstructions(pageHTML, clockwork.NewRealClock())
}

// ExtractFleet1Ships ...
Expand All @@ -120,7 +120,7 @@ func (e Extractor) ExtractIPM(pageHTML []byte) (duration, max int64, token strin

// ExtractIPMFromDoc ...
func (e Extractor) ExtractIPMFromDoc(doc *goquery.Document) (duration, max int64, token string) {
return extractIPMFromDocV7(doc)
return extractIPMFromDoc(doc)
}

// ExtractEspionageReport ...
Expand All @@ -139,80 +139,80 @@ func (e Extractor) ExtractOverviewProduction(pageHTML []byte) ([]ogame.Quantifia

// ExtractOverviewShipSumCountdownFromBytes ...
func (e Extractor) ExtractOverviewShipSumCountdownFromBytes(pageHTML []byte) int64 {
return extractOverviewShipSumCountdownFromBytesV7(pageHTML)
return extractOverviewShipSumCountdownFromBytes(pageHTML)
}

// ExtractOverviewProductionFromDoc extracts ships/defenses (partial) production from the overview page
func (e Extractor) ExtractOverviewProductionFromDoc(doc *goquery.Document) ([]ogame.Quantifiable, error) {
return extractOverviewProductionFromDocV7(doc)
return extractOverviewProductionFromDoc(doc)
}

// ExtractFleet1ShipsFromDoc ...
func (e Extractor) ExtractFleet1ShipsFromDoc(doc *goquery.Document) (s ogame.ShipsInfos) {
return extractFleet1ShipsFromDocV7(doc)
return extractFleet1ShipsFromDoc(doc)
}

// ExtractResourceSettingsFromDoc ...
func (e Extractor) ExtractResourceSettingsFromDoc(doc *goquery.Document) (ogame.ResourceSettings, error) {
return extractResourceSettingsFromDocV7(doc)
return extractResourceSettingsFromDoc(doc)
}

// ExtractDefenseFromDoc ...
func (e Extractor) ExtractDefenseFromDoc(doc *goquery.Document) (ogame.DefensesInfos, error) {
return extractDefenseFromDocV7(doc)
return extractDefenseFromDoc(doc)
}

// ExtractExpeditionMessagesFromDoc ...
func (e Extractor) ExtractExpeditionMessagesFromDoc(doc *goquery.Document) ([]ogame.ExpeditionMessage, int64, error) {
return extractExpeditionMessagesFromDocV7(doc, e.GetLocation())
return extractExpeditionMessagesFromDoc(doc, e.GetLocation())
}

// ExtractMarketplaceMessagesFromDoc ...
func (e Extractor) ExtractMarketplaceMessagesFromDoc(doc *goquery.Document, location *time.Location) ([]ogame.MarketplaceMessage, int64, error) {
return extractMarketplaceMessagesFromDocV7(doc, location)
return extractMarketplaceMessagesFromDoc(doc, location)
}

// ExtractFacilitiesFromDoc ...
func (e Extractor) ExtractFacilitiesFromDoc(doc *goquery.Document) (ogame.Facilities, error) {
return ExtractFacilitiesFromDocV7(doc)
return ExtractFacilitiesFromDoc(doc)
}

// ExtractResearchFromDoc ...
func (e Extractor) ExtractResearchFromDoc(doc *goquery.Document) ogame.Researches {
return extractResearchFromDocV7(doc)
return extractResearchFromDoc(doc)
}

// ExtractShipsFromDoc ...
func (e Extractor) ExtractShipsFromDoc(doc *goquery.Document) (ogame.ShipsInfos, error) {
return extractShipsFromDocV7(doc)
return extractShipsFromDoc(doc)
}

// ExtractResourcesBuildingsFromDoc ...
func (e Extractor) ExtractResourcesBuildingsFromDoc(doc *goquery.Document) (ogame.ResourcesBuildings, error) {
return extractResourcesBuildingsFromDocV7(doc)
return extractResourcesBuildingsFromDoc(doc)
}

// ExtractCombatReportMessagesFromDoc ...
func (e Extractor) ExtractCombatReportMessagesFromDoc(doc *goquery.Document) ([]ogame.CombatReportSummary, int64) {
return extractCombatReportMessagesFromDocV7(doc)
return extractCombatReportMessagesFromDoc(doc)
}

// ExtractEspionageReportFromDoc ...
func (e Extractor) ExtractEspionageReportFromDoc(doc *goquery.Document) (ogame.EspionageReport, error) {
return extractEspionageReportFromDocV7(doc, e.GetLocation())
return extractEspionageReportFromDoc(doc, e.GetLocation())
}

// ExtractCancelBuildingInfos ...
func (e Extractor) ExtractCancelBuildingInfos(pageHTML []byte) (token string, techID, listID int64, err error) {
return extractCancelBuildingInfosV7(pageHTML)
return extractCancelBuildingInfos(pageHTML)
}

// ExtractCancelResearchInfos ...
func (e Extractor) ExtractCancelResearchInfos(pageHTML []byte) (token string, techID, listID int64, err error) {
return extractCancelResearchInfosV7(pageHTML)
return extractCancelResearchInfos(pageHTML)
}

// ExtractCharacterClassFromDoc ...
func (e Extractor) ExtractCharacterClassFromDoc(doc *goquery.Document) (ogame.CharacterClass, error) {
return extractCharacterClassFromDocV7(doc)
return extractCharacterClassFromDoc(doc)
}
Loading

0 comments on commit 4807b98

Please sign in to comment.