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
971 stars 292 forks source link

Reload the .m3u file automatically every time you connect #116

Closed YoannZ closed 7 years ago

YoannZ commented 7 years ago

Hello I would like to be able to reload the .m3u file automatically with each connection. I should edit code but I tested a lot in m3u_parser.py but nothing works.

help me please

Cigaras commented 7 years ago

Playlist is reloaded automatically every time starting the plug-in if option in preferences "At what hour should plug-in automatically reload the M3U files?" is set to "never", however please keep in mind that Plex likes to keep plug-ins in the background so it might require to restart the Plex Media Server for playlist to reload. You can always force playlist reload manually by enabling manual reload in preferences (11th option) and clicking new button in the main menu: P.S. Same issue #99 and mentioned on the forum.

YoannZ commented 7 years ago

In the previous updates, the .m3u file is updated automatically. I do not understand why on the new update it is impossible to find out why. What do you think this line of code is?

Cigaras commented 7 years ago

I can not reproduce the problem You are having. Maybe You are misunderstanding the concept: in version 1.x playlist was reloaded every time entering the menu (like now in IPTVLite) but it was inconvenient to browse the channels with bigger playlists because after every click user had to wait for plug-in to read whole playlist again and again. Because of that in version 2.x playlist is cached and reloads only on set time once per day or when plug-in is started (for most users this is enough, they just set the playlist and use it without constant edits). However plug-in start is not always registered by Plex Server so it might require to restart the server. If you need to constantly edit the playlist, just use manual reload button.

If You're dying to cripple Your usage experience, change line 95 in init.pty file from if not Dict['groups']: to if True: and leave automatic reload on "never".