Permalink
Browse files

fixed: only use the original listitem url for plugins

should solve #12205 without other regressions
  • Loading branch information...
1 parent 5a21792 commit 1f93655725f2475282af41e463578fbf437bd398 spiff committed Nov 14, 2011
Showing with 4 additions and 2 deletions.
  1. +2 −1 xbmc/utils/SaveFileStateJob.h
  2. +2 −1 xbmc/video/VideoDatabase.cpp
@@ -24,7 +24,8 @@ class CSaveFileStateJob : public CJob
bool CSaveFileStateJob::DoWork()
{
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();
if (m_item.IsDVD())
@@ -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)
{
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);
item2.SetPath(item.GetProperty("original_listitem_url").asString());

0 comments on commit 1f93655

Please sign in to comment.