accidental commit

This commit is contained in:
2024-12-30 22:59:07 +02:00
parent fd3f584967
commit 24748a0e23

View File

@@ -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