Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Don't correct episode numbering from scraper #1093

Merged
1 commit merged into from

2 participants

@ScudLee

This removes the code that corrects the episode numbers retrieved from a scraper so that the lowest episode number becomes episode 1.

Does this code have any legitimate use? It just seems to cause the occasional confusion:
http://forum.xbmc.org/showthread.php?tid=128732
http://forum.xbmc.org/showthread.php?tid=132441
http://forum.xbmc.org/showthread.php?tid=134266

@jmarshallnz
Owner

@cptspiff Where does this come from?

@ghost

It is a mighty old leftoter that was there to facilitate an old tv.com scraper. For some stupid reason they used a flat episode number at some point and this code was there to compensate. Nuke at will

@ghost ghost merged commit d3cc12d into xbmc:master
@tru tru referenced this pull request from a commit in RasPlex/plex-home-theatre
@tru tru Send filter and sort arguments to the PlayQueue
Fixes #1093
84980f0
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 19, 2012
  1. @ScudLee
This page is out of date. Refresh to see the latest.
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;
}
Something went wrong with that request. Please try again.