From 9125422fe841379424d39bcd9ec878af528ac6a1 Mon Sep 17 00:00:00 2001 From: Jonathan Marshall Date: Fri, 2 May 2014 08:15:57 +1200 Subject: [PATCH] [bookmark] fix resume bookmark from a plugin:// of stack:// items, thanks to kit500 --- xbmc/Application.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xbmc/Application.cpp b/xbmc/Application.cpp index bd90f07..203e69d 100644 --- a/xbmc/Application.cpp +++ b/xbmc/Application.cpp @@ -3810,7 +3810,10 @@ PlayBackRet CApplication::PlayStack(const CFileItem& item, bool bRestart) { // can only resume seek here, not dvdstate CBookmark bookmark; - if( dbs.GetResumeBookMark(item.GetPath(), bookmark) ) + CStdString path = item.GetPath(); + if (item.HasProperty("original_listitem_url") && URIUtils::IsPlugin(item.GetProperty("original_listitem_url").asString())) + path = item.GetProperty("original_listitem_url").asString(); + if( dbs.GetResumeBookMark(path, bookmark) ) seconds = bookmark.timeInSeconds; else seconds = 0.0f; -- 2.7.4