IPTV.bundle icon indicating copy to clipboard operation
IPTV.bundle copied to clipboard

Retrieve informations using Plex API?

Open FezVrasta opened this issue 7 years ago • 6 comments

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.

FezVrasta avatar May 12 '17 09:05 FezVrasta

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.

KingKoopa08 avatar May 14 '17 03:05 KingKoopa08

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.

FezVrasta avatar May 15 '17 11:05 FezVrasta

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?

Cigaras avatar May 15 '17 12:05 Cigaras

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 avatar May 15 '17 12:05 FezVrasta

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.

FezVrasta avatar Sep 11 '17 17:09 FezVrasta

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.

jfrancais avatar Apr 06 '18 14:04 jfrancais