Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically append file extension #2

Closed
skyreflectedinmirrors opened this issue Jun 21, 2014 · 1 comment
Closed

Automatically append file extension #2

skyreflectedinmirrors opened this issue Jun 21, 2014 · 1 comment

Comments

@skyreflectedinmirrors
Copy link

Loop in get_metadata changed to:

if file_data['format'] == 'VBR MP3':
new_file = {
'title' : file_data['title'],
'download_filename' : file_data['name'],
'file_extension' : '.mp3',
}
try:
new_file['local_filename'] = "%s. %s%s" % (file_data['track'], file_data['title'], new_file['file_extension'])
except KeyError:
new_file['local_filename'] = file_data['title'] + new_file['file_extension']
new_metadata['files'].append(new_file)

@skyreflectedinmirrors
Copy link
Author

Apparently I'm an idiot. For some reason they were labeled as "FILE" instead of mp3 for a show I downloaded, so I assumed the extension wasn't coming down.

Looking at the files shows this definitely results in the .mp3.mp3 thing

Ignore this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants