中文 | English
Copy the source code of this repository to your personal account repository
Since this project will continue to iterate and improve, if you want to get the latest updates, you can do the following:
Go to https://github.com/Guovin/iptv-api, click on Star to bookmark this project (Your Star is my motivation to keep
updating).
Follow this project to be notified by email about the latest updates and release logs through releases.
Go back to the homepage of your repository after forking. If there are updates to the project, click on "Sync fork" and
then "Update branch" to confirm and update to the latest code.
This is because some files conflict with the default files in the main repository. Click "Discard commits" to update to
the latest code.
When you click to confirm and create in step one, you will be automatically redirected to your personal repository. At this point, your personal repository is created, and you can customize your personal live source channel menu!
Similar to editing the template, modify the running configuration
Adjust the configuration as needed. Below is the default configuration explanation: Config parameter
If your template and configuration modifications are correct, you can configure Actions to achieve automatic updates
Since the Actions workflow of the forked repository is disabled by default, you need to manually enable it by clicking
the button in the red box to confirm.
After successful activation, you can see that there are no workflows running at the moment. Don't worry, let's start
running your first update workflow below.
Now you can run the update workflow.
Wait a moment, and you will see that your first update workflow is running!
(Note: The running time depends on the number of channels and pages in your template and other configurations, and also
largely depends on the current network conditions. Please be patient. The default template and configuration usually
take about 25 minutes.)
If you feel that this update is not quite right and you need to modify the template or configuration before running
again, you can click Cancel run to cancel this run.
If everything is normal, after a short wait, you will see that the workflow has been executed successfully (green check
mark).
At this point, you can visit the proxy file link to see if the latest results have been synchronized:
https://cdn.jsdelivr.net/gh/your github username/repository name (corresponding to the TV created when
forking)@master/user_result.txt
If you can access this link and it returns the updated interface content, then your live source interface link has been successfully created! Simply copy and paste this link into software like TVBox in the configuration field to use~
If you want to modify the update frequency (default: 6:00 AM and 18:00 PM Beijing time daily), you can modify the on:
schedule:- cron field.
If you want to perform updates every 2 days, you can modify it like this:
- cron: '0 22 */2 * *'
- cron: '0 10 */2 * *'
Install Python Please download and install Python from the official site. During installation, choose to add Python to the system's environment variables Path.
Run Update Open a CMD terminal in the project directory and run the following commands in sequence:
pip install pipenv
pipenv install --dev
Start update:
pipenv run dev
Start service:
pipenv run service
Download IPTV-API software, open the software, click update to complete the update.
Alternatively, run the following command in the project directory to open the GUI software:
pipenv run ui
It's recommended to try each one and choose the version that suits you
docker pull guovern/iptv-api:latest
docker pull guovern/iptv-api:lite
docker run -d -p 8000:8000 guovern/iptv-api
docker run -d -p 8000:8000 guovern/iptv-api:lite
Volume Mount Parameter (Optional): This allows synchronization of files between the host machine and the container. Modifying templates, configurations, and retrieving updated result files can be directly operated in the host machine's folder.
Taking the host path /etc/docker as an example:
docker run -v /etc/docker/config:/iptv-api/config -v /etc/docker/output:/iptv-api/output -d -p 8000:8000 guovern/iptv-api
docker run -v /etc/docker/config:/iptv-api-lite/config -v /etc/docker/output:/iptv-api-lite/output -d -p 8000:8000 guovern/iptv-api:lite
Port environment variables:
-e APP_PORT=8000
If you do not have your own domain address, after the interface update is completed, upload user_result.txt to your
personal repository to use it.
https://cdn.jsdelivr.net/gh/github username/repository name (corresponding to the TV created when
forking)@master/output/user_result.txt