Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloading files #11

Open
Mikhel opened this issue Nov 3, 2024 · 1 comment
Open

Downloading files #11

Mikhel opened this issue Nov 3, 2024 · 1 comment

Comments

@Mikhel
Copy link

Mikhel commented Nov 3, 2024

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
Copy link
Owner

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:

  • cron: "0 0,12 * * *"

Every 24 hours:

  • cron: "0 0 * * *"

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants