accidental commit
This commit is contained in:
6
grpoppro
6
grpoppro
@@ -74,11 +74,7 @@ function getFzfForTermux {
|
|||||||
|
|
||||||
# Retrieve IMDb ID
|
# Retrieve IMDb ID
|
||||||
function getIMDBID {
|
function getIMDBID {
|
||||||
response="$(curl -s -L -c "$GRPOPPRO_COOKIE_FILE" -b "$GRPOPPRO_COOKIE_FILE" \
|
response="$(curlRequest "https://www.imdb.com/find/?q=$title")"
|
||||||
-A "$USER_AGENT" \
|
|
||||||
-H "$ACCEPT" \
|
|
||||||
"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="$(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/"//')"
|
# 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
|
if ! [[ "$imdbid" == *"tt"* ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user