mirror of
https://github.com/anthonyaxenov/iptv.git
synced 2024-11-24 22:34:34 +00:00
Fixed download-all.sh
This commit is contained in:
parent
4c18167d4a
commit
944fbdcfce
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,6 +1,6 @@
|
|||||||
/.idea
|
/.idea
|
||||||
/.vscode
|
/.vscode
|
||||||
/downloaded
|
downloaded/
|
||||||
/src/commit
|
/src/commit
|
||||||
/src/cache/*
|
/src/cache/*
|
||||||
/src/vendor
|
/src/vendor
|
||||||
|
@ -16,7 +16,17 @@
|
|||||||
#
|
#
|
||||||
#################################################
|
#################################################
|
||||||
|
|
||||||
rm -rf ./downloaded
|
TOOLS_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )";
|
||||||
mkdir -p ./downloaded && \
|
DL_DIR="$TOOLS_DIR/downloaded"
|
||||||
cd ./downloaded && \
|
ROOT_DIR="`dirname "$TOOLS_DIR"`"
|
||||||
grep -P "pls='(.*)'" ../playlists.ini | sed "s/^pls=//g" | sed "s/'//g" | tr -d '\r' | xargs wget
|
INI_FILE="$ROOT_DIR/playlists.ini"
|
||||||
|
|
||||||
|
rm -rf "$DL_DIR" && \
|
||||||
|
mkdir -p "$DL_DIR" && \
|
||||||
|
cd "$DL_DIR" && \
|
||||||
|
cat "`dirname "$TOOLS_DIR"`/playlists.ini" \
|
||||||
|
| grep -P "pls\s*=\s*'(.*)'" \
|
||||||
|
| sed "s#^pls\s*=\s*##g" \
|
||||||
|
| sed "s#'##g" \
|
||||||
|
| tr -d '\r' \
|
||||||
|
| xargs wget
|
||||||
|
Loading…
Reference in New Issue
Block a user