Plugin python directory services for XBMC (now in SVN)

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #16
Quote:
Oh, and is it python or XBMC that controls what happens when a list item is selected?

Both, the plugin feeds XBMC urls that either link to an outside source or back to your plugin with diff args.

e.g. the first time AMT is selected it returns a list of categories with a url set back to the script and a genre arg in the url. when you select that it returns a list of trailer urls. This list XBMC just plays the urls.

That sounds confusing, it works quite well.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
Nick8888 Offline
Fan
Posts: 716
Joined: Jan 2007
Reputation: 0
Post: #17
What is the current state of this? I got the new build earlier today but haven't had a chance to install it. Is the AMT script the only one which works with this ATM? Are any in progress? I'm really hoping bomb bloke perseveres with his n64 one and I can also see potential for an xbmcscripts one.

Great work everyone involved with this.
find quote
Unbehagen Offline
Skilled Python Coder
Posts: 347
Joined: Jul 2007
Reputation: 4
Location: Bremen, Germany
Post: #18
Here is a fixed version of the TVLinks plugin:
http://max-server.informatik.uni-bremen....VLinks.zip.
Could anyone try it? I have no box here, just the Windows environment (XBMC_PC).
I used the following two dirty hacks to solve the display problems:
Code:
def addLink(self,name,url):
        listitem=xbmcgui.ListItem( name )
        if len(name)<20:
                name=name+"                           "
        liz=xbmcgui.ListItem(name)
        ok=xbmcplugin.addDirectoryItem(handle=self.handle,url=url,listitem=liz)

    
    def addDir(self,name,url,code,letter=" "):

        u=sys.argv[0]+"?code="+str(code)+"&url="+urllib.quote(url)+"&letter="+letter+"/"
        if len(name)<20:
                name=name+"                           "
        liz=xbmcgui.ListItem(name)
        xbmcplugin.addDirectoryItem(handle=self.handle,url=u,listitem=liz,isFolder=​True)
There might be a bug within the plugin code: If a URL is very long and the label is very short, it overwrites the displayed label with parts of the URL. If you want to try it, remove the name=name+" " from the script and see what it displays. JMarshall, we had this problem earlier, and it worked before the listitem stuff has been added.
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #19
works fine here commenting out the name=name+" " hack.

The only thing I notice in this is they are no longer subcategoried by letter/number.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
Unbehagen Offline
Skilled Python Coder
Posts: 347
Joined: Jul 2007
Reputation: 4
Location: Bremen, Germany
Post: #20
Nuka1195 Wrote:works fine here commenting out the name=name+" " hack.
This is strange... Doesn't it show somethng like 3&letter=Z when there should be Z as a label? Did anyone change anything in this code since yesterday?
[CODE]
The only thing I notice in this is they are no longer subcategoried by letter/number.[/quote]
Yes, it seems to be fast enough to display all results. I prefer it this way,so I can see all movies and series and decide which one I want to see. But you can change it back. Just check out the "old" folder in the xbmcscripts google svn repo and switch something like 5 revisions back. There should be a tvlinks zip file. Grab that version to have sorting.
find quote
Unbehagen Offline
Skilled Python Coder
Posts: 347
Joined: Jul 2007
Reputation: 4
Location: Bremen, Germany
Post: #21
Here is a plugin version of the JooX script. You can download it here:
http://max-server.informatik.uni-bremen....m/JooX.rar
find quote
newuser Offline
Junior Member
Posts: 17
Joined: Jun 2007
Reputation: 0
Post: #22
Uh, I tried this and I now have nothing in videos after adding tvlinks.
find quote
Unbehagen Offline
Skilled Python Coder
Posts: 347
Joined: Jul 2007
Reputation: 4
Location: Bremen, Germany
Post: #23
newuser Wrote:Uh, I tried this and I now have nothing in videos after adding tvlinks.

What a pity. We might actually even be able to help if you'd supply us with some details. You might want to start a new thread requesting help outside the dev forum.
find quote
tangomar Offline
Junior Member
Posts: 17
Joined: Jun 2007
Reputation: 0
Post: #24
I tried both tvlinks and joox.

Joox: it works (sometimes it is slow when filling the directory content)
Tvlinks: very slow getting the directory content. Sometimes getting timeout error

Overall they both seems to work ok.
find quote
radio Offline
Junior Member
Posts: 36
Joined: Jul 2007
Reputation: -10
Post: #25
Probably not the right place for this? Maybe belongs in the TV-Links script thread?

The plugin doesn't seem to cache anything before starting playing.
i.e. the 'caching from vids.wherever.com/thisvid' window doesn't pop up like it does in the script version. I've had a few videos where the video runs faster than the connection can pull down the data, and then it hangs, - without the 'buffering' text you would get normally.
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #26
try play using.. from the context menu and select mplayer

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
radio Offline
Junior Member
Posts: 36
Joined: Jul 2007
Reputation: -10
Post: #27
Nuka1195 Wrote:try play using.. from the context menu and select mplayer

Cool, that does the job, but is there a way to make mplayer the default player for whatever these videos are (.flv probably?) (this might be a setting somewhere, but I can't find any info in the manual).
As the script's changed to just return the video's URL to XBMC, I can't change the scripts' call to player.play to force mplayer there.
find quote
pajretX Online
Member
Posts: 87
Joined: Jun 2007
Reputation: 0
Location: Manchester / UK
Post: #28
Great job guys! Everything works fine for me.. except two things Wink
1. Joox plugin - When I try to get to Music tab, it freezes my xbox totally. All others tabs work just fine.
2. ATM - is there any way to update trailers list? At the moment I need to run ATM-script and update the list from there - which is fine with me.. but you know.. small thing Smile

Thank you once again for your hard work!

--
Damian 'pX' Krawczyk
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #29
About AMT, no there is no way.

I haven't decided how elaborate to make the plugin. Adding the update would require alot more code, so probably won't happen.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
dafunks Offline
Member
Posts: 73
Joined: Feb 2007
Reputation: 0
Question   
Post: #30
Is there a dummies guide to installing these Plugins.

I am really confused as to installing these.

I have read the first post but it seems more for the devopment then a how to.

Thanks
find quote
Post Reply