Skip to content

v0.2.0

Choose a tag to compare

@kevinkwee kevinkwee released this 15 Nov 03:56
· 21 commits to main since this release
a579b1a

Added

  • --videos to download video modules. Behance video is resolved through Adobe's Creative Cloud player to a direct MP4 rendition, and the best rendition is chosen unless a cap is set.
  • --video-height PX to cap the rendition height, falling back to the smallest available.
  • The video extra, pip install "behance-dl[video]", which adds yt-dlp so YouTube, Vimeo, and Dailymotion embeds download too. Without it those modules stay links and the run reports them as failed.
  • A redirect policy that refuses any redirect leaving https or changing host, so both URL allowlists still describe where a request can end up.

Changed

  • BehanceClient.download takes a media kind. An image download now rejects video bytes, and a video download rejects image bytes.
  • --force re-fetches videos as well as images.
  • A video is named from its validated asset id and height, so a re-run can match it on disk without trusting an expiring signed URL.

Fixed

  • When the derived rendition answers 404, the fallback file is named after the rendition that actually answered instead of the one that did not.
  • A playlist embed reports success once its single item is saved.