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