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

Video download #34

Merged
merged 5 commits into from
Aug 21, 2016
Merged

Video download #34

merged 5 commits into from
Aug 21, 2016

Conversation

saemy
Copy link
Contributor

@saemy saemy commented Aug 20, 2016

Photos that list the value "Video Original" as an available size are threated as videos. The download url of them has to be extracted from one the video sizes (e.g. "Video Original", "HD MP4", "Mobile MP4", "Site MP4", etc.). Otherwise, the video's thumbnail is fetched. Moreover, the file extension is adjusted to "mp4".

When image overrides are turned off, the check of an existing file should be
done before getting the available image sizes from Flickr. This avoids
unnecessary Flickr accesses and speeds up the process.
If an error occurs during downloading an image from a set, a warning instead of
an error is emitted. This allows the rest of the set being downloaded.
Photos that list the value "Video Original" as an available size are threated as
videos. The download url of them has to be extracted from one the video sizes
(e.g. "Video Original", "HD MP4", "Mobile MP4", "Site MP4", etc.). Otherwise,
the video's thumbnail is fetched. Moreover, the file extension is adjusted to
"mp4".
@coveralls
Copy link

coveralls commented Aug 20, 2016

Coverage Status

Coverage increased (+0.4%) to 93.194% when pulling cec265a on saemy:video-download into 1f8e969 on lmammino:master.

@lmammino
Copy link
Owner

Great addition :)

Thanks @saemy

@lmammino lmammino merged commit 95fe9c8 into lmammino:master Aug 21, 2016
@saemy saemy deleted the video-download branch August 21, 2016 05:08
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

Successfully merging this pull request may close these issues.

3 participants