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

handle media types #96

Open
peachlooter opened this issue Aug 9, 2018 · 1 comment
Open

handle media types #96

peachlooter opened this issue Aug 9, 2018 · 1 comment

Comments

@peachlooter
Copy link

I tried to catch out the .gif media in: function _handle_medium_url , but I can't bring it to work.

Any tips?

@dixudx
Copy link
Owner

dixudx commented Aug 12, 2018

@peachlooter You can try to grep the file name, such as .gif

def _download(self, medium_type, medium_url, target_folder):
medium_name = medium_url.split("/")[-1].split("?")[0]

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