中文 | English
Copy the source code of this repository to your personal account repository
- Name your personal repository, you can name it whatever you like (the final live source result link depends on this name), here we use default TV as an example.
- After confirming the information is correct, click to confirm and create.
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!
- Create file
- Name the template file user_demo.txt
- The template file needs to be written in the format of (channel category, #genre#), (channel name, channel interface), note that it is an English comma. The maximum number of channels is 200, any excess will not be updated.
- Click Commit changes... to save.
Similar to editing the template, modify the running configuration
- Create file
- Name the configuration file user_config.py
- Paste the default template, modify source_file = "user_demo.txt"; final_file = "user_result.txt"
- Click Commit changes... to save.
Adjust the configuration as needed. Below is the default configuration explanation: Config parameter
1. Install Python
Please download and install Python from the official site. During installation, choose to add Python to the system's environment variables Path.
2. Run Update
Open a CMD terminal in the project directory and run the following commands in sequence:
pip3 install pipenv
pipenv install
pipenv run build
1. Download the update tool software, open the software, click update to complete the update.
2. Alternatively, run the following command in the project directory to open the GUI software:
pipenv run ui
1. Pull the image: docker pull guovern/tv:latest
2. Run the container: docker run -d -p 8000:8000 tv
3. Access (domain:8000) to view the update results
Note: Link to the result file after updates of methods one to three: http://local ip:8000
Please see step six
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://mirror.ghproxy.com/raw.githubusercontent.com/your github username/repository name (corresponding to the TV created when forking)/master/user_result.txt
Since this project will continue to iterate and improve, if you want to get the latest updates, you can do the following:
Click on the star button at the homepage of my repository to favorite this project (Your star is the motivation for me to keep updating).
Follow this project to be notified by email about the latest updates and release logs through releases.
Return to the homepage of your repository. If there are updates to the project, click on "Sync fork" and then "Update branch" to confirm and update to the latest code.
Please use the following content with caution. If you have a large number of channels that need to be updated, please use local updates instead of automatic updates. Improper configuration may lead to your account or workflow being banned!
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.
- Click on update schedule under the Workflows category.
- Since the workflow of the forked repository is disabled by default, click the Enable workflow button to confirm the activation.
Now you can run the update workflow.
- Click Run workflow.
- Here you can switch to the branch you want to run. Since the fork defaults to the master branch, if the template and configuration you modified are also in the master branch, just choose master here, and click Run workflow to confirm the run.
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://mirror.ghproxy.com/raw.githubusercontent.com/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~
- Note: Except for the first execution of the workflow, which requires you to manually trigger it, subsequent executions (default: daily at 6:00 am Beijing time) will be automatically triggered. If you have modified the template or configuration files and want to execute the update immediately, you can manually trigger (2) Run workflow.
If you want to modify the update frequency (default: daily at 6:00 am Beijing time), you can modify the on:schedule:- cron field.