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

Retrieve informations using Plex API? #120

Open FezVrasta opened 7 years ago

FezVrasta commented 7 years ago

Hi, I have a playlist with a list of movies provided by my ISP, I was wondering if it could be possible to retrieve the correct title, thumbnail, description and so on like it happens with the local movies on my Plex server.

Example:

If in my Plex server I have a movie called "the.wizard.of.oz.1939.avi", Plex will show it in the collection as "The Wizard of Oz", will show a thumbnail, a background image, if available, a soundtrack, and the description.

I would like to do the same with the content of my m3u playlist. If the playlist has an entry called "the.wizard.of.oz.1939", use the same Plex API to get and show the proper informations.

I think it would be a great addition.

Thank you.

KingKoopa08 commented 7 years ago

This is called a m3u_plus playlist. If you get that built and have that loaded into this plugin you will be fine. The only thing you will be missing is the description of the show since that isn't commonly used.

FezVrasta commented 7 years ago

I think I wasn't clear. I don't want to manually provide the additional information. I would like Plex to do it for me.

Cigaras commented 7 years ago

This plug-in uses description to show program guide, in theory I could replace it with some kind of channel description if program guide is not available, however parsing it automatically might be difficult because channel names are usually very short and common and it might be complicated to get exact match, just look how many channels are named TV 3 or TV 5 in the world. However this plug-in is not restricted to IPTV use, if playlist links to a simple video file it should be doable, do You use it for other stuff except live streams? But in that case wouldn't it be easier to just skip the plug-in and simply add files to Plex library?

FezVrasta commented 7 years ago

My provider gives me a list of movies, they have very accurate names (with year and sometimes the quality (3d, fullhd etc)). I think this could be a toggleable option.

Since Plex does already parse weird file names and gets from them the correct information, I think the same API should work in this case.

FezVrasta commented 7 years ago

I was trying to implement something myself using the .strm files, but looks like Plex doesn't support them anymore.

By the way, if you create an empty file called Pirates.of.the.Caribbean.Dead.Men.Tell.No.Tales.strm and put this file in your movies folder (or wherever your Plex server gets the movie files):

touch ~/Movies/Pirates.of.the.Caribbean.Dead.Men.Tell.No.Tales.strm

You'll notice the movie appears in your Plex collection, with the cover art, the description, the title etc.

I would just like to use the same API Plex is using, to get the information of every element of the playlist (.m3u).

I don't know what APIs are available to the Channels, but if this one is, it would be awesome.

jfrancais commented 6 years ago

Adding description would be useful. I actually tweaked the code to do just that. I added a description="" to my m3u8 playlist entries and then tweaked to plugin code to use that field if the guide info isn't available for the applicable stream.