Skip to content

Commit

Permalink
Don't correct episode numbering from scraper
Browse files Browse the repository at this point in the history
  • Loading branch information
ScudLee committed Jun 19, 2012
1 parent 72ffc4b commit 6f04eda
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions xbmc/addons/Scraper.cpp
Expand Up @@ -832,25 +832,6 @@ EPISODELIST CScraper::GetEpisodeList(XFILE::CCurlFile &fcurl, const CScraperUrl
}
}

// find minimum in each season
map<int, int> mpMin;
for (EPISODELIST::const_iterator i = vcep.begin(); i != vcep.end(); ++i)
{
map<int, int>::iterator iMin = mpMin.find(i->key.first);
if (iMin == mpMin.end())
mpMin.insert(i->key);
else if (i->key.second < iMin->second)
iMin->second = i->key.second;
}

// correct episode numbers
for (EPISODELIST::iterator i = vcep.begin(); i != vcep.end(); ++i)
{
i->key.second -= mpMin[i->key.first];
if (mpMin[i->key.first] > 0)
++i->key.second;
}

return vcep;
}

Expand Down

0 comments on commit 6f04eda

Please sign in to comment.