Open GoogleCodeExporter opened 9 years ago
[deleted comment]
The patch I added does prompt me before playing the video so it probably just
needs addition of a setting and language vars
Original comment by jasonmp...@gmail.com
on 8 Sep 2012 at 2:06
[deleted comment]
--- player.py.old 2012-09-08 21:30:54.010877593 +1000
+++ player.py 2012-09-09 00:17:06.416515643 +1000
@@ -198,6 +198,16 @@
mlog.debug('> playRecording %s' % safe_str(self.program.title()))
assert not self.isPlaying(), 'Player is already playing a video'
self.commSkipper = commSkipper
+
+ # jpell addition - prompt to start from beginning or from bookmark.
+ bookmarkSecs = self.program.getBookmark()
+ if bookmarkSecs > 0 and bookmarkSecs < (self.program.getDuration() *
60):
+ question = 'Resume from %s?' % formatSeconds(bookmarkSecs)
+ resume = xbmcgui.Dialog().yesno(self.program.title(),'',
question,'','Beginning','Resume')
+
+ if not resume:
+ self.program.setBookmark(0.0)
+
self.play(self.buildPlaybackUrl(), self.buildPlayList())
mlog.debug('< playRecording')
Original comment by jasonmp...@gmail.com
on 8 Sep 2012 at 2:22
Original issue reported on code.google.com by
jasonmp...@gmail.com
on 8 Sep 2012 at 12:39