Skip to content

This script generates an m3u8 playlist from the channels provided by services such as Pluto, Samsung, Stirr, Plex, PBS, and Roku.

Notifications You must be signed in to change notification settings

dtankdempse/free-iptv-channels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploy with Vercel Deploy with Netlify Deploy to Heroku Deploy to Render Deploy to Fly.io Deploy to AWS Amplify

Pluto, Samsung, Stirr, Plex, PBS and Roku Playlist (M3U8)

This script generates an m3u8 playlist from the channels provided by services such as Pluto, Samsung, Stirr, Plex, PBS, and Roku. It is based on the original script created by matthuisman, which can be found at matthuisman's GitHub repository.

Script Access URL

Use the following URL to access the hosted script. Replace the ADD_REGION and ADD_SERVICE placeholders with your desired values.

https://tinyurl.com/multiservice21?region=ADD_REGION&service=ADD_SERVICE

After customizing the URL by replacing the ADD_REGION and ADD_SERVICE placeholders with your desired region and service (e.g., us for the US region and Pluto for the service), copy the complete URL and paste it into the "Add Playlist" or "M3U8 URL" section of your IPTV application. Once added, the app will load both the channels and the guide information

⚠️ Please note: It is recommended to add the Google Apps Script to your own Google account or deploy the script to one of the other services, rather than relying on this publicly shared URL long-term.

Available Service Parameter Values

Choose one of the following services to include in the service parameter:

  • Plex
  • Roku
  • SamsungTVPlus
  • PlutoTV
  • PBS
  • PBSKids
  • Stirr

Available Region Parameter Values

Use one of these region codes to specify the region in the region parameter:

  • all (for all regions)
  • ar (Argentina)
  • br (Brazil)
  • ca (Canada)
  • cl (Chile)
  • de (Germany)
  • dk (Denmark)
  • es (Spain)
  • fr (France)
  • gb (United Kingdom)
  • mx (Mexico)
  • no (Norway)
  • se (Sweden)
  • us (United States)

Available Sorting Parameter Values (optional)

Use one of the following options in the sort parameter to specify how you want to sort the channels:

  • name (default):
    Sorts the channels alphabetically by their name.

  • chno:
    Sorts the channels by their assigned channel number.

How to Add the Script to Your Google Account (code.gs)

Go here and click the "New Project" button in the upper left corner. Then, copy the script from code.gs and paste it into the script editor. Once done, deploy the script.

Follow this video tutorial to learn how to deploy a Google Apps Script:

How to Deploy a Google Web App

During the deployment process, make sure to select "Anyone" for the "Who has access" option, so the app can access the URL and load without requiring authentication.

Once deployed, you will get a URL similar to:

https://script.google.com/macros/s/...gwlprM_Kn10kT7LGk/exec

To use the script, you need to add the region and service parameters at the end of the URL. For example:

https://script.google.com/macros/s/...gwlprM_Kn10kT7LGk/exec?region=us&service=Plex

Simply replace region=us and service=Plex with the appropriate region and service values from the available parameters listed above.

Tip: For a cleaner and more concise URL, consider using a URL shortener like tinyurl.com and appending the necessary parameters at the end.

Using the Docker Image

Pull the latest version: docker pull dtankdemp/free-iptv-channels

Run the container: docker run -p <port>:4242 dtankdemp/free-iptv-channels

Replace with the desired port (e.g., 8080).

Access the application: Visit http://localhost:<port> in your browser.

Running the Script With Node

The script can also be executed locally as a standalone Node.js server without relying on any external libraries or frameworks. To run it, simply navigate to the project directory and use the following command:

node node/index.js

Once the server is running, you can access it locally by navigating to:

http://localhost:4242

EPG for TV Guide Information

The EPG URLs are embedded directly within the playlists. If you'd prefer to manually add the EPG guide, you can find the relevant URLs for each service on this page.

Disclaimer:

This repository has no control over the streams, links, or the legality of the content provided by Pluto, Samsung, Stirr, Plex, PBS, and Roku. Additionally, this script simply converts the JSON files provided by i.mjh.nz into an M3U8 playlist. It is the end user's responsibility to ensure the legal use of these streams. We strongly recommend verifying that the content complies with the laws and regulations of your country before use.