DOWNLOAD Create Movies and TV Series Video on Demand (VOD) Playlist's Using Xtream Codes or M3U8 Format

gogetta69

Active member
Joined
Oct 18, 2023
Messages
42
Awards
3
Offline

TMDB To VOD Playlist

Create Movies and TV Series Video on Demand (VOD) Playlist's using Xtream Codes or M3U8 Format.

Generate video-on-demand movie and TV series playlists effortlessly with this script. The script utilizes TMDB and Real Debrid (with a few direct sources that do not require a Real Debrid API key) to dynamically create playlists. By emulating Xtream Codes apps like Tivimate, IPTV Streamers Pro, XCIPTV Player, NexTV, and others, it provides comprehensive metadata including descriptions, cast and crew details, trailers, poster images, and backdrop images.



Features

  • Dynamic playlist generation for movies and TV series
  • Integration with TMDB and Real Debrid for enhanced content retrieval
  • Emulation of Xtream Codes apps for full metadata details
  • Inclusion of Daddylive HD as a Live TV source (load daddylive_playlist_m3u.php as an M3U List).
    If you get a 403 error while playing the live tv try using an external player like the MxPlayer.
  • Support for configuring referrer for playing live streams
  • Automatic caching of found links for efficient playback

Setup Video:​

Configuration:


Begin by configuring the script with a mandatory free TMDB API key and an optional Real Debrid private key.

Run the Scripts: Execute create_playlist.php for movies and create_tv_playlist.php for TV series. Schedule these two files to run once or twice daily using Windows Scheduler or as a cron job through your hosting panel.

Xtream Codes Integration: Once the scripts have been executed at least once, you can enter your IP address or domain as an Xtream Codes server. The username and password can be set to anything since the script doesn't require authentication. This will automatically load the previously generated Movies and TV Series playlists into the app.

Non-Xtream Codes Apps: If your app does not support Xtream Codes, locate the playlist.m3u8 in the same folder after running create_playlist.php and load it as an M3U playlist. Note that M3U playlists are available for movies and live TV only; TV series cannot be loaded as an M3U playlist.

Playback: Once everything is set up and the playlists are loaded, you should be able to play a video. Clicking the play button will trigger the script to search multiple websites in the background for a playable link. Please be patient and allow some time for a link to be found and streaming to commence. The script caches and stores the found link for approximately 3 hours, aligning with the typical access token expiration of most direct sources, which occurs at around 4 hours.

Local Hosting: If you lack a hosting company to run this extremely lightweight script, you can install and run software on your desktop computer like Xampp.

Contribution and Feedback

This project started as a weekend experiment to learn how to code. I'm committed to refining and expanding it if there's enough interest from users like you. Your feedback and support are invaluable!

Legal Disclaimer

This script retrieves movie information from TMDB and searches for related content on third-party websites. The legality of streaming or downloading content through these websites is uncertain. Please exercise caution and consider the legal and ethical implications of using this script to access and consume copyrighted content. Always respect copyright laws and the terms of service of the websites you visit.

Important: Make sure to put this into the root folder since some apps do not work well with sub directories.

Updated (12/08/2023):

