mirror of
https://gitgud.io/Melon__Bread/auto-ttv-grabber.git
synced 2025-07-06 19:34:36 -04:00
Compare commits
2 Commits
config
...
ed2f65bee5
Author | SHA1 | Date | |
---|---|---|---|
ed2f65bee5 | |||
18c0f2123d |
@ -10,4 +10,4 @@
|
|||||||
This script relies on [streamlink](https://streamlink.github.io) being in your systems path.
|
This script relies on [streamlink](https://streamlink.github.io) being in your systems path.
|
||||||
You can find all of its requirements on the their project page.
|
You can find all of its requirements on the their project page.
|
||||||
This script loops through all of the channels in `channel_list.txt` once per minute checking to see if the channel is live via a HTTP request.
|
This script loops through all of the channels in `channel_list.txt` once per minute checking to see if the channel is live via a HTTP request.
|
||||||
Once a channel is live a [streamlink](https://streamlink.github.io) subprocess spawns in the background downloading the stream to it's default location (`$HOME/Videos/Stream/<channel_name>`)
|
Once a channel is live a [streamlink](https://streamlink.github.io) subprocess spawns in the background downloading the stream to it's default location (`$HOME/Downloads/Stream/<channel_name>`)
|
||||||
|
2
main.py
2
main.py
@ -1,13 +1,13 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import configparser
|
import configparser
|
||||||
import os
|
import os
|
||||||
|
import requests
|
||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import requests
|
|
||||||
|
|
||||||
channel_list = []
|
channel_list = []
|
||||||
downloading = {}
|
downloading = {}
|
||||||
|
5
requirements.txt
Normal file
5
requirements.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
certifi==2024.2.2
|
||||||
|
charset-normalizer==3.3.2
|
||||||
|
idna==3.6
|
||||||
|
requests==2.31.0
|
||||||
|
urllib3==2.2.1
|
Reference in New Issue
Block a user