Jump to content

Subtitles Not Downloading


Recommended Posts

Posted

I cannot figure this out. I've gone through previous posts, and tried the fixes provided, but still I get 0 results when trying to download subtitles. I even added Addic7ed, and still no luck.

FAQ:

  • Are you using your username for Open Subtitles?
    • Yes. Not my email. My username.
  • Are you using credentials for opensubtitles.com, or .org.
    • .com. I tested logging in.
  • Have you gotten a log?
  • Have you tried turning off Hash Match?
    • Yup! No difference.

I'm only really trying to download subtitles for videos in one specific Library at this time. Here is how I have that Library configured for sub downloads.

image.png.5ef507103d047416e207df7b850b892e.png

 

image.png.6ac1733e42f9505f70d0b7a2d96c0c06.png

Also, while writing this, I started testing more and more videos. It appears that I AM getting some OpenSubtitles results, however they are WILDLY inaccurate. I am yet to see an OpenSubtitles suggestion that is actually for the movie I'm searching for.

image.thumb.png.3bfd72989667e00cee301fbdceeed600.png

image.thumb.png.a5c4f26117fa867db833a701b8e16431.png

Posted

Hi, have you checked the external id's for these titles in the metadata editor? Are they correct?

Posted

Oh neat, looks like the imdbid's are wrong. It looks like MovieDB and Trakt are both correct, but imdbid is probably exactly what subtitle searches use.

I have no clue how that happened. How in the world would I correct this?

Posted
6 minutes ago, nuentes said:

Oh neat, looks like the imdbid's are wrong. It looks like MovieDB and Trakt are both correct, but imdbid is probably exactly what subtitle searches use.

I have no clue how that happened. How in the world would I correct this?

I would use the metadata editor to manually correct them, then try to search for subtitles again and see if that helps.

Posted
8 hours ago, Luke said:

I would use the metadata editor to manually correct them, then try to search for subtitles again and see if that helps.

well, I believe I have to fix this on hundreds of different nfo files. So I will likely need to make a script.

Posted
2 hours ago, nuentes said:

well, I believe I have to fix this on hundreds of different nfo files. So I will likely need to make a script.

I wonder how that happened?

Posted

I have no clue how it happened. I'm sure I did something dumb many years ago. Only videos that I've had >7 years are affected. Essentially stuff from before I started using Emby. I finally had some time for this today, so just in case someone else ever experiences this dumb issue, here is the script that I made to repair it (linux bash). Basically, I found affected nfo files, and removed any imdb tags. After this, I just ran a library scan, and everything looks good now. And Subtitle searching appears to be functional now.

WDIR="/mnt/12TB_1/Movies"
IFS=$'\n'

## create an array containing file names
files=( $(find $WDIR -mindepth 1 -type f -iname "*.nfo" | sort ) )

## loop over the files
for file in "${files[@]}"; do
	#copy the file to the desktop because xmllint was having issues accessing my 12TB disk
	cp $file /home/user/Desktop/my.nfo

	#create the variables
	imdbid=$(xmllint --xpath 'string(/movie/imdbid)' /home/user/Desktop/my.nfo)
	tmdbid=$(xmllint --xpath 'string(/movie/tmdbid)' /home/user/Desktop/my.nfo)
	title=$(xmllint --xpath 'string(/movie/title)' /home/user/Desktop/my.nfo)


	if [ "$imdbid" == "$tmdbid" ]; then
		#save a backup of the nfo file
		cp $file /mnt/12TB_1/imdbfix/bak/
		echo "repairing $title"
		#clear the tags from the original nfo file
		sed -i "/<imdbid>$imdbid<\/imdbid>/d" $file
		sed -i "/<id>$imdbid<\/id>/d" $file
		sed -i '/imdb.*uniqueid>/d' $file
		#note which directory we did this for
		echo "repaired;"$file";"$title >> /mnt/12TB_1/imdbfix/imdbfix.csv
	else
		#note which nfo files were not repaired
		echo "not repaired;"$file";"$title >> /mnt/12TB_1/imdbfix/imdbfix.csv
	fi
done

 

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...