Joox plugin update: Now with icons
#1
It takes a bit longer than the original ones, but displays the nice stage6 movie image for each video. Also displays a status bar so you know how long it will take. I didn't confirm this yet, but maybe deadlinks will not show a thumbnail which would be convenient to sort them out at first sight.

Grab it here:
http://rapidshare.com/files/60202116/Joo...hIcons.rar
Edit: or here, without Rapidshare
http://theendofthelongestline.de/xbox/do.../index.php
Have fun!
Reply
#2
Unbehagen Wrote:It takes a bit longer than the original ones, but displays the nice stage6 movie image for each video. Also displays a status bar so you know how long it will take. I didn't confirm this yet, but maybe deadlinks will not show a thumbnail which would be convenient to sort them out at first sight.

Grab it here:
http://rapidshare.com/files/60202116/Joo...hIcons.rar
Have fun!

Thanks, gonna put this on the box and see how it runs
Reply
#3
Unbehagen would you like a folder created in the SVN, you can drag and drop zip files, then you wouldn't have to use those crappy filehosting sites Smile

Another tip, so XBMC doesn't double cache the thumbnails, save them directly to the cache folder in "P:\\Thumbnails\\..,

heres an example:
Code:
BASE_CACHE_PATH = os.path.join( "P:\\", "Thumbnails", "Video" )

    def _get_thumbnail( self, thumbnail_url ):
        # make the proper cache filename and path so duplicate caching is unnecessary
        if ( not thumbnail_url.startswith( "http://" ) ): return thumbnail_url
        try:
            filename = xbmc.getCacheThumbName( thumbnail_url )
            filepath = xbmc.translatePath( os.path.join( self.BASE_CACHE_PATH, filename[ 0 ], filename ) )
            # if the cached thumbnail does not exist fetch the thumbnail
            if ( not os.path.isfile( filepath ) ):
                # fetch thumbnail and save to filepath
                info = urllib.urlretrieve( thumbnail_url, filepath )
                # cleanup any remaining urllib cache
                urllib.urlcleanup()
            return filepath
        except:
            # return empty string if retrieval failed
            print sys.exc_info()[ 1 ]
            return ""
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#4
Hey nuka, thanks for the tip!
Regarding rapidshare: I also have other servers I could put my stuff on. Rapidshare is just the fastest for me as I'm too lazy to scp the files to the server Wink Rapidshare also helps me to keep track of the hosted files and the download counts.
What do I set as the icon then, the URL?
Reply
#5
Also: the default.tbn/folder.jpg thingy doesn't seem to work for me, even in the latest T3CH. I found a recent SVN change comment regarding this. Do I have to do something special in the script to make this work?
Reply
#6
Hmm I tried your function and it seems that it does not download anything. I call the function with the image url and set the item's icon image to the url (not the return value of the function). When I browse folders, XBMC seems to fetch the image urls asynchronously - sometimes when I highlight an item, it takes a while until it changes from no icon to the item. When I browse a folder and instantly play a movie, I get a few messages about images being downloaded first in the mplayer message window. Did I get something wrong?
Reply
#7
the default.tbn/folder.jpg shopuld be fixed, just after the latest t3ch

make sure BASE_CACHE_PATH is put in the same class as _get_thumbnail() or if you made BASE_CACHE_PATH global remove the self.

Code:
class Main:
    # base paths
    BASE_CACHE_PATH = os.path.join( "P:\\", "Thumbnails", "Video" )
    def __init__( self ):

set the images icon and thumbnail to the return value

Code:
thumbnail = self._get_thumbnail( thumbnail_url )
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#8
Nuka1195 Wrote:set the images icon and thumbnail to the return value

Code:
thumbnail = self._get_thumbnail( thumbnail_url )

Ah, that's why. I thought the icon cache system would then "double-cache" the supplied argument. Example: it gets http://someimage, it cahces it to p:\Thumbnails\video\crypticmd5hash.tbn
I thought if I now supplied it with p:\Thumbnails\video\crypticmd5hash.tbn, it would cache p:\Thumbnails\video\crypticmd5hash.tbn to p:\Thumbnails\video\crypticmd5hashofcrypticmd5hashpath.tbn
Thanks for your help, nuka!
Reply
#9
Before posting bugs right now for the new plugin: Joox is down right now.
"We suffer massive server load right now, please check back in a couple of minutes."
Reply
#10
can you add an ok dialog, if a 400 or 404 or whatever error occurs returning results. Might be good for all plugins. then people like me won't bother you Smile
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#11
Nuka1195 Wrote:can you add an ok dialog, if a 400 or 404 or whatever error occurs returning results. Might be good for all plugins. then people like me won't bother you Smile

The thing is that it doesn't report a 404, it just displays that message.
Reply
#12
you may have to parse the return html source for the error then
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#13
Hi,

This script doesn't work for me. I get an "error running script " and list index out of range" message box.

The old Joox script still runs fine though.
Reply
#14
silps Wrote:Hi,

This script doesn't work for me. I get an "error running script " and list index out of range" message box.

The old Joox script still runs fine though.

Are you running it as a script or have you added it as a plugin in
the movie list in your main menu?
Reply
#15
Woops, I was running this one as a script. Will put into the plugins folder.

Thanks.
Reply

Logout Mark Read Team Forum Stats Members Help
Joox plugin update: Now with icons0