Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[fix] SaveFileState was broken by ba7a58c

  • Loading branch information...
commit e71c8d0ed2fe3195e9f354db962ef10bc962229c 1 parent 4ce9be2
@alcoheca alcoheca authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 xbmc/utils/SaveFileStateJob.h
View
7 xbmc/utils/SaveFileStateJob.h
@@ -34,7 +34,12 @@ bool CSaveFileStateJob::DoWork()
if (m_item.HasVideoInfoTag() && m_item.GetVideoInfoTag()->m_strFileNameAndPath.Find("removable://") == 0)
progressTrackingFile = m_item.GetVideoInfoTag()->m_strFileNameAndPath; // this variable contains removable:// suffixed by disc label+uniqueid or is empty if label not uniquely identified
else if (m_item.HasProperty("original_listitem_url"))
- progressTrackingFile = m_item.GetProperty("original_listitem_url").asString();
+ {
+ // only use original_listitem_url for Python & UPnP sources
+ CStdString original = m_item.GetProperty("original_listitem_url").asString();
+ if (URIUtils::IsPlugin(original) || URIUtils::IsUPnP(original))
+ progressTrackingFile = original;
+ }
if (progressTrackingFile != "")
{
Please sign in to comment.
Something went wrong with that request. Please try again.