Permalink
Browse files

[fix] SaveFileState was broken by ba7a58c

  • Loading branch information...
alcoheca committed Apr 18, 2013
1 parent 4ce9be2 commit e71c8d0ed2fe3195e9f354db962ef10bc962229c
Showing with 6 additions and 1 deletion.
  1. +6 −1 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 != "")
{

0 comments on commit e71c8d0

Please sign in to comment.