fixed imdbid variable not working using Drew's fix

This commit is contained in:
2022-10-20 23:55:01 +03:00
parent d20e617056
commit 8468f9e939

2
grpoppro Executable file → Normal file
View File

@@ -52,7 +52,7 @@ seriesurl=$(curl -s 'https://coverapi.store/uploads/playlists/'$seriesid'.txt')
}
function getIMDBID() {
imdbid=$(curl -s "https://www.imdb.com/find?ref_=nv_sr_fn&s=all&q=$title" | grep -io ' href=['"'"'"][^"'"'"']*['"'"'"]' | grep 'href="/title/'| head -n1 | sed -e 's/href="\/title\///' -e 's/\/?.*//' -e 's/^ //')
imdbid=$(curl -s "https://www.imdb.com/find?ref_=nv_sr_fn&s=all&q=$title" | grep -io '<a href=['"'"'"][^"'"'"']*['"'"'"]' | grep "title" | head -n1 | sed -e 's/^<a href=["'"'"']//i' -e 's/["'"'"']$//i' -e 's/\/title\///' -e 's/\///g')
if ! [[ "$imdbid" == *"tt"* ]];then
[[ "$INTERACTIVE" == "on" ]] && notify-send -t 2000 "Film or show not found in imdb" || echo -e "\n\tFilm or show not found in imdb"
exit