dtankdempse / free-iptv-channels

This script generates an m3u8 playlist from the channels provided by services such as Pluto, Samsung, Stirr, Tubi, Plex, PBS, and Roku.
76 stars 17 forks source link

Downloading files #11

Open Mikhel opened 3 weeks ago

Mikhel commented 3 weeks ago

Not an issue per se but a question.

Background: I copied your epg-grabber script and modified a bit because I plan on creating a "master list" with my fav channels from SamsungTV, Pluto US, Plex, etc. and with your script now I am able to make my own EPG pulling just the desired data from 5 different EPG sources and thus reducing the size of my personal EPG (I plan on deploying it on a device with limited space --> firestick).

My question is, since I want to avoid being banned from where those EPG sources are hosted: is there a script to download those EPG files (xml.gz) to my github repository so that your EPG-grabber script can take them to process them? I imagine there could be a way but I am just a novice with a bit of knowledge (last time I coded something was in the early 90s).

I guess the script would have to check if the existent source EPGs in my github are the same as the ones in the original source so it doesn't download them time and time again.

I think I am able to make a YML file to execute such a script but can't get ahold of how to make one LOL.

Any input is appreciated.

dtankdempse commented 3 weeks ago

Create Your Repository: Set up a new repository on GitHub and add your customized epg-grabber files.

Add a Workflow: In the root directory of your repository, create this path and file:

.github/workflows/epg-grabber.yml

Copy the Workflow: Use the workflow from this link:

https://github.com/dtankdempse/moveonjoy-m3u/blob/main/.github/workflows/epg-grabber.yml

Adjust the Cron Job as Needed:

Every 12 hours:

Every 24 hours:

Manual Trigger: You can also manually run the workflow to test after everything is set up. To do this, navigate to the "Actions" tab in your GitHub repository. On the left side, select 'Update EPG', and then click 'Run workflow' on the right side.