Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed: only use the original listitem url for plugins

should solve #12205 without other regressions
  • Loading branch information...
commit 1f93655725f2475282af41e463578fbf437bd398 1 parent 5a21792
spiff authored
Showing with 4 additions and 2 deletions.
  1. +2 −1  xbmc/utils/SaveFileStateJob.h
  2. +2 −1  xbmc/video/VideoDatabase.cpp
View
3  xbmc/utils/SaveFileStateJob.h
@@ -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())
View
3  xbmc/video/VideoDatabase.cpp
@@ -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());
Please sign in to comment.
Something went wrong with that request. Please try again.