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

How to get the file name with ext #12384

Closed
deangelo200 opened this issue Mar 7, 2017 · 6 comments
Closed

How to get the file name with ext #12384

deangelo200 opened this issue Mar 7, 2017 · 6 comments

Comments

@deangelo200
Copy link

@deangelo200 deangelo200 commented Mar 7, 2017

Hey does anyone know how to get the file name not title but the name of the file for example "Mymusic.mp3". I want to get the file name using python code.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 7, 2017

_filename key of info dict.

@dstftw dstftw closed this Mar 7, 2017
@deangelo200
Copy link
Author

@deangelo200 deangelo200 commented Mar 7, 2017

file_name = info_dict.get('_filename', None)

not working...

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Mar 7, 2017

@deangelo200
Copy link
Author

@deangelo200 deangelo200 commented Mar 7, 2017

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Mar 7, 2017

Most likely you didn't handle encodings correctly. By the way images are not shown if you reply this thread with emails.

@deangelo200
Copy link
Author

@deangelo200 deangelo200 commented Mar 7, 2017

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

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.