Script error

Hey mates i’m currently testing a friends Script for XBMC on Plex.

First of all, what are the Major differences, that could not let a script made for XBMC work properly on Plex? What do i have to adjust?

If i’m putting the Script into Script dir and then trying to run it i get following error (check added png)



The first line of these here is producing the error:


xbmc.Language.__init__(os.getcwd(), xbmc.getLanguage())<br />
print 'path to strings.xml : ' + os.getcwd() +  '/resources/language/' +  xbmc.getLanguage()<br />
print 'path to settings : ' + os.getcwd() +  '/config/settings'<br />
print 'path to ssh-scripts : ' + os.getcwd() +  '/ssh/'



Anyone some step by step solution? Or just any tips?

Thank you!

The major differences are that the newer features of XBMC’s scripting code aren’t supported (like xbmc.Language). There’s also the fact that we’re planning on removing the legacy Python code soon, now that Plex’s plug-in system has become more mature and proven itself to be a capable replacement :slight_smile:


fine. and till the release of the new plex, is there any workaround for the GetLanguage and the __lang__, since this scripts supports diff. language, and each times it wants to go to the lang directory where the string.xml is located it produces an error. so any workaround?

greetings

Well, you can hardcode a language.


What do you think is the easiest way doing this?

Good question, but we have some kickass developers on this forum who can help you I guess.


Nice. - I think the interest for this script i'm trying to fix for plex should be pretty high.

<br />
    * Create a exact iso-copy of a dvd (This is called a rip).<br />
    * The css system of a ripped dvd remains intact by ripping to iso.<br />
    * Transcode a dvd to other formats (mpeg2 / h264 / divx /iso)<br />
    * Ripping over the network (client / server)<br />
    * Stream the content of a dvd to a network (planed for release 0.6X)<br />
    * Create backups of your own dvd to a hd or a dvd.<br />
    * Rip a blue-ray movie to disk (feature that will come ..... someday )<br />
    * As soon I own a notebook with a blue-ray drive I do work on this may most needed and wished feature.... <br />



Any Dev here now?

You don't have to deal with the language directly. Call L('some string') to get the string localized in the user's language.
Settings are handled through the Prefs module. No need to handle the files directly.
The last one should be done using the Helper module.

If you want to post the script I'll have a look at it. It's hard to re-write it 3 lines at a time.

@spaceman: koredom is talking about an XBMC script, not a media server plug-in.



@koredom: Sorry, I don’t have any advice to give on how to get it working - I’m not that familiar with XBMC’s latest scripting capabilities. As I said above, the built-in scripting is being removed in the 0.9 series so we can focus on our own plug-in system, so any solution you find will be a short lived one.

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