def retrieve(self, info): if False: artist = 'Alicia Keys' album = 'As I Am' else: artist = info['artist'] album = info['album'] self.counter += 1 dirpath = '%s/%s - %s' % (self.musicdir, artist, album) files = [] for f in gettags(getfiles(dirpath)): if f: # tag = stringtags(f.usertags) # tag['__image'] = image files.append(f.usertags) return info, None
def retrieve(self, info): if False: artist = 'Alicia Keys' album = 'As I Am' else: artist = info['artist'] album = info['album'] self.counter += 1 dirpath = u'%s/%s - %s' % (self.musicdir, artist, album) files = [] for f in gettags(getfiles(dirpath)): if f: #tag = stringtags(f.usertags) #tag['__image'] = image files.append(f.usertags) return info, None
dir_size = int(re.search('\d+', dir_info.stdout.readlines()[0]).group()) control = control % (puddlestuff.version_string, dir_size) f = open('deb_build/control/control', 'w') f.write(control) f.close() call(['tar', 'cz', '-C', 'deb_build/control', '-f', 'deb_build/control.tar.gz', '.']) call(['chmod', '755', '-R', 'deb_build/data']) for f in getfiles('deb_build/data', True): print f call(['chmod', '744', f]) call(['chmod', '755', 'deb_build/data/usr/bin/puddletag']) call(['tar', 'cz', '-C', 'deb_build/data', '-f', 'deb_build/data.tar.gz', '.']) f = open('deb_build/debian-binary', 'w') f.write('2.0\n') f.close() deb_name = 'puddletag_' + puddlestuff.version_string + '-1_all.deb' call(['ar', 'rcu', 'dist/' + deb_name, 'deb_build/debian-binary', 'deb_build/control.tar.gz', 'deb_build/data.tar.gz'])