Added the Premiumize service as an alternative to Real-Debrid. (used only with torrent sites)
Added threads when searching torrent sites for magnet links. (speeds up the time it takes to find a link)
Added and fixed direct movie and tv show sources as well as more link extractors.
Added TheTvApp sports section in the Live TV Playlist (set your app to load epg and playlist every 12 hours or less.)
Added PlutoTV to the live tv playlist (Multi Languages Here: https://i.mjh.nz/PlutoTV/)
Redesigned the Live TV and DaddyLive functions and playlist. (all of the images in the playlist are working)
Fixed a lot of bugs in the torrent search and filtering functions. (it finds links much more often now)
Fixed the sorting by resolution and more likely to get higher quality links (torrent sites)

After installation open the Read Me.txt or load the http://YOUR_IP_ADDRESS/info.php in your browser.

Overall this update should fix a lot of the problems I am sure that you were having. I'm learning as I go and the old code had a lot of problems that I have now fixed.

Updated (01/11/2024):

Fixed the DaddyLive as well fixed an issue that was stopping the EPG from updating now that i.mjh.nz has disabled Pluto. Once they start updating Pluto again the links should start showing back within your app.

DaddyLive has now started using AES Encryption within their playlist and i have added a fix within the hls_proxy.php for this. However, if you are using Tivimate you will need to use the included DADDYLIVE (tivimate).m3u8 file instead. I will continue to look for a more permanent solution, but this is what I have for now.

Files changed:


hls_proxy.php
xmltv.php
live_play.php
generate_live_playlist.php

Password:
 

Attachments

  • tmdb-to-vod-playlist.zip
    85.3 KB · Views: 87
Last edited:

Wizapk

Well-known member
Joined
Oct 11, 2021
Messages
285
Awards
4
Offline
Has anybody gotten the create_playlist.php to run (Via xampp). When running create_tv_playlist.php will take about 11mins so that runs fine cant seem to run create_playlist.php anybody run into that issue and fixed it if so can you point me in the right direction, many thanks
 

gogetta69

Active member
Joined
Oct 18, 2023
Messages
42
Awards
3
Offline
Has anybody gotten the create_playlist.php to run (Via xampp). When running create_tv_playlist.php will take about 11mins so that runs fine cant seem to run create_playlist.php anybody run into that issue and fixed it if so can you point me in the right direction, many thanks

Sorry about that. I had some variables in the wrong place. I have now reattached it. If you ever need to figure out an issue set the debug to true in the config file.
 

Wizapk

Well-known member
Joined
Oct 11, 2021
Messages
285
Awards
4
Offline
Sorry about that. I had some variables in the wrong place. I have now reattached it. If you ever need to figure out an issue set the debug to true in the config file.
Happy days thats it running now cheers pal fantastic work
 

yamcell

Well-known member
Joined
Oct 25, 2021
Messages
232
Awards
3
Offline
test without real debrid and not work . and how convert json with tv how to m3u and upload to xone
 

gogetta69

Active member
Joined
Oct 18, 2023
Messages
42
Awards
3
Offline
test without real debrid and not work . and how convert json with tv how to m3u and upload to xone

There isn't a m3u8 created for tv shows. What app are you using and/or let me know more details? Have you tried running it in your browser to see if a link is returned?

Try running: http://IP_ADDRESS/play.php?movieId=105

I just tested it without real debrid and a link was returned in a second or two.

Thanks.
 

yamcell

Well-known member
Joined
Oct 25, 2021
Messages
232
Awards
3
Offline
There isn't a m3u8 created for tv shows. What app are you using and/or let me know more details? Have you tried running it in your browser to see if a link is returned?

Try running: http://IP_ADDRESS/play.php?movieId=105

I just tested it without real debrid and a link was returned in a second or two.

Thanks.
The request resource was not found

In browser like u show me here . And not play in smarter

Couldn't find the m3u8 link . In tv live option
 

gogetta69

Active member
Joined
Oct 18, 2023
Messages
42
Awards
3
Offline
The request resource was not found

In browser like u show me here . And not play in smarter

Couldn't find the m3u8 link . In tv live option

Sounds like the files might not be in the right location, or you are running a different port other then 80. If you are using Xampp make sure the files are in ...\htdocs So if the files are still in this folder "TMDB-To-VOD-Playlist" after extraction you should move them into \htdocs. So that the play.php is located in \htdocs\play.php

if thats not the problem check the panel to make sure Xampp is running on port 80. if not you need to include the port number when adding to smarters. So http://ip : port (no spaces)

let me know if you still need help and we can talk over skype.

Using m3u8 would get very messy with tv shows since there is no way other then category id to link each episode with a series. So i just left it out. But if you are using smarters just add it as Xtream Codes Api an the series will be included.
 
Last edited:

yamcell

Well-known member
Joined
Oct 25, 2021
Messages
232
Awards
3
Offline
Sounds like the files might not be in the right location, or you are running a different port other then 80. If you are using Xampp make sure the files are in ...\htdocs So if the files are still in this folder "TMDB-To-VOD-Playlist" after extraction you should move them into \htdocs. So that the play.php is located in \htdocs\play.php

if thats not the problem check the panel to make sure Xampp is running on port 80. if not you need to include the port number when adding to smarters. So http://ip : port (no spaces)

let me know if you still need help and we can talk over skype.

Using m3u8 would get very messy with tv shows since there is no way other then category id to link each episode with a series. So i just left it out. But if you are using smarters just add it as Xtream Codes Api an the series will be included.
Question why live tv channel not load .? It's possible to set up to get Spanish language in movies ?
 
Last edited:

gogetta69

Active member
Joined
Oct 18, 2023
Messages
42
Awards
3
Offline
Question why live tv channel not load .? It's possible to set up to get Spanish language in movies ?

I added a new source for live tv today. Download the updates only.zip and paste those files over the old ones. Then inside of your app reload the playlist and the live tv should show up.

Changing the language can be done inside of the config.php

replace: $language = 'en-US'; with $language = 'es-ES';

You will then need to run the "create_playlist.php" and the "create_tv_playlist.php" again.

I hope that helps.
 
Last edited:

yamcell

Well-known member
Joined
Oct 25, 2021
Messages
232
Awards
3
Offline
I added a new source for live tv today. Download the updates only.zip and paste those files over the old ones. Then inside of your app reload the playlist and the live tv should show up.

Changing the language can be done inside of the config.php

replace: $language = 'en-US'; with $language = 'es-ES';

You will then need to run the "create_playlist.php" and the "create_tv_playlist.php" again.

I hope that helps.
Thanks for ur work we really appreciate. The only think I need it's get the series same as the movies to upload to panel . In m3u if possible pm me
 

yamcell

Well-known member
Joined
Oct 25, 2021
Messages
232
Awards
3
Offline
Question. The movie I'd expired ? Or if we create a m3u file all those link remain working even if we do not update ?
 

gogetta69

Active member
Joined
Oct 18, 2023
Messages
42
Awards
3
Offline
Question. The movie I'd expired ? Or if we create a m3u file all those link remain working even if we do not update ?

Which playlist were you wanting to turn into m3u? If you are asking about the TheTVApp as m3u I have attached it below. Just replace IP_ADDRESS with your ip address or domain and load it.
 

Attachments

  • TheTVApp.zip
    3.1 KB · Views: 82
Last edited:

KingPegasus

Well-known member
Joined
Jun 18, 2021
Messages
719
Awards
3
Offline
Which playlist were you wanting to turn into m3u? If you are asking about the TheTVApp as m3u I have attached it below. Just replace IP_ADDRESS with your ip address or domain and load it.
I think he was asking about the movies. Do the ids expire and if he makes a m3u from the movie links, will they remain working?
 

yamcell

Well-known member
Joined
Oct 25, 2021
Messages
232
Awards
3
Offline
Which playlist were you wanting to turn inI ASK ABOUT TV SERIES GET THE M3U I KNOW AND READ ITS NOT POSSIBLE TET to m3u? If you are asking about the TheTVApp as m3u I have attached it below. Just replace IP_ADDRESS with your ip address or domain and load it.

Which playlist were you wanting to turn into m3u? If you are asking about the TheTVApp as m3u I have attached it below. Just replace IP_ADDRESS with your ip address or domain and load it.
Sir what I ask and all ready u response it's about series in m3u same as movies . And tv line .
 

gogetta69

Active member
Joined
Oct 18, 2023
Messages
42
Awards
3
Offline
Fixed a small change TheTVApp made that broke live_play.php causing the live streaming to stop working.
 

yamcell

Well-known member
Joined
Oct 25, 2021
Messages
232
Awards
3
Offline
Fixed a small change TheTVApp made that broke live_play.php causing the live streaming to stop working.
Hello . Maybe u can try to integrate premiumnizer . And few source more to get link like the app cinemahd and again make the series download like m3u
 
Top