Added developer and genre to the archive.vg scraper.

Renamed the "Play count:" label to "Times played:".
This commit is contained in:
Aloshi 2014-01-20 19:33:24 -06:00
parent ddcc43b930
commit 49130464ba
2 changed files with 8 additions and 1 deletions

View file

@ -50,6 +50,13 @@ std::vector<MetaDataList> TheArchiveScraper::parseReq(ScraperSearchParams params
//Archive.search does not return ratings
mdl.back().set("developer", game.child("developer").text().get());
std::string genre = game.child("genre").text().get();
size_t search = genre.find_last_of(" &gt; ");
genre = genre.substr(search == std::string::npos ? 0 : search, std::string::npos);
mdl.back().set("genre", genre);
pugi::xml_node image = game.child("box_front");
pugi::xml_node thumbnail = game.child("box_front_small");

View file

@ -51,7 +51,7 @@ DetailedGameListView::DetailedGameListView(Window* window, FileData* root) :
addChild(&mLblLastPlayed);
mLastPlayed.setDisplayMode(DateTimeComponent::DISP_RELATIVE_TO_NOW);
addChild(&mLastPlayed);
mLblPlayCount.setText("Play count: ");
mLblPlayCount.setText("Times played: ");
addChild(&mLblPlayCount);
addChild(&mPlayCount);