ID:10T Error

This commit is contained in:
2025-01-01 21:28:42 +02:00
parent 6ff1689aaa
commit d31276ac8b

View File

@@ -500,7 +500,9 @@ if [[ "$#" -eq 3 ]]; then
| head -n1 \
| awk -F\" '{print $8}'
)"
message "Loading $title at season $season on episode $episode"
title="${title//%20/ }"
capitalized_title="$(echo "$title" | awk '{for(i=1;i<=NF;i++) $i=toupper(substr($i,1,1)) substr($i,2)}1')"
message "Loading $capitalized_title at season $season on episode $episode"
play
exit 0
fi
@@ -512,7 +514,8 @@ if [[ "$#" -eq 1 ]] && [[ "$1" != "--menu" ]] && [[ "$1" != "--resume" ]] && [[
getInternalID "$simpleurl" # Gets the complete url and performs one request to get the internal id or inform us it does not exist
getMovieStreamUrl "$internalid" # Gets the internal id and performs one request to get the stream url
title="${title//%20/ }"
message "Loading $title"
capitalized_title="$(echo "$title" | awk '{for(i=1;i<=NF;i++) $i=toupper(substr($i,1,1)) substr($i,2)}1')"
message "Loading $capitalized_title"
play # It uses mpv to stream the file
exit 0
fi