How do I make my plugin download a file?
#1
So far I have gotten to the point where I can scrape the content from a site, however, I cannot figure out how to download said files after it has been listed. Currently I have it set up so that it creates links, clicking on the link will run this:
Code:
def DOWNLOAD(url,name):
       urllib.urlretrieve("http://www.xbmczone.com/images/logo.gif", 'Q:\\test.gif')
which I am currently using to test whether or not it will even download anything.
I'm sure this is an easy fix but I have tried everything...anyone able to help?
Reply
#2
maybe you can post a debug log.
Reply
#3
Nvm, I figured it out...sorta
Reply
#4
Take a look at the Subtitles add-on: it does exactly that - find and download a file. The best example - is the working source code.
Reply
#5
I actually referenced the svn downloader code, but yeah, same idea
Reply

Logout Mark Read Team Forum Stats Members Help
How do I make my plugin download a file?0