Skip to content

Commit

Permalink
fixed: only use the original listitem url for plugins
Browse files Browse the repository at this point in the history
should solve #12205 without other regressions
  • Loading branch information
spiff committed Nov 14, 2011
1 parent 5a21792 commit 1f93655
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion xbmc/utils/SaveFileStateJob.h
Expand Up @@ -24,7 +24,8 @@ class CSaveFileStateJob : public CJob
bool CSaveFileStateJob::DoWork() bool CSaveFileStateJob::DoWork()
{ {
CStdString progressTrackingFile = m_item.GetPath(); CStdString progressTrackingFile = m_item.GetPath();
if (m_item.HasProperty("original_listitem_url")) if (m_item.HasProperty("original_listitem_url") &&
URIUtils::IsPlugin(m_item.GetProperty("original_listitem_url").asString()))
progressTrackingFile = m_item.GetProperty("original_listitem_url").asString(); progressTrackingFile = m_item.GetProperty("original_listitem_url").asString();


if (m_item.IsDVD()) if (m_item.IsDVD())
Expand Down
3 changes: 2 additions & 1 deletion xbmc/video/VideoDatabase.cpp
Expand Up @@ -3664,7 +3664,8 @@ void CVideoDatabase::UpdateFanart(const CFileItem &item, VIDEODB_CONTENT_TYPE ty
void CVideoDatabase::SetPlayCount(const CFileItem &item, int count, const CStdString &date) void CVideoDatabase::SetPlayCount(const CFileItem &item, int count, const CStdString &date)
{ {
int id; int id;
if (item.HasProperty("original_listitem_url")) if (item.HasProperty("original_listitem_url") &&
URIUtils::IsPlugin(item.GetProperty("original_listitem_url").asString()))
{ {
CFileItem item2(item); CFileItem item2(item);
item2.SetPath(item.GetProperty("original_listitem_url").asString()); item2.SetPath(item.GetProperty("original_listitem_url").asString());
Expand Down

0 comments on commit 1f93655

Please sign in to comment.