Skip to content

Commit

Permalink
[Fix] Only start checking the nfo file from the first episodedetails tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ScudLee committed Apr 16, 2013
1 parent 4ffa7d5 commit 1c73d22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xbmc/NfoFile.cpp
Expand Up @@ -71,6 +71,7 @@ CNfoFile::NFOResult CNfoFile::Create(const CStdString& strPath, const ScraperPtr
if (episode > -1 && bNfo && m_type == ADDON_SCRAPER_TVSHOWS) if (episode > -1 && bNfo && m_type == ADDON_SCRAPER_TVSHOWS)
{ {
int infos=0; int infos=0;
m_headofdoc = strstr(m_headofdoc,"<episodedetails");
while (m_headofdoc && details.m_iEpisode != episode) while (m_headofdoc && details.m_iEpisode != episode)
{ {
m_headofdoc = strstr(m_headofdoc+1,"<episodedetails"); m_headofdoc = strstr(m_headofdoc+1,"<episodedetails");
Expand Down

0 comments on commit 1c73d22

Please sign in to comment.