Compare commits

...

2 Commits

Author SHA1 Message Date
ed2f65bee5 Should maybe make requests a requirement 2024-04-06 23:47:07 -04:00
18c0f2123d Fixed stream saved location 2024-04-06 22:44:51 -04:00
3 changed files with 7 additions and 2 deletions

View File

@ -10,4 +10,4 @@
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.
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>`)

View File

@ -1,13 +1,13 @@
#!/usr/bin/env python3
import configparser
import os
import requests
import shutil
import subprocess
import sys
import time
from datetime import datetime
from pathlib import Path
import requests
channel_list = []
downloading = {}

5
requirements.txt Normal file
View 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