Localised URLs

I’m trying to support additional countries within my plugin by moving the specific URLs into a localised resource. For example, the UK version should use the api URL “http://openapi.lovefilm.com/oauth/request_token”. However, the German version should use “http://openapi.lovefilm.de/oauth/request_token”. I’ve got a en.json file which contains the UK version, and I’m guessing a need a German specific one for the appropriate URL. Should this just be called de.json? Also, how do you test this within Plex, can you change the current location to ensure it access the appropriate resource?



Thanks in advance

I’ve not sure it’ll help, but the South Park plugin supports multiple locations. Might have a look and see how it’s done there.

Thanks, I’ll take a look.



Cheers for all your help Dbl_A, you’ve been a star answering so many of my questions. I even finally managed to get my first plugin out (http://forums.plexapp.com/index.php/topic/23374-new-plug-in-lovefilm/) Just trying to finish off the outstanding issues :slight_smile:

Just glad I’m more of a help than a hindrance. :wink:



I had a look at your “plugin release” post, looks very nice, very thorough. Shame about the player though…

Hopefully, they’ll get their act together.

yes de.json should work just fine

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