Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't correct episode numbering from scraper

  • Loading branch information...
commit 6f04edaca7a2d2d6c058d44f345787fba4bba8c9 1 parent 72ffc4b
@ScudLee authored
Showing with 0 additions and 19 deletions.
  1. +0 −19 xbmc/addons/Scraper.cpp
View
19 xbmc/addons/Scraper.cpp
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.