2022-06-08 00:57:53 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#################################################
|
|
|
|
#
|
|
|
|
# IPTV channel finder (all playlists)
|
|
|
|
#
|
|
|
|
# Usage:
|
|
|
|
# ./download-all.sh
|
2022-06-09 03:51:25 +00:00
|
|
|
# ./find-in-all.sh "(disney|atv)"
|
2022-06-08 00:57:53 +00:00
|
|
|
#
|
|
|
|
# 1st argument is channel name pattern.
|
|
|
|
#
|
2022-06-09 03:51:25 +00:00
|
|
|
# Anthony Axenov (c) 2022
|
|
|
|
# The MIT License:
|
|
|
|
# https://github.com/anthonyaxenov/iptv/blob/master/LICENSE
|
|
|
|
#
|
2022-06-08 00:57:53 +00:00
|
|
|
#################################################
|
|
|
|
|
2022-10-22 09:02:36 +00:00
|
|
|
TOOLS_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )";
|
|
|
|
ROOT_DIR="`dirname "$TOOLS_DIR"`"
|
|
|
|
[ ! -d "$TOOLS_DIR/downloaded" ] && echo "Error: 'tools/downloaded' directory does not exist. Run tools/download-all.sh" && exit 1
|
|
|
|
[ ! "$(ls -A $TOOLS_DIR/downloaded)" ] && echo "Error: 'tools/downloaded' directory is empty. Run tools/download-all.sh" && exit 2
|
|
|
|
for file in $TOOLS_DIR/downloaded/*; do
|
|
|
|
$TOOLS_DIR/find-in-pls.sh "$1" "$file"
|
2022-06-08 00:57:53 +00:00
|
|
|
done
|