Script uses Selenium & Firefox (Gecko driver), so make sure you've installed Firefox browser on your computer, all the rest get installed automatically.
git clone https://github.com/interlark/ustvgo_downloader
cd ustvgo_downloader
pip3 install -r requirements.txt
-
Use download.py to download playlist ustvgo.m3u8 from ustvgo.tv if you need it:
It's not required, since you can use the already existing playlist, so you can skip this step.
python3 download.py
[1/81] Successfully collected link for GSN [2/81] Successfully collected link for LIFETIME MOVIES [3/81] Successfully collected link for ANIMAL PLANET [4/81] Successfully collected link for NBC SPORTS ...
-
Use update.py to update authentication key:
Every key is valid for 4 hours.
python3 update.py
Recieved key: c2VakmPyX...aW52dRVzoTI1MA== Updating ustvgo.m3u8 playlist...
-
Play collected/updated playlist:
vlc ustvgo.m3u8 --adaptive-use-access
- If you run script on dedicated headless server and bump into erros like Failed to collect link - seems like you don't have AVC codecs installed on your server, try install them with
sudo apt-get install ubuntu-restricted-extras
if you have ubuntu server installed or commonly
sudo apt-get install libavcodec58 libav-tools
- If you get errors and now guessing what's going wrong, try to run script with --no-headless argument to see what's going on in the browser
python3 download.py --no-headless
or
python3 update.py --no-headless
- In case if you're not a native speaker and use TV, Cartoons, Movies and Shows to learn the language - on some channels you can turn on subtitles that make it easier pretty much.
CFLAGS="-I$(brew --prefix readline)/include -I$(brew --prefix openssl)/include -I$(xcrun --show-sdk-path)/usr/include" \
LDFLAGS="-L$(brew --prefix readline)/lib -L$(brew --prefix openssl)/lib" \
PYTHON_CONFIGURE_OPTS=--enable-unicode=ucs2 \
pyenv install -v 2.7.11
pyen