disregard the previous commit, now it's actually fixed
This commit is contained in:
2
grpoppro
2
grpoppro
@@ -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 '<a href=['"'"'"][^"'"'"']*['"'"'"]' | grep "title" | head -n1 | sed -e 's/^<a href=["'"'"']//i' -e 's/["'"'"']$//i' -e 's/\/title\///' -e 's/\///g')
|
||||
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/^ //')
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user