![]() |
|
|||||||
| Plugin/Script (Python) Help and Support Python requests/suggestions, support, bugs, and everything python goes in here! Please, add platform prefix to threads that are not platform-independent!: Thread prefixes; "[LINUX]", "[LIVE]", "[MAC]", "[WINDOWS]", and "[XBOX]" |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#31 |
|
Grumpy Bastard Developer
Join Date: Nov 2003
Posts: 7,715
![]() |
ty
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
|
|
|
|
|
#32 |
|
Member
Join Date: May 2004
Posts: 47
![]() |
Thnx for the updates
|
|
|
|
|
|
#33 |
|
Junior Member
Join Date: Nov 2009
Posts: 4
![]() |
I'm running the latest XBMC from svn on Linux, and I'm unable to get anything decent out of the plugins.
First off there is a problem with both VideoDevil and VideoMonkey assuming that the current directory is ~/.xbmc/plugins/video/VideoMonkey (or VideoDevil). This is basically never true, so the plugins normally fail to even start. Starting xbmc in the correct directory makes that plugin work, but I can of course not be in two directories at once so only one plugin is usable. Even when I do that hack, I don't get anything decent from the sources. Searching results in things like this: 21:58:32 T:139678154053824 M:1868312576 ERROR: GetDirectory - Error getting plugin://video/VideoDevil/?url=title: Search &type:search&icon:/home/xbmc/.xbmc/plugins/video/VideoDevil/resources/images/search.png&genre:YouPorn&director:VideoDevil&cfg:y ouporn.com.cfg&url:http%3A%2F%2Fwww.youporn.com%2F search%3Fquery%3D%25s Help
|
|
|
|
|
|
#34 |
|
Junior Member
Join Date: Nov 2009
Posts: 4
![]() |
Poking around in the code, the first problem is fairly obvious:
rootDir = os.getcwd() Not good. I'm not sure what the proper way to do this is, but sys.argv[0] contains the "xbmc path" to the script, i.e. "plugin://video/VideoDevil/". Doing xbmc.translatePath() on that gives "special://home/plugins/video/VideoDevil/" and doing it again gives "/home/xbmc/.xbmc/plugins/video/VideoDevil/" which is finally something that can be used. No idea about the second problem though... |
|
|
|
|
|
#35 |
|
Junior Member
Join Date: Nov 2009
Posts: 4
![]() |
Second problem was me being clumsy. I had the wrong permissions on the directory so the plugin couldn't write anything:
![]() So adding these lines at the beginning of the scripts solves it for me: rootDir = xbmc.translatePath(sys.argv[0]) rootDir = xbmc.translatePath(rootDir) Hopefully that can lead you to a more proper solution. |
|
|
|
|
|
#36 | |
|
Skilled Python Coder
Join Date: Nov 2005
Location: Germany
Posts: 80
![]() |
Quote:
greets |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|