accidental commit
This commit is contained in:
6
grpoppro
6
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
|
||||
|
||||
Reference in New Issue
Block a user