Readme + tools output misc
This commit is contained in:
@@ -49,7 +49,7 @@ awk '
|
||||
if ($0 ~ /^#EXTINF:.+,/) {
|
||||
total_count++
|
||||
channel_name = substr($0, index($0, ",") + 1, length($0))
|
||||
print "[" total_count "] " channel_name "..."
|
||||
print "\n[" total_count "] " channel_name
|
||||
}
|
||||
if ($0 ~ /^http(s)?:\/\/.*/) {
|
||||
url = sprintf("%c%s%c", 34, $0, 34) # 34 is "
|
||||
@@ -60,10 +60,10 @@ awk '
|
||||
http_code = "-"
|
||||
}
|
||||
if (code == 0 || code == 63) {
|
||||
print "\t- \033[32mOK:\033[0m " url
|
||||
print "\033[32mOK:\033[0m " url
|
||||
success_count++
|
||||
} else {
|
||||
print "\t- \033[91mERROR\033[0m " code " (" http_code "): " url
|
||||
print "\033[91mERROR\033[0m " code " (" http_code "): " url
|
||||
fail_count++
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ if [[ "$playlist" =~ $regex_url ]]; then
|
||||
if [ $? -eq 0 ]; then
|
||||
is_downloaded=1
|
||||
playlist="$download_dir/$(ls -1 "$download_dir")"
|
||||
cd -
|
||||
cd - > /dev/null
|
||||
else
|
||||
echo "ERROR: cannot download playlist: $playlist"
|
||||
exit 1
|
||||
@@ -74,8 +74,8 @@ if [ $found_count -eq 0 ]; then
|
||||
echo -e "\033[91mNothing found\033[0m"
|
||||
else
|
||||
echo "--------------------"
|
||||
echo -e "\033[20m\033[97mPlaylist:\033[0m $playlist_url"
|
||||
echo -e "\033[20m\033[97mChannel:\033[0m $channel"
|
||||
echo -e "\033[20m\033[97mPlaylist:\033[0m $playlist_url"
|
||||
echo -e "\033[20m\033[97mFound:\033[0m\033[32m $found_count\033[0m"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user