I’m running OFDB for my german movies archive for a few days now. I noticed, that the Plex OFDB agent has issues to find movies at OFDB that start with an article or something similar. This might have to do with the strange way movies with articles are named at OFDB. Here’s an example:
Movie:
english: “A Beautiful Mind”
german: “A Beautiful Mind - Genie und Wahnsinn”
OFDB: “Beautiful Mind - Genie und Wahnsinn, A” (wtf?)
Plex does not find this movie at OFDB and uses the english fallback for all movie information.
Is there any way to get this right or is it not possible to trick the weird naming scheme on OFDB into something useful? Thinking how many movie titles beginning with articles I have in my library leaves a bad taste in my mouth.
First check if modified agent doesn’t already fix this
Second, you could edit the agent, and replace the article with something like:
replacement_array = {"A ": ", A", "The ": ", The"}
for item in replacement_array:
if string_title.startswith(item): string_title = string_title[len(item):]+replacement_array [item]
in other word, if title starts with the string in the array, remove it by taking the string after this length (length of item) until the end ( and append the article
@drakanor said:
Movie:
english: “A Beautiful Mind”
german: “A Beautiful Mind - Genie und Wahnsinn”
OFDB: “Beautiful Mind - Genie und Wahnsinn, A” (wtf?)
This is totally the fault of the people who fill OFDb.de with metadata.
Some of them think it is awesome to have such ‘mangled’ titles, just because they are easier to sort.
They do it with musical Artists too. ‘Frank Zappa’ becomes ‘Zappa, Frank’ - yuck!
I too think it is an atrocity to mangle titles this way.
i do leave the original unmangled title, and move the file into the letter folder according to the first letter after the article
The agent need to be able to handle this much though, by removing the article , or arranging the title in a way that match the database preference… Wouldn’t store the title mangled though, but the agent should be modified so it doesn’t matter…
The OFDB agent only searches for movies on OFDB if the primary agent (Plex Movie) is providing an IMDb id. If an IMDb id is provided, OFDB looks up the movie based on that id. It doesn’t do any searches on movie title.
But what else could be the reason that Plex displays only english data for that very movie, while others have german title and description?
I also double-checked the meta data of the MKV container, but it has the very same structure as the other movies. I unified all of them according to the recommendations in the naming thread for german movies (OFDB).
@drakanor said:
But what else could be the reason that Plex displays only english data for that very movie, while others have german title and description?
That is strange, especially since I just added that movie to my OFDB test library and got all the metadata from OFDB:
Can you post your exact file name of the folder/file? And maybe upload the log files from both agents (com.plexapp.agents.ofdb.log and com.plexapp.agents.imdb.log) after refreshing that movie?
I just tested this a bit, and as it seems it’s a refresh issue with PMS.
I did a “soft” refresh - nothing changed.
Then I moved the movie to somewhere else, soft refreshed the library, and then moved it back, soft refreshed the library again. Suddenly it shows the correct german information. I tried the same with other movies that wheren’t displayed in german: the same. Move them out and back in again and everything is fine.
Right now I’m doing a complete hard refresh of my whole library, which will take some time. But obviously PMS (Windows) doesn’t detect changes in files correctly on it’s own. Sorry for bothering you, since it’s obviously not an agent issue.
The only thing regarding my original issue is that “A Beautiful Mind” is now listed for letter “B”. Which probably is OFDB’s fault indeed. Maybe your commit will fix this, sander1. Thanks for that.
EDIT: I can confirm that after the “hard” refresh all movie are correctly titled and described in German.