regseb / castkodi

WebExtension to cast videos and music to Kodi.
MIT License
100 stars 24 forks source link

Add GUI buttons functionality for local save and load of Kodi playlist as .m3u file #76

Closed sdaau closed 2 years ago

sdaau commented 2 years ago

Hi - thanks for a great addon!

Describe the problem

Let's say, I've made a playlist, by right-clicking YouTube videos and doung Cast to Kodi/Queue item:

Screenshot at 2022-01-31 16-23-22

Now, if I by accident do a Cast to Kodi/Play now, it will - as expected - overwrite the current playlist.

Describe the solution you'd like

I would like to propose an additional button in the addon GUI (like on the screenshot above), which saves the current Kodi playlist, as a file on the computer, (for instance, that button could have a mouseover text "Save current Kodi playlist locally".

As far as I can tell, the default playlist for Kodi ( https://kodi.wiki/view/Basic_playlists ) is an .m3u file; and this file accepts plugin:// protocol URIs/links - for instance, from https://github.com/kodi-pvr/pvr.iptvsimple/blob/Nexus/README.md :

...
#EXTINF:-1 catchup="vod",Channel K
plugin://plugin.video.my-vod-addon/play/catalog/channels/d8659669-b964-414c-aa9c-e31d8d15696b
....

The only place I found these plugin:// protocol links to be mentioned on the Kodi wiki, is https://kodi.wiki/view/Dynamic_List_Content

So, having saved this .m3u file with plugin:// links locally, I could then copy it to Kodi, and play it directly in Kodi (which is great!).

But, I would also like to propose one more additional button in the addon GUI (like on the screenshot above), which then loads/imports a locally saved .m3u file as the current Kodi playlist, replacing the previously active playlist in Kodi (for instance, that button could have a mouseover text "Load/import local .m3u file as the current Kodi playlist" or similar).

Environment

regseb commented 2 years ago

Sorry, I'm not going to add this feature because the goal of Cast Kodi is only to send and control Kodi from a browser. The idea of saving a playlist is good, but it should be implemented in Kodi.