UK Film Ratings (PG, 12, 15 etc)



I'm the same, I cannot get this to work for the life of me.

I see the code has changed for the official bundle, I suspect that’s why it doesn’t work. I can take a look at it and hopefully it’s something simple.



Are the bundels the same on all platforms? I assume so. Are all the other bundles in those folders (thetvdb etc)?



I don’t think it’s this but as a point of interest you can’t have 2 bundles for themoviedb at the same time. You need to remove the original, and make sure the replacement is named


TheMovieDB.bundle

or PMS will just delete it and download the official one.


The other trick is to remove the official one, and to symlink mine. If PMS find a symlink for a bundle he knows about, it thinks it is underdevelopment and does not try to update/remove it. :)

I'd love to see the Plex Devs to put a bit more attention on the contributed code. This improvement to TMDB has been out for months, i've done pull-request, sent email and it never got integrated, i've not even had a little email explaining why.... Sander> please make plex better, integrate this horrible hack that we all want. :)


It deletes the UK one, even if I leave the original there and leave the UK named as "TheMovieDBUK" - every time PMS restarts, it deletes the UK one.


How do you get the drop down in yours that says "Automatic, UK, France, etc"?

2 solutions :

  • either drop it somewhere out of controll of PMS and symlink it in the pms plugins directory
  • or edit the source code to change the name of the object to something not being TheMovieDB (see my first commits in github to see me reversing that trick)


Ok, thanks, but how do you get the drop down in yours that says "Automatic, UK, France, etc"?

It’s a feature of my version of TheMovieDB agent : Aqntbghd · GitHub :slight_smile:



Yeah thanks, but how do you get it to work?

Can you get us some more logs than just “it doesn’t work”. Look into Library/Logs/ and get there the appropriate plugins log to see which version is loaded,etc…



I mean, could you give me a start to finish quick guide on how to set up your method?

Anyway, my logs for TheMovieDB plugin are here:

http://dl.dropbox.com/u/2213114/TheMovieDBlogs.zip

Apparently you're not running the right version of the code (at least not mine that is on github) :


2011-09-26 18:23:55,278 (-537e0d40) :  DEBUG (agentkit:784) - Updating agent information: [{'media_types': ['Movie'], 'accepts_from': None, 'fallback_agent': None, 'contributes_to': ['com.plexapp.agents.imdb'], 'languages': ['en', 'sv', 'fr', 'es', 'nl', 'de', 'it', 'da'], 'primary_provider': False, 'prefs': True, 'name': 'TheMovieDB'}]<br />
2011-09-27 06:54:58,441 (-4f9e9000) :  DEBUG (networking:96) - Requesting http://api.themoviedb.org/2.1/Movie.imdbLookup/en/json/a3dc111e66105f6387e99393813ae4d5/tt0092890



If it was my code the URL would be en_US or en_UK due to automatic country detection. and there would be a country preference. Can you re-download my code from github and explain how you did the install of the plugins ?

thanks,


Clicked "Download", chose Zip file, extracted the zip which left me with a "Contents" folder. On my Mac Mini, I found the official TheMovieDB.bundle, right clicked and chose "Show Package Contents", then replaced the "Contents" folder with your one...


I can get into Preferences and choose "The Movie DB" or "TheMovieDB UK" by ticking the box next to then, but it doesn't save - if I close the dialog then re-open, it's unpicked again

Ok you are in the case where plex sees a change in a managed plugins (themovieDB and then tries to restore it to its original state. Here’s a solution :

  • Move PLex original TheMovieDB.bundle in your document directory (or anywhere else convenient to you and outside of plex control)
  • Create a TheMovieDB-UK directory in your document directory
  • Move the content folder you unzipped from git into that one.
  • use terminla to create a symlink from TheMovieDB-UK in the Plex plugins directory as TheMovieDB



    Then plex will see themovieDB, know it is managed but as it is a symlink it will not try to restore it.



    I know this is a bit painful but as long as the plex devs don’t update their version to include my fixes we will have to do this to use a development version.



    cheers,

I got it working in the end on my Ubuntu PMS, as said by Aqntbghd you do have to symlink to the bundle, so you delete the original and symlink to the new one, to set the country code I did it manually in the file DefaultPrefs.json,



Here’s my DefaultPrefs.json file



[<br />
  {<br />
    "id":"title",<br />
    "label":"Use Movie Title from TheMovieDB",<br />
    "type":"bool",<br />
    "default":"false"<br />
  },<br />
  {<br />
    "id":"country",<br />
    "label":"Country",<br />
    "type":"enum",<br />
    "values":       ["Automatic","Argentina","Australia","Austria","Belgium","Belize","Bolivia","Brazil","Canada","Chile","Colombia","Costa Rica","Czech Republic","Dominican Republ$<br />
    "default":"United Kingdom"<br />
  }<br />
]

Thanks, I tried all that but STILL I can’t get it working. For example, I keep clearing and re-matching “The Adjustment Bureau” as a test and it ALWAYS comes back with “PG-13” as opposed to the UK rating.



I did symlink thing, I hope I did it right, what I did was:


  1. Download the zip file from github
  2. Create a folder called TheMovieDB-UK in my Documents folder
  3. Put the “Contents” folder from 1) into the folder created at 2)
  4. Moved the original TheMovieDB.bundle from ~/Library/Application Support/Plex Media Server/Plugins out of the way
  5. In terminal I cd’d to ~/Library/Application Support/Plex Media Server/Plugins/ then typed ln -s ~/Documents/TheMovieDB-UK/ TheMovieDB.bundle to create a file called “TheMovieDB.bundle” in ~/Library/Application Support/Plex Media Server/Plugins/ that points to ~/Documents/TheMovieDB-UK folder



    I have noticed that if I go into Plex Media Manager and choose Preferences for my Movie section, only Freebase is ticked (TheMovieDB is NOT ticked) and no matter how many times I tick it, it always clear itself to un-ticked the next time I go in.

do you have the country selection dialog on themovieDB preferences dialog ?



Yes, and I ticked the box and chose "United Kingdom". I restarted PMS and "Unmatched" some movies, then right-clicked the chose "Match Using Freebase" (the only other option is Cine21). They STILL show US ratings after that...

Is there a UK rating in TheMovieDB ? :slight_smile:





ps: i think this topic might become a full exhaustive debugging manual :wink: