From 24748a0e23bf63334a1ee04fe81c9d21bb9f6e66 Mon Sep 17 00:00:00 2001 From: konsthol Date: Mon, 30 Dec 2024 22:59:07 +0200 Subject: [PATCH] accidental commit --- grpoppro | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/grpoppro b/grpoppro index 76d41a0..d499baf 100755 --- a/grpoppro +++ b/grpoppro @@ -74,11 +74,7 @@ function getFzfForTermux { # Retrieve IMDb ID function getIMDBID { - response="$(curl -s -L -c "$GRPOPPRO_COOKIE_FILE" -b "$GRPOPPRO_COOKIE_FILE" \ - -A "$USER_AGENT" \ - -H "$ACCEPT" \ - "https://www.imdb.com/find/?q=$title" - )" + response="$(curlRequest "https://www.imdb.com/find/?q=$title")" imdbid="$(echo "$response" | 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/"//')" if ! [[ "$imdbid" == *"tt"* ]]; then