Cigaras / IPTV.bundle

Plex plug-in that plays live streams (like IPTV) from a M3U playlist
https://forums.plex.tv/discussion/83083
GNU General Public License v3.0
974 stars 290 forks source link

Reload Playlist via Command Line #200

Closed 00lex closed 5 years ago

00lex commented 6 years ago

Hi! Is it possible to reload the m3u file vie command line?

If try it with the "m3u_parser.py" script but it doesn't work.

thx

Cigaras commented 6 years ago

Don't think so.

Playlist is stored in Plex Dict object, every time entering main menu plug-in checks if Dict is missing something, and if it does plug-in loads the missing data. In theory if You could alter the Disct, You could force the reload. However Plex keeps it in memory while it is in use and saves it in Plug-in Support folder only after usage, so altering the file itself will do nothing, it just gets overwritten. That means the only way is to somehow make a request to Plex API, and as there is almost no documentation available it will be hard to achieve.

00lex commented 5 years ago

okay thx. another one :) I want to reload the program guide from the terminal. its the same problem as playlist reload.

with the following link a can reload the guide. even when the guide button is hidden

http://10.30.50.2:32400/web/index.html#!/server/ProcessedMachineIdentifier/channel/%2Fvideo%2Fiptv/%2Fvideo%2Fiptv%2Freloadguide

but how to curl this url?

btw don't forget to modify the ProcessedMachineIdentifier