thynan 6 Posted January 18, 2018 Posted January 18, 2018 I had problems downloading subtitles for many of my movies, and I think I managed to find the reason why. It is an edge case which will not be relevant for many users, but I'll describe it here, so other users may save some time, and/or the dev's can fix it in a future release: Problem Description I merged my movie library with the library of a friend. He had his movies sorted correctly in an individual folder per movie, and he had all the metadata saved in the folders (*.nfo, landscape.jpg, logo.jpg etc). After copying his movies into my library everything seemed fine. However I later found out, that I could not download subtitles for some movies. For some it worked, for some it failed with such an error in the log: System.IO.DirectoryNotFoundException: Could not find a part of the path "/var/lib/emby-server/metadata/library/42/424c24d4c4bb6a7b1614888212f3b104/X-Men (2000).eng.srt". Steps to reproduce Use a Library with the setting "save metadata into media folders" disabled (my server doesnt have write access to the movie-folders - only read, so I need this setting...) Add new movies with metadata already in the movie-folder to this library Try to manually download a subtitle for added movies - it fails for some Possible Reason / Solution I suspect the reason for the download failure is this is this: If you add a movie, which has all the metadata emby needs already in the folder, emby correctly uses this metadata, instead of downloading/creating new metadata. Because of this, the metadata folder in /var/lib/emby-server/metadata/library/XX/XXXXXXXXXXXXX is never created for this move. If you later want to download a subtitle, emby tries to save to this (never created) metadata folder, and can't find it -> the subtitle download fails. The reason that the download only failed for some movies is, that some movies had all the metadata already in the movie folder (subtitle download later failed), and some had one or two missing files (e.g. no logo.jpg or no landscape.jpg). For the movies which had missing metadata, emby created the metadata folder under emby-server/metadata/library... and so for them the subtitle download later worked. My temporary solution was this: delete the logo.jpg file from each movie folder (find /path/to/movie-library -name "logo.png" -delete) remove and re-add the movie folder from the library Emby then rescanned all movies, and created the metadata folder for each movie, because they all had at least one missing file. Subtitle download now seems to work for all movies.
Luke 42080 Posted January 18, 2018 Posted January 18, 2018 Hi, thanks, this has been resolved for the next release of the server (which is hopefully today).
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