New PlugIn: Arte+7 german/french TV-Channel
#1
Hello,

today I spent my time to set up a video plugin for http://www.arte.tv/plus7

ARTE is german/french TV Channel - The Site offers broadcasts of the past seven days.

The script is very Alpha, but for me it works. But I have a problem how to set up thumbnails correctly.. Sad
Help/Suggestions wanted.... Huh

You can get the plug-in here: LINK


Question: Is there a way to get a debug log of the plugins, where i could debug the thumbs issue?

Thanks, lolol
Reply
#2
is your problem grabbing thumbs from the site or displaying them in XBMC?
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#3
hello nuka,

my problem is downloading them from their site and check if the file already exists...

in windows python console it works like i want... I think it's a problem with my pathes...

Here is the Download Code


Code:
def downloadFile(self, URL, localfile):
            try:
                loc = urllib.URLopener()
                loc.retrieve(URL, localfile)
            except IOError:
                traceback.print_exc(file=sys.stdout)
                return -1
            return 0

and i give him this parameters:

Quote:URL: http://plus7.arte.tv/i18n/content/tv/05_...geData.jpg

localfile: Q:\plugins\video\artePLUS7\cache\1t.jpg
Reply
#4
maybe the problem is the long url?


greets lolol
Reply
#5
try setting the thumb to the actual url and letting XBMC handle downloading them. The only issue I have with this is it won't work in XBMC_PC. But it works great on the xbox.


I've used the following before i realized setting it to the url works better.
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
#6
thank you for your fast anwser!

i will try it now...


cu lolol
Reply
#7
hello,

i've tested it... and it works perfectly.

THANK You

cu lolol
Reply
#8
New version with some small improvements uploaded!

ARTE Plus7 video plugin for XBMC
Place in Q:\plugins\video\artePLUS7
Version number: 0.3 BETA

Thanks go out to

- Nuka for his help, with thumbnailing
- Author of seeqpod Plugin, I borrowed his code as a base

Recent Changes:

2007-10-15: fixed: thumbnails issue
2007-10-15: added: language var, default is german
2007-10-15: fixed: title now has a date/time indicator to sort entrys

ToDo:
- speedup parsing
- add other fomarts/qualitys, for now only WMV HQ (DSL2000+) is supported
- read current xbmc language setting and use this for items

Screenshot:
Image

Download:
http://www.mediafire.com/?eg9nn4ym2i9
Reply

Logout Mark Read Team Forum Stats Members Help
New PlugIn: Arte+7 german/french TV-Channel0