Release Switchback - utility for fast switching between recently played media.
#16
(2024-11-02, 05:41)bossanova808 Wrote: Kodi utility for fast switching between recently played media.

Keeps a list of recently played media - supports Kodi library episodes, movies, PVR channels, songs and non-library files. Does not (yet?) support add-ons or PVR recordings.

Available from the official Kodi repository now (in the Services section).

The primary intended use is to make for super easy Switchback between two in progress video.

I really appreciate you bringing up this idea.  It's a feature I always needed but never knew it.  I've decided to add a version of this natively into the Mezzmo Kodi addon called Last Played Media.  It will be in the next release for folks who use this sharing solution.  My version doesn't have the breadth of support as Switchback.  It's targeted as you stated initially, towards video media (i.e. Movies, TV Episodes, PVR recordings etc..)  I am finding myself using it regularly now.  I am happy to collaborate on coding, design approach etc..


Thanks,

Jeff
Running with the Mezzmo Kodi addon.  The easier way to share your media with multiple Kodi clients.
Service.autostop , Kodi Selective Cleaner and Mezzmo Kodi addon author.
Reply
#17
@MaxMustermann hmm, though I had it using the path everywhere already, must have missed something.    Thanks for all the testing, I will dig into this soon. 

@jbinkley60 glad you like it! 

My current plan is to at least filter out the watched things (as unlikely you'll want to Switchback to a finished thing, right?) - and hopefully I can get at least PVR recordings consistently (thought I had!) - and at least some add-on support with consistency.  I suppose I could set up a system where users can choose addons not to track if they are consistently failing.  The reality is that as long as the playback works for the current session, it's probably not so important that it works a day or two later anymore (for my use cases at least)?

I will hopefully get some time today/this week to continue playing with it...
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | Caber Toss | Switchback | XSqueezeDisplay | Kodi 2nd Display
Sorry, no help w/out a *full debug log*.
Reply
#18
(2024-12-08, 12:01)MaxMustermann Wrote: For result 4.5 the source code shows that the 'file' attribute is used for playback, not the path. And with add-on videos this attribute contains the concrete URL which becomes invalid (see discussion above).
resources/lib/switchback_plugin.py, line 118: xbmcplugin.addDirectoryItem(plugin_instance, playback.file, list_item)
Using the path attribute here instead makes playback work.

So I've experimented with this a little, although it's been a busy week so I've not had as much time as I would like. 
I find for e.g. PVR recordings, using the path does not work - but using file does.  The path for PVR recordings is not just the URL, I don't really understand this:
Code:
"path": "pvr://recordings/tv/active/Directory1/SubDirectory2/Demo%20TV%20Recording%20entry%204, TV%20(Demo%20TV%20Channel%204), 20241212_070045, 4.pvr",

For addons, both path and file work at times, and path does seem more successful, but I continue to see all sorts of issues with later playback, with a quite low hit rate.

I mean, the whole thing begs the question as to whether the Switchback list should survive across Kodi sessions at all - perhaps it should be blanked on startup, as realistically for the main functionality, would one ever want/expect to resume things from a previous session?   Addons probably work well enough for the current session (tokens etc much less likely to time out) - but over sessions, it's pretty ropey...
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | Caber Toss | Switchback | XSqueezeDisplay | Kodi 2nd Display
Sorry, no help w/out a *full debug log*.
Reply
#19
(2024-12-13, 05:07)bossanova808 Wrote: For addons, both path and file work at times, and path does seem more successful, but I continue to see all sorts of issues with later playback, with a quite low hit rate.

I mean, the whole thing begs the question as to whether the Switchback list should survive across Kodi sessions at all - perhaps it should be blanked on startup, as realistically for the main functionality, would one ever want/expect to resume things from a previous session?   Addons probably work well enough for the current session (tokens etc much less likely to time out) - but over sessions, it's pretty ropey...

I keep it across Kodi restarts on the Mezzmo Kodi addom but just for video media and not other addons.  I may extend this to music in the future.  I handle it by a Mezzmo server query to the server which has a built-in lastplayed query which then provides  the video metadata (if any), resume pointer, playcoount counter and similar.  I could absolutely see this being problematic for addons where URLs may change and similar.  My approach is to have ti act like a last played smart playlist without the need for a smart playlist or similar.  It's just built-in.


Thanks,

Jeff
Running with the Mezzmo Kodi addon.  The easier way to share your media with multiple Kodi clients.
Service.autostop , Kodi Selective Cleaner and Mezzmo Kodi addon author.
Reply

Logout Mark Read Team Forum Stats Members Help
Switchback - utility for fast switching between recently played media.0