0
0
mirror of https://github.com/anthonyaxenov/iptv.git synced 2024-11-22 05:24:45 +00:00
iptv/tools/download-all.sh
AnthonyAxenov 1a2bc188c6
Some new stuff
- MIT License
- new make-pls.sh
- some tools refactoring and documentation
2022-06-09 11:51:25 +08:00

23 lines
548 B
Bash
Executable File

#!/bin/bash
#################################################
#
# IPTV Playlist download tool
#
# Usage:
# ./download-all.sh
#
# All playlists from playlists.ini will be
# downloaded in ./downloaded directory
#
# Anthony Axenov (c) 2022
# The MIT License:
# https://github.com/anthonyaxenov/iptv/blob/master/LICENSE
#
#################################################
rm -rf ./downloaded
mkdir -p ./downloaded && \
cd ./downloaded && \
grep -P "pls='(.*)'" ../playlists.ini | sed "s/^pls=//g" | sed "s/'//g" | tr -d '\r' | xargs wget