Joox plugin update: Now with icons

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Nuka1195 Online
Skilled Python Coder
Posts: 3,917
Joined: Dec 2004
Reputation: 17
Post: #21
a quick look at the code:

Code:
if (icon==None):
                   liz=xbmcgui.ListItem(name)
            else:
                   liz=xbmcgui.ListItem(name,name,icon,icon)

Why not give it a default icon if None "DefaultVideoBig.png" is universal between skins.

Again in Library mode, the titles all say ".divx". I see your setInfo() for title, so I'll investigate further.

10 seconds after I tested Library, I went test Files view and there server is down. So I can't tell you how videos play or if the titles are right (for me) in files view.

I can tell you that in the scripts debug window, the title appears to be ok.

e.g.
http://video.stage6.com/1343216/.divx
Went the Day Well? (1942)

Edit: Alright, I think I have it now. Smile It's not the setInfo() you need. It's the sortMethod().

So add atleast:
Code:
xbmcplugin.addSortMethod( handle=int( sys.argv[ 1 ] ), sortMethod=xbmcplugin.SORT_METHOD_LABEL )

And I can confirm doing so, the title appear properly in Library Mode. I like that you went with the url for the thumbnail, downloads in the background properly.

The one movie I tried played fine. No time to test others. So just add the above line in run() and you should be good. Unless you want to take my advice and parse the year out of the title, so you can sort by year. Makes finding the newer movies easier.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
(This post was last modified: 2007-10-12 16:11 by Nuka1195.)
find quote
Unbehagen Offline
Skilled Python Coder
Posts: 342
Joined: Jul 2007
Reputation: 3
Location: Bremen, Germany
Post: #22
Thanks for your help Nuka! Your suggestions always help a lot!
Here is an updated version:
http://www.ftp2share.com/file/644aa99f-3...s.zip.html
http://rapidshare.com/files/62056524/Joo...s.zip.html
http://depositfiles.com/files/2029907
http://www.filefactory.com/file/42a6fd/
find quote
C-Quel Offline
Retired Team-XBMC Member
Posts: 1,378
Joined: Aug 2004
Reputation: 0
Post: #23
Ive not found one that works with urls and icons to date... but the XOT scripts work flawless when tweaked so not to fussed Wink

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.


[Image: badge.gif]

If scraper related please always grab the latest XML relevant to the content you are trying to grab info for from this link https://xbmc.svn.sourceforge.net/svnroot...m/scrapers

System Specs:

A Computer with loads of shiny things that make a noise and bring life to my tv, and xbmc ofc :)

iNerd Store

iNerd Forum
find quote
Livin Offline
Posting Freak
Posts: 3,432
Joined: May 2004
Reputation: 17
Location: above ground
Post: #24
This does not work at all for me... errors on load. Anyone have this working?

I'm not an expert but I play one at work.
find quote
Booradley Offline
Junior Member
Posts: 15
Joined: Nov 2007
Reputation: 0
Post: #25
Mine works, but shows nothing but .divx for everything hmmm
find quote
Livin Offline
Posting Freak
Posts: 3,432
Joined: May 2004
Reputation: 17
Location: above ground
Post: #26
How did you get it to work?

I tried both as a Script and also tried adding it as a Plugin using "Add Source" under the root of 'Videos'.

Script just throws and error
Plugin does not see the default.py... it just navigates the folder.

side note: adding plugins needs simplification... should be way easier... e.g. autoscan then show you the choices when you go to add a source.

I'm not an expert but I play one at work.
find quote
Unbehagen Offline
Skilled Python Coder
Posts: 342
Joined: Jul 2007
Reputation: 3
Location: Bremen, Germany
Post: #27
Joox plugin has been fixed. It's beta and now supports downloading and selecting the player core to be used. Grab it here:
http://theendofthelongestline.de/xbox/do...tails.html

From the release notes:
This is a beta version of the JooX.net plugin. I fixed the html parsing for the slightly changed joox layout and added the possibility to download and to choose the player core that is used to play the files. To download files or choose the player core, you need the VERY LATEST T3CH version of XBMC. Also, you need to choose Project Mayhem III theme, as the settings dialog is not yet supported by other themes because the feature is very new. Select the plugin in the video browser, press white button on the pad and select "Plugin Settings". A dialog should pop up that lets you choose everything. The plugin may also work with earlier builds of XBMC, but the plugin settings won't show in those.
find quote
Unbehagen Offline
Skilled Python Coder
Posts: 342
Joined: Jul 2007
Reputation: 3
Location: Bremen, Germany
Post: #28
I'd like to get some user responses for this - does it work for you? If so, I will add it to the plugin package. If not, please describe the problems you're having. I didn't have a lot of time to test this myself, that's why I need you !
find quote
Nuka1195 Online
Skilled Python Coder
Posts: 3,917
Joined: Dec 2004
Reputation: 17
Post: #29
hi,

i haven't run it yet, but a couple of points.

While you can use string id's 60000, XBMC reserves id's 30000-30999 for plugins, you might want to stick to that range.

You can also localize the enum values, by using "lvalues" instead of "values".

Will test in a little while

Edit:
And the default for enums should be the position now, not the actual entry.

Edit2: Works pretty good, good job. I like the sort by year Smile One option if possible would be to paginate the results. like 25 per page. If possible. Otherwise good job.

I also do not get any results from unconfirmed? can the confirmed/unconfirmed categories be skipped?

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
(This post was last modified: 2007-11-18 22:03 by Nuka1195.)
find quote
C-Quel Offline
Retired Team-XBMC Member
Posts: 1,378
Joined: Aug 2004
Reputation: 0
Post: #30
Cancelling a download in the script before completion meant no half finished files in your folder, with plugins if your lucky enough to be able to get it to cancel can the file be removed?

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.


[Image: badge.gif]

If scraper related please always grab the latest XML relevant to the content you are trying to grab info for from this link https://xbmc.svn.sourceforge.net/svnroot...m/scrapers

System Specs:

A Computer with loads of shiny things that make a noise and bring life to my tv, and xbmc ofc :)

iNerd Store

iNerd Forum
find quote