From f9db556a413155edadca8017df30f799a816f92b Mon Sep 17 00:00:00 2001 From: ThetaDev Date: Tue, 5 Jul 2022 21:04:56 +0200 Subject: [PATCH 1/2] enable cropping video thumbnails --- ucast/service/youtube.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ucast/service/youtube.py b/ucast/service/youtube.py index 3fb3b0f..0e5c524 100644 --- a/ucast/service/youtube.py +++ b/ucast/service/youtube.py @@ -11,7 +11,7 @@ import feedparser import requests from yt_dlp import YoutubeDL -from ucast.service import scrapetube, storage, util +from ucast.service import scrapetube, storage, util, videoutil CHANID_REGEX = re.compile(r"""[-_a-zA-Z\d]{24}""") @@ -115,8 +115,7 @@ def download_thumbnail(vinfo: VideoDetails, download_path: Path): logging.info(f"downloading thumbnail {url}...") try: - # util.download_image_file(url, download_path, videoutil.THUMBNAIL_SIZE) - util.download_image_file(url, download_path) + util.download_image_file(url, download_path, videoutil.THUMBNAIL_SIZE) return except requests.HTTPError: logging.warning(f"downloading thumbnail {url} failed") From 0d2efcd3e3f2167323117f5df3429b063759aec5 Mon Sep 17 00:00:00 2001 From: ThetaDev Date: Tue, 5 Jul 2022 21:05:23 +0200 Subject: [PATCH 2/2] =?UTF-8?q?Bump=20version:=200.4.3=20=E2=86=92=200.4.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .bumpversion.cfg | 2 +- pyproject.toml | 2 +- ucast/__init__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 6bfdcb8..e18cff3 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.4.3 +current_version = 0.4.4 commit = True tag = True diff --git a/pyproject.toml b/pyproject.toml index aaf8d74..388048b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "ucast" -version = "0.4.3" +version = "0.4.4" description = "YouTube to Podcast converter" authors = ["Theta-Dev "] packages = [ diff --git a/ucast/__init__.py b/ucast/__init__.py index e07686c..0c5af70 100644 --- a/ucast/__init__.py +++ b/ucast/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.4.3" +__version__ = "0.4.4" def template_context(request):