This commit is contained in:
2024-12-30 19:53:07 +02:00
parent bc5376caf1
commit d67ba4de3b

View File

@@ -21,6 +21,8 @@ MPV_OPTS='--vo=gpu \
--no-ytdl \ --no-ytdl \
--http-header-fields="User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0" \ --http-header-fields="User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0" \
--fs' --fs'
USER_AGENT="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0"
ACCEPT="text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
## End of definitions ## End of definitions
# Print usage information # Print usage information
@@ -50,8 +52,8 @@ function message {
# Retrieve IMDb ID # Retrieve IMDb ID
function getIMDBID { function getIMDBID {
imdbid="$(curl -s -L -c "$GRPOPPRO_COOKIE_FILE" -b "$GRPOPPRO_COOKIE_FILE" \ imdbid="$(curl -s -L -c "$GRPOPPRO_COOKIE_FILE" -b "$GRPOPPRO_COOKIE_FILE" \
-A "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0" \ -A "$USER_AGENT" \
-H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" \ -H "Accept: $ACCEPT" \
"https://www.imdb.com/find/?q=$title" | grep -io ' href=['"'"'"][^"'"'"']*['"'"'"]' | grep 'href="/title/'| head -n1 | sed -e 's/href="\/title\///' -e 's/\/?.*//' -e 's/^ //' "https://www.imdb.com/find/?q=$title" | grep -io ' href=['"'"'"][^"'"'"']*['"'"'"]' | grep 'href="/title/'| head -n1 | sed -e 's/href="\/title\///' -e 's/\/?.*//' -e 's/^ //'
)" )"
# imdbid="$(curl -s "http://imdb.konsthol.eu/find?q=$title" | grep -io ' href=['"'"'"][^"'"'"']*['"'"'"]' | grep title | head -n1 | sed -e 's/^ //' -e 's/href="\/title\///' -e 's/"//')" # imdbid="$(curl -s "http://imdb.konsthol.eu/find?q=$title" | grep -io ' href=['"'"'"][^"'"'"']*['"'"'"]' | grep title | head -n1 | sed -e 's/^ //' -e 's/href="\/title\///' -e 's/"//')"
@@ -72,8 +74,8 @@ function basics {
# Retrieve internal ID # Retrieve internal ID
function getInternalID { function getInternalID {
response="$(curl -s -L -c "$GRPOPPRO_COOKIE_FILE" -b "$GRPOPPRO_COOKIE_FILE" \ response="$(curl -s -L -c "$GRPOPPRO_COOKIE_FILE" -b "$GRPOPPRO_COOKIE_FILE" \
-A "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0" \ -A "$USER_AGENT" \
-H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" \ -H "Accept: $ACCEPT" \
-H "Accept-Language: en-US,en;q=0.5" \ -H "Accept-Language: en-US,en;q=0.5" \
-H "Connection: keep-alive" \ -H "Connection: keep-alive" \
-H "Upgrade-Insecure-Requests: 1" \ -H "Upgrade-Insecure-Requests: 1" \
@@ -90,7 +92,7 @@ function getInternalID {
function getMovieStreamUrl { function getMovieStreamUrl {
PHPSESSID="$(grep 'PHPSESSID' "$GRPOPPRO_COOKIE_FILE" | awk '{print $NF}')" PHPSESSID="$(grep 'PHPSESSID' "$GRPOPPRO_COOKIE_FILE" | awk '{print $NF}')"
streamurl="$(curl -s -L -c "$GRPOPPRO_COOKIE_FILE" -b "$GRPOPPRO_COOKIE_FILE" "$apiurl/engine/ajax/controller.php" --compressed -X POST \ streamurl="$(curl -s -L -c "$GRPOPPRO_COOKIE_FILE" -b "$GRPOPPRO_COOKIE_FILE" "$apiurl/engine/ajax/controller.php" --compressed -X POST \
-H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0' \ -H "$USER_AGENT" \
-H 'Accept: application/json, text/javascript, */*; q=0.01' \ -H 'Accept: application/json, text/javascript, */*; q=0.01' \
-H 'Accept-Language: en-US,en;q=0.5' \ -H 'Accept-Language: en-US,en;q=0.5' \
-H 'Accept-Encoding: gzip, deflate, br, zstd' \ -H 'Accept-Encoding: gzip, deflate, br, zstd' \
@@ -156,8 +158,8 @@ function menuSearch {
simpleurl="$apiurl/embed/$imdbid/" simpleurl="$apiurl/embed/$imdbid/"
getInternalID "$simpleurl" getInternalID "$simpleurl"
response="$(curl -s -L -c "$GRPOPPRO_COOKIE_FILE" -b "$GRPOPPRO_COOKIE_FILE" \ response="$(curl -s -L -c "$GRPOPPRO_COOKIE_FILE" -b "$GRPOPPRO_COOKIE_FILE" \
-A "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0" \ -A "$USER_AGENT" \
-H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" \ -H "Accept: $ACCEPT" \
-H "Accept-Language: en-US,en;q=0.5" \ -H "Accept-Language: en-US,en;q=0.5" \
-H "Connection: keep-alive" \ -H "Connection: keep-alive" \
-H "Upgrade-Insecure-Requests: 1" \ -H "Upgrade-Insecure-Requests: 1" \
@@ -166,6 +168,7 @@ function menuSearch {
echo "$response" > "$GRPOPPRO_PLAYLIST_FILE" echo "$response" > "$GRPOPPRO_PLAYLIST_FILE"
title="$(grep "mp4" "$GRPOPPRO_PLAYLIST_FILE" | head -n1 | awk -F/ '{print $(NF-1)}')" title="$(grep "mp4" "$GRPOPPRO_PLAYLIST_FILE" | head -n1 | awk -F/ '{print $(NF-1)}')"
title="${title//_/ }" title="${title//_/ }"
title="${title//-/ }"
seasonEpisode="$(grep "mp4" "$GRPOPPRO_PLAYLIST_FILE" | awk -F\" '{print $8}' | awk -F/ '{print $NF}' | awk -F. '{print $1}' | eval "$menu"\""$title" \")" seasonEpisode="$(grep "mp4" "$GRPOPPRO_PLAYLIST_FILE" | awk -F\" '{print $8}' | awk -F/ '{print $NF}' | awk -F. '{print $1}' | eval "$menu"\""$title" \")"
if [[ -z "$seasonEpisode" ]]; then if [[ -z "$seasonEpisode" ]]; then
message "Nothing Selected" message "Nothing Selected"
@@ -226,8 +229,8 @@ function resumeSeries {
simpleurl="$apiurl/embed/$imdbid/" simpleurl="$apiurl/embed/$imdbid/"
getInternalID "$simpleurl" getInternalID "$simpleurl"
response="$(curl -s -L -c "$GRPOPPRO_COOKIE_FILE" -b "$GRPOPPRO_COOKIE_FILE" \ response="$(curl -s -L -c "$GRPOPPRO_COOKIE_FILE" -b "$GRPOPPRO_COOKIE_FILE" \
-A "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0" \ -A "$USER_AGENT" \
-H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" \ -H "Accept: $ACCEPT" \
-H "Accept-Language: en-US,en;q=0.5" \ -H "Accept-Language: en-US,en;q=0.5" \
-H "Connection: keep-alive" \ -H "Connection: keep-alive" \
-H "Upgrade-Insecure-Requests: 1" \ -H "Upgrade-Insecure-Requests: 1" \
@@ -316,8 +319,8 @@ if [[ "$#" -eq 3 ]]; then
season="$2" season="$2"
episode="$3" episode="$3"
streamurl="$(curl -s -L -c "$GRPOPPRO_COOKIE_FILE" -b "$GRPOPPRO_COOKIE_FILE" \ streamurl="$(curl -s -L -c "$GRPOPPRO_COOKIE_FILE" -b "$GRPOPPRO_COOKIE_FILE" \
-A "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0" \ -A "$USER_AGENT" \
-H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" \ -H "Accept: $ACCEPT" \
-H "Accept-Language: en-US,en;q=0.5" \ -H "Accept-Language: en-US,en;q=0.5" \
-H "Connection: keep-alive" \ -H "Connection: keep-alive" \
-H "Upgrade-Insecure-Requests: 1" \ -H "Upgrade-Insecure-Requests: 1" \