Cannot select VOD in source if using local file

About Forums Support Cannot select VOD in source if using local file

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #44820

    Hi, I have a particular situation.

    My IPTV provider gives me a m3u list that has both live channels and VODs. If I load the playlist directly from the URL he provided (is a xtreams compatible playlist) I can go to sources and select VOD (using this option gives me all VOD content information like moviedb description, rating, etc.

    Now, if I use the same m3u playlist but loaded from a local file or from my own webserver PP will not show me anymore the VOD section in the sources.

    Ths VODs are still there as I can go to them via the live channels groups and play them, but I cannot see and EPG related content and browse like a moviedb catalog.

    I want to use this because I want to trim the list on my own to remove unwanted groups and channels… but even if I use the full playlist copy on a local file or my webserver it will not show VOD source….

    Would like to know why… any configuration I am missing? Don’t want to go and search for another player as I really like PP.



    You can hide some groups/channels in Settings->Advanced->Groups management mode.

    If you want to use local playlists you should add separate ones for channels and VOD.


    Hey tks for quick reply. 🙂

    On hiding the groups I started by doing that but the loading of the playlist is still very slow as is very big. Also I want to edit more like removing channels and reorganizing them inside groups, so I do that via python script editing the playlist.

    On your suggestion for the separate playlist for VOD, I actually did that by loading it and selecting VOD checkbox. Then I can see it in sources but I still cannot see any moviedb related content loaded from the EPG. Without this moviedb content the experience of navigating through the VOD (Movies and Series) is a lot worse and not appealing.

    Any special reason why vODs cannot be automatically identified using my own URL/localfil? I checked the file structure and is exactly as original from my provider server.



    By using XC login protocol, PP will extract VOD data and LiveTV data into separate playlist formats, specifically to handle the Metadata included for VOD, by your Provider, within the XC data format.
    Before PP supported XC as a source input, I also had your problem, so I wrote some code to extract XC data and reformat for display in PP as a VOD m3u playlist.
    Below is a sample of what the m3u playlist for VOD looks like with metadata embedded in the #EXTINF description line (just showing 4 items with templated URL’s);

    #EXTINF:-1 tvg-id="" tvg-logo="" tvg-name="Tales from the Hood 2" description="{User Rating:} 4.600000\n{Desc:} Horror is back in the hood! The sequel to the ground-breaking original film Tales From the Hood reunites Executive Producer Spike Lee (Honorary Academy Award® winner) and Writers/Directors/Producers Rusty Cundieff and Darin Scott for an all-new gripping, horrifying and oftentimes devilishly comical anthology. Keith David stars as a contemporary Mr. Simms to tell bloodcurdling stories about lust, greed, pride and politics through tales with demonic dolls, possessed psychics, vengeful vixens and historical ghosts. Mr. Simms's haunting stories will make you laugh...while you scream.\n{Runtime:} 111\n{Rated:} Rated R\n{Genre:} Horror\n{Director:} Rusty Cundieff\n{Director:} Darin Scott\n{Year:} 2018\n{Studio:} Universal 1440 Entertainment" group-title="Movies",Tales from the Hood 2
    [video  src="http://xportal:80/movie/xdonation/xdonation/10746.mp4" /]
    #EXTINF:-1 tvg-id="" tvg-logo="" tvg-name="Leave No Trace" description="{User Rating:} 7.300000\n{Desc:} Will (Ben Foster) and his teenage daughter, Tom (Thomasin Harcourt McKenzie), have lived off the grid for years in the forests of Portland, Oregon. When their idyllic life is shattered, both are put into social services. After clashing with their new surroundings, Will and Tom set off on a harrowing journey back to their wild homeland. The film is directed by Debra Granik from a script adapted by Granik and Anne Rosellini.\n{Runtime:} 109\n{Rated:} Rated PG\n{Genre:} Drama\n{Director:} Debra Granik\n{Year:} 2018\n{Studio:} Bron Studios" group-title="Movies",Leave No Trace
    [video  src="http://xportal:80/movie/xdonation/xdonation/10745.mp4" /]
    #EXTINF:-1 tvg-id="" tvg-logo="" tvg-name="The Third Eye" description="{User Rating:} 5.800000\n{Desc:} Photojournalist Nika Printz is struggling to accept the mysterious death of her younger brother when she discovers his obsession with trepanation; an ancient procedure that involves drilling a hole in one's head.\n{Runtime:} 0\n{Rated:} Rated TV-PG\n{Genre:} Crime, Horror, Thriller\n{Director:} Leah Walker\n{Year:} 2007\n{Studio:} Neophyte Productions" group-title="Movies",The Third Eye
    [video  src="http://xportal:80/movie/xdonation/xdonation/10744.mp4" /]
    #EXTINF:-1 tvg-id="" tvg-logo="" tvg-name="The Darkest Minds" description="{User Rating:} 5.500000\n{Desc:} After a disease killed 98% of children and young people in the United States, the 2% who managed to survive have developed superpowers, but have been locked in internment camps after being declared a threat. 16-year-old, Ruby, manages to escape from her camp and joins a group of teenagers fleeing government forces.\n{Runtime:} 104\n{Rated:} Rated PG-13\n{Genre:} Sci-Fi, Thriller\n{Director:} Jennifer Yuh Nelson\n{Year:} 2018\n{Studio:} 21 Laps Entertainment" group-title="Movies",The Darkest Minds

    This is what XC request data for VOD looks like (Just 2 items shown);

    <?xml version="1.0"?>
    <items><playlist_name>Movie [ Example ]</playlist_name><category><category_id>1</category_id><category_title>Movie [ Example ]</category_title></category><channel><title>UHV6emxl</title><desc_image><![CDATA[]]></desc_image><description>RFVSQVRJT05fU0VDUzogNjE4MApEVVJBVElPTjogMDE6NDM6MDAKVklERU86IEFycmF5CkFVRElPOiBBcnJheQpCSVRSQVRFOiAxNTgzCkdFTlJFOiBEcmFtYQpSRUxFQVNFREFURTogMjAxOCAoVVNBKQpSQVRJTkc6IApDQVNUOiBLZWxseSBNYWNkb25hbGQsIElycmZhbiBLaGFuLCBEYXZpZCBEZW5tYW4sIEJ1YmJhIFdlaWxlciwgQXVzdGluIEFicmFtcywgTGl2IEhld3NvbiwgRGFuaWVsIFN0ZXdhcnQgU2hlcm1hbiwgSGVsZW4gQ294ZQpQTE9UOiBBZ25lcyBpcyBhIHdvbWFuIHdobyBoYXMgcmVhY2hlZCBoZXIgZWFybHkgNDBzIHdpdGhvdXQgZXZlciB2ZW50dXJpbmcgZmFyIGZyb20gaG9tZSwgZmFtaWx5IG9yIHRoZSB0aWdodC1rbml0IGltbWlncmFudCBjb21tdW5pdHkgaW4gd2hpY2ggc2hlIHdhcyByYWlzZWQgYnkgaGVyIHdpZG93ZWQgZmF0aGVyLiBUaGF0IGJlZ2lucyB0byBjaGFuZ2UgaW4gYSBxdWlldGx5IGRyYW1hdGljIGZhc2hpb24gd2hlbiBBZ25lcyByZWNlaXZlcyBhIGppZ3NhdyBwdXp6bGUgYXMgYSBiaXJ0aGRheSBnaWZ0IGFuZCBleHBlcmllbmNlcyB0aGUgaGVhZHkgdGhyaWxsIG9mIG5vdCBvbmx5IGRvaW5nIHNvbWV0aGluZyBzaGUgZW5qb3lzLCBidXQgYmVpbmcgdmVyeSwgdmVyeSBnb29kIGF0IGl0LgpESVJFQ1RPUjogTWFyYyBUdXJ0bGV0YXViCg==</description><category_id>23</category_id><stream_url><![CDATA[http://xportal/movie/xdonation/xdonation/11152.mp4]]></stream_url></channel><channel><title>SGl0bGVycyBIb2xseXdvb2Q=</title><desc_image><![CDATA[]]></desc_image><description>RFVSQVRJT05fU0VDUzogNjAwMApEVVJBVElPTjogMDE6NDA6MDAKVklERU86IEFycmF5CkFVRElPOiBBcnJheQpCSVRSQVRFOiAxNTgzCkdFTlJFOiBIaXN0b3JpY2FsClJFTEVBU0VEQVRFOiAyMDE3IChVU0EpClJBVElORzogCkNBU1Q6IFJ1ZWRpZ2VyIFN1Y2hzbGFuZCwgRmVyZGluYW5kIE1hcmlhbiwgR3VzdGFmIEdydWVuZGdlbnMsIEhhbnMgQWxiZXJzLCBIZWlueiBSdWVobWFubiwgSWxzZSBXZXJuZXIsIE1hcmlhbm5lIEhvcHBlLCBNYXJpa2EgUm9la2sKUExPVDogRmlsbSBqb3VybmFsaXN0IGFuZCBjcml0aWMgUnVlZGlnZXIgU3VjaHNsYW5kIGV4YW1pbmVzIEdlcm1hbiBjaW5lbWEgZnJvbSAxOTMzLCB3aGVuIHRoZSBOYXppcyBjYW1lIGludG8gcG93ZXIsIHVudGlsIDE5NDUsIHdoZW4gdGhlIFRoaXJkIFJlaWNoIGNvbGxhcHNlZC4KRElSRUNUT1I6IFJ1ZWRpZ2VyIFN1Y2hzbGFuZAo=</description><category_id>23</category_id><stream_url><![CDATA[http://xportal/movie/xdonation/xdonation/11151.mp4]]></stream_url></channel>

    After Base64 decoding, you get;

    <title>Good Posture</title>
    <description>DURATION_SECS: 5460
    DURATION: 01:31:00
    VIDEO: Array
    AUDIO: Array
    BITRATE: 1583
    GENRE: Drama
    CAST: Grace Van Patten, Emily Mortimer, Ebon Moss-Bachrach, Nat Wolff, Condola Rashad, Norbert Leo Butz, Mary Holland, John Early
    PLOT: With her widower father currently living it up in Paris with a young, new girlfriend, Lilian has been placed into the care of family friends over in Brooklyn, New York. Under the roof of famed author, Julia Price, Lilian has no real motivation to live any other lifestyle than that of her hermit housemate. To impress her ex-boyfriend, and the other cynics around her, Lilian suddenly decides to make a documentary on Julia - albeit, an unauthorized one - with the help of some new people in her life.
    DIRECTOR: Dolly Wells

    And code to extract data would look like this;

     name = tools.regex_from_to(a,'<title>','</title>')
                        name = base64.b64decode(name)
                        thumb= tools.regex_from_to(a,'<desc_image>','</desc_image>').replace('<![CDATA[','').replace(']]>','')
                        url  = tools.regex_from_to(a,'<stream_url>','</stream_url>').replace('<![CDATA[','').replace(']]>','')
                        vodID = tools.regex_from_to(url,('movie/'+username+'/'+password+'/'),'.mp4')
                        desc = tools.regex_from_to(a,'<description>','</description>')
                        desc = base64.b64decode(desc)
                        cat = tools.regex_from_to(a,'<category_id>','</category_id>')
                        plot = tools.regex_from_to(desc,'PLOT: ','\n')
                        runt = tools.regex_from_to(desc,'DURATION_SECS: ','\n')
                        genre= tools.regex_from_to(desc,'GENRE: ','\n')
                        year = tools.regex_from_to(desc,'RELEASEDATE: ','\n')
                        year = re.findall("\d+", year)[0]
                        ratin= tools.regex_from_to(desc,'RATING: ','\n')
                        cast = tools.regex_from_to(desc,'CAST: ','\n')
                        dir  = tools.regex_from_to(desc,'DIRECTOR: ','\n')

    Hope this Helps U

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.