German Genres

optimizes and translates the genres (other languages possible)
**Description
**
This agent loads the genres from themoviedb.org and translates them to German. I think this is the only way to have German genres in Plex because it is too complex to translate it afterwards. Thanks to Raindancing for the idea and her help.

I limited the available genres to these **31 main genres**.

[list]
[*]Abenteuer
[*]Action
[*]Animationsfilm
[*]Dokumentation
[*]Drama
[*]Eastern
[*]Erotik
[*]Familie
[*]Fan Film
[*]Fantasy
[*]Film noir
[*]Historienfilm
[*]Horror
[*]Independentfilm
[*]Katastrophenfilm
[*]Komödie
[*]Kriegsfilm
[*]Krimi
[*]Kurzfilm
[*]Musical
[*]Mystery
[*]Neo noir
[*]Road Movie
[*]Romanze
[*]Science-Fiction
[*]Spannung
[*]Sportanlass
[*]Sport
[*]Thriller
[*]Weihnachten
[*]Western
[/list]

**Installation of German Genres v1.1
**
Download this file and open it: GermanGenres.plexapp (178 KB)
(If you can't open the file try [this](http://forums.plexapp.com/index.php?/topic/18471-plexapp-install-files/).)

*History
[list]
[*]1.0 initial release
[*]1.1 agent translates the genres only if the section is set to German
[/list]*

Inside PMS go to the "Metadata Agent Settings". Enable "German Genres" and move it to the top. This only affects the genres so any other information will be gathered as you have your order.

Now shift-click on the refresh button or "Refresh Metadata" on a single movie to get the translated genres.

If your movies don't get the new genres try to right-click and "match using ... freebase" or "fix incorrect match" and choose the movie. I think this happens if the movie originally has been scanned by an other agent than freebase. Be sure you haven't lock your genres.

**updates
**
The plugin is provided to you as it is. It worked for me so you shouldn't have any issues. I don't add more sources or genres because I think it just makes it cluttered. However feel free to modify it for yourself.

If you find a bug or a typo please reply so I can fix it.


**German movie descriptions
**
If you don't already have it, load the agent for moviepilot to get German descriptions for your movies. sander1 has built a great agent. You can load it from [here](http://forums.plexapp.com/index.php/topic/18854-moviepilot/). This agent does not handle the genres at all so it's the perfect match.


**support for other languages
**
This agent can be modified for any language. Just open __init__.py inside the German Genres.bundle and translate the left column to your langauage.


'Abenteuer'   :   ['adventure'],<br />




'Aventure'   :   ['adventure'],<br />




'Avventura'   :   ['adventure'],<br />


Thanks for this agent dawiinci! I just checked my available genres in plex and noticed that I have one additional genre “action & adventure” which is not in your list. It is created by the movie “Inglourious Basterds”. I don’t know what’s going wrong here. I found out that there are two entries for the film in TMDb:



http://www.themoviedb.org/movie/16869 and one with a misspelled title http://www.themoviedb.org/movie/51908



Could you please have a look at this?

Nice job!! I’d like to suggest one change: to have the agent only do its work if the language of the section is set to “Deutsch”. Otherwise, people who have set up multiple sections with different languages will get German genres on all their non-German sections as well:



	def update(self, metadata, media, lang):<br />
		if lang == 'de':<br />
			freebase_metadata = metadata.contribution('com.plexapp.agents.themoviedb')<br />
			freebase_genres = freebase_metadata.genres<br />
			...<br />
			...<br />
			...


The second entry is a duplicate. I will report it to TMDB so it gets deleted. Might need some time until the changes are in Plex. I just had some problems with my own movies and they are all duplicated on TMDB. So by the time the recognition will get better.

The genre Action & Adventure is not existing on TMDB. This genre is probably loaded from freebase because the second entry had no genres. The easiest way is to fix the entry manually or wait until my changes from TMDB are available in Plex.


Thanks, I just updated it.

I managed to delete the duplicate.

Please try again it should work now. You should also get much more posters and fanarts.


If you find any movie that has a duplicate please report it [here](http://forums.themoviedb.org/). You can add missing German titles or movies to TMDB by creating an account at [TMDB](http://www.themoviedb.org/account/signup).

How to get this working for Linux based servers?

I would also like to use this script on a linux based server... Can't install a .plexapp file.

I cant open the 1st file, how to ?

The 2nd file is down, can you reupload it pls, or tell me how the 1st could work for me?

thx in advance.

greets

main

Can't install a .plexapp file.

.plexapp install files are very old. Here is the same metadata agent/plugin as a zip file.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.