From d31276ac8bcdb75486fcf3271611542a010fede3 Mon Sep 17 00:00:00 2001 From: konsthol Date: Wed, 1 Jan 2025 21:28:42 +0200 Subject: [PATCH] ID:10T Error --- grpoppro | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/grpoppro b/grpoppro index 6378e97..5899ab7 100755 --- a/grpoppro +++ b/grpoppro @@ -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