Exemple #1
0
 def download_artwork(self):
     if Sysaccess.isfile(self.artwork_path()):
         return self.artwork_path()
     url = self['artwork_url']
     if not url:
         return False
     url = re.sub("large","crop",url)
     success = Sysaccess.download(url,self.artwork_path())
     if not success:
         return False
     return self.artwork_path()
Exemple #2
0
    def download(self):
        if Sysaccess.isfile(self.path()):
            return True

        print "Downloading " + self.ascii('title')
        url = self.get_download_url()
        if not url:
            return False
        success = Sysaccess.download(url,self.path())
        if not success:
            return False
        Sysaccess.clean_tags(self.path())