# German Genres

**URL:** <https://forums.plex.tv/t/german-genres/7217>\
**Category:** Dev/API Corner\
**Tags:** scanner-agent-dev\
**Created:** [January 5, 2011, 3:27pm UTC](https://forums.plex.tv/t/german-genres/7217 "2011-01-05T15:27:22Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![dawiinci](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dawiinci/32/1301_2.png) [@dawiinci](https://forums.plex.tv/u/dawiinci)\
**Post date:** [January 5, 2011, 3:27pm UTC](https://forums.plex.tv/t/german-genres/7217/1 "2011-01-05T15:27:22Z")

</div>

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](https://global.discourse-cdn.com/plex/original/3X/d/3/d3811bd968ad87f37d73f716f4c08c937e6a4536.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.  
  

```auto

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

```

  

```auto

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

```

  

```auto

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

```

---

<div class="post-metadata">

**Author:** ![freedom80](https://avatars.discourse-cdn.com/v4/letter/f/9de0a6/32.png) [@freedom80](https://forums.plex.tv/u/freedom80)\
**Post date:** [January 5, 2011, 7:35pm UTC](https://forums.plex.tv/t/german-genres/7217/2 "2011-01-05T19:35:31Z")

</div>

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](http://www.themoviedb.org/movie/16869) and one with a misspelled title [http://www.themoviedb.org/movie/51908](http://www.themoviedb.org/movie/51908)  
  
  
  
Could you please have a look at this?

---

<div class="post-metadata">

**Author:** ![sander1](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@sander1](https://forums.plex.tv/u/sander1)\
**Post date:** [January 5, 2011, 8:54pm UTC](https://forums.plex.tv/t/german-genres/7217/3 "2011-01-05T20:54:50Z")

</div>

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:

```auto

	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 />
			...

```

---

<div class="post-metadata">

**Author:** ![dawiinci](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dawiinci/32/1301_2.png) [@dawiinci](https://forums.plex.tv/u/dawiinci)\
**Post date:** [January 5, 2011, 11:16pm UTC](https://forums.plex.tv/t/german-genres/7217/4 "2011-01-05T23:16:42Z")

</div>

> [@](#):
>
> 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?

  
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.  
  

> [@](#):
>
> 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:  
> ...

  
Thanks, I just updated it.

---

<div class="post-metadata">

**Author:** ![dawiinci](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dawiinci/32/1301_2.png) [@dawiinci](https://forums.plex.tv/u/dawiinci)\
**Post date:** [January 12, 2011, 5:23pm UTC](https://forums.plex.tv/t/german-genres/7217/5 "2011-01-12T17:23:38Z")

</div>

> [@](#):
>
> 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?

  
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).

---

<div class="post-metadata">

**Author:** ![matten](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@matten](https://forums.plex.tv/u/matten)\
**Post date:** [January 8, 2012, 4:13pm UTC](https://forums.plex.tv/t/german-genres/7217/6 "2012-01-08T16:13:02Z")

</div>

How to get this working for Linux based servers?

---

<div class="post-metadata">

**Author:** ![cheese7](https://avatars.discourse-cdn.com/v4/letter/c/76d3ee/32.png) [@cheese7](https://forums.plex.tv/u/cheese7)\
**Post date:** [January 1, 2014, 2:07pm UTC](https://forums.plex.tv/t/german-genres/7217/7 "2014-01-01T14:07:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mainomaniac](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mainomaniac/32/8649_2.png) [@mainomaniac](https://forums.plex.tv/u/mainomaniac)\
**Post date:** [January 6, 2014, 10:44am UTC](https://forums.plex.tv/t/german-genres/7217/8 "2014-01-06T10:44:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sander1](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@sander1](https://forums.plex.tv/u/sander1)\
**Post date:** [January 6, 2014, 1:22pm UTC](https://forums.plex.tv/t/german-genres/7217/9 "2014-01-06T13:22:02Z")

</div>

> Can't install a .plexapp file.

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 20, 2019, 8:56pm UTC](https://forums.plex.tv/t/german-genres/7217/10 "2019-12-20T20:56:34Z")

</div>

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