Skip to content

stewartcampbell/pluto-for-channels

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pluo for Channels (Python)

Current version: 1.17

About

This takes Pluto Live TV Channels and generates an M3U playlist and EPG XMLTV file.

Changes

  • Version 1.17:
    • Fixed EPG data to verify Live programming.
  • Version 1.16:
    • Added Fix for CNN Headlines.
  • Version 1.15:
    • Adding ALL option that displays a single playlist/EPG for all selected countries in the container.
  • Version 1.14:
    • Remove control characters from station API summary string leaving other Unicode characters for tvc-guide-description in playlist
  • Version 1.13:
    • Merged optimizations offered up by stewartcampbell (Appreciate the support)
      • Remove EPG data when no longer required
      • Move EPG data retrieval logging line so that the correct start time is shown
      • Remove a redundant XML file read
      • Use Alpine Python image
      • Use pip instead of pip3 (alias exists in image)
      • Add --no-cache-dir flag to pip install
      • Add --disable-pip-version-check flag to pip install
      • Add --no-compile flag to pip install
      • Remove redundant $PATH code
      • Reorder commands for optimal layer caching
    • Added support for France
  • Version 1.12:
    • Changed HLS Stitcher to version 1 until “Playlist had no segments” issues can be resolved in version 2
  • Version 1.11:
    • Modified options for playlist to include a compatibility URL parameter.
    • Illegal character XML handling has been added.
  • Version 1.10:
    • Added tvc-guide-description to playlist
  • Version 1.09:
    • Added group-title to playlist

Running

The recommended way of running is to pull the image from GitHub.

docker run -d --restart unless-stopped --network=host -e PLUTO_PORT=[your_port_number_here] --name pluto-for-channels ghcr.io/jgomez177/pluto-for-channels

or

docker run -d --restart unless-stopped -p [your_port_number_here]:7777 --name  pluto-for-channels ghcr.io/jgomez177/pluto-for-channels

You can retrieve the playlist and EPG via the status page.

http://127.0.0.1:[your_port_number_here]

Environement Variables

Environment Variable Description Default
PLUTO_PORT Port the API will be served on. You can set this if it conflicts with another service in your environment. 7777
PLUTO_CODE What country streams will be hosted.
Multiple can be hosted using comma separation

ALLOWED_COUNTRY_CODES:
us_east - United States East Coast,
us_west - United States West Coast,
local - Local IP address Geolocation,
ca - Canada,
uk - United Kingdom,
fr - France,

local,us_west,us_east,ca,uk

Additional URL Parameters

Parameter Description
channel_id_format default channel-id is set as "pluto-{slug}".
"id" will change channel-id to "pluto-{id}".
"slug_only" will change channel-id to "{slug}".

If you like this and other linear containers for Channels that I have created, please consider supporting my work.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.3%
  • Dockerfile 0.7%