-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add contextmenu option to remove resume points
- Loading branch information
Showing
6 changed files
with
65 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20625,7 +20625,13 @@ msgctxt "#38208" | |
msgid "If EXIF information exists (date, time, camera used, etc.), it will be displayed." | ||
msgstr "" | ||
|
||
#empty strings from id 38209 to 38999 | ||
#. Contextmenu entry to remove the resume point of the currently selected item | ||
#: xbmc/video/ContextMenus.h | ||
msgctxt "#38209" | ||
msgid "Remove resume point" | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
razzeee
Author
Member
|
||
msgstr "" | ||
|
||
#empty strings from id 38210 to 38999 | ||
|
||
#: system/settings/settings.xml | ||
msgctxt "#39000" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,26 @@ bool CVideoInfo::Execute(const CFileItemPtr& item) const | |
return true; | ||
} | ||
|
||
bool CRemoveResumePoint::IsVisible(const CFileItem& itemIn) const | ||
{ | ||
CFileItem item(itemIn.GetItemToPlay()); | ||
if (item.IsDeleted()) // e.g. trashed pvr recording | ||
return false; | ||
|
||
return CGUIWindowVideoBase::HasResumeItemOffset(&item); | ||
This comment has been minimized.
Sorry, something went wrong.
ksooo
Member
|
||
} | ||
|
||
bool CRemoveResumePoint::Execute(const CFileItemPtr& item) const | ||
{ | ||
CVideoDatabase videoDatabase; | ||
if (videoDatabase.Open()) | ||
{ | ||
videoDatabase.DeleteResumeBookMark(*item); | ||
This comment has been minimized.
Sorry, something went wrong.
ksooo
Member
|
||
} | ||
|
||
return true; | ||
} | ||
|
||
bool CMarkWatched::IsVisible(const CFileItem& item) const | ||
{ | ||
if (item.IsDeleted()) // e.g. trashed pvr recording | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I would call this "Reset play position".