track_title = metadata.get('title')[0]
monthdir = datetime.datetime.today().strftime('%Y-%m')
- filepath = '%s/%s - %s - %s%s' % (monthdir,
+ filepath = u'%s/%s - %s - %s%s' % (monthdir,
datetime.datetime.today().strftime('%y%m%d'),
artist_name[:50].replace('/', ' ').strip(),
track_title[:80].replace('/', ' ').strip(),
- os.path.splitext(f.name)[-1])
+ os.path.splitext(f.name)[-1]).encode('utf-8')
default_storage.save(os.path.join('nonstop', 'tracks', filepath), content=f)