nuentes 41 Posted December 28, 2024 Posted December 28, 2024 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? Yes. Of course. 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. 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.
Luke 42079 Posted December 28, 2024 Posted December 28, 2024 Hi, have you checked the external id's for these titles in the metadata editor? Are they correct?
nuentes 41 Posted December 28, 2024 Author Posted December 28, 2024 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?
Luke 42079 Posted December 28, 2024 Posted December 28, 2024 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.
nuentes 41 Posted December 29, 2024 Author Posted December 29, 2024 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.
Luke 42079 Posted December 29, 2024 Posted December 29, 2024 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?
nuentes 41 Posted December 31, 2024 Author Posted December 31, 2024 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 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now