diff options
author | CrystalP <crystalp@kodi.tv> | 2024-05-14 21:38:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-14 21:38:27 -0400 |
commit | e6953712f334273ba0877be277ce4ce396f2b64a (patch) | |
tree | 6007f32c5fea9b32cb8a6c8d7cbe61843ba072a9 | |
parent | 7d0255e3e657b9aac1f2f11aa018eec9ec265371 (diff) | |
parent | 931e88aec8a6148f4a2479f56e6b3099bca2a6b6 (diff) | |
download | xbmc-e6953712f334273ba0877be277ce4ce396f2b64a.tar.xz |
Merge pull request #25198 from 78andyp/nfofix
[Video] Fix Episode NFO parsing error (introduced in #24565)
-rw-r--r-- | xbmc/NfoFile.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/xbmc/NfoFile.cpp b/xbmc/NfoFile.cpp index f74d0efd20..2b5a302bb6 100644 --- a/xbmc/NfoFile.cpp +++ b/xbmc/NfoFile.cpp @@ -11,7 +11,6 @@ #include "NfoFile.h" -#include "FileItem.h" #include "FileItemList.h" #include "ServiceBroker.h" #include "addons/AddonManager.h" @@ -60,13 +59,12 @@ CInfoScanner::INFO_TYPE CNfoFile::Create(const std::string& strPath, int infos=0; while (m_headPos != std::string::npos && details.m_iEpisode != episode) { - m_headPos = m_doc.find("<episodedetails", m_headPos); + m_headPos = m_doc.find("<episodedetails", m_headPos + 1); if (m_headPos == std::string::npos) break; bNfo = GetDetails(details); infos++; - m_headPos++; } if (details.m_iEpisode != episode) { |