Compare commits

...

2 commits

Author SHA1 Message Date
0d2efcd3e3 Bump version: 0.4.3 → 0.4.4
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-05 21:05:23 +02:00
f9db556a41 enable cropping video thumbnails 2022-07-05 21:04:56 +02:00
4 changed files with 5 additions and 6 deletions

View file

@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.4.3
current_version = 0.4.4
commit = True
tag = True

View file

@ -1,6 +1,6 @@
[tool.poetry]
name = "ucast"
version = "0.4.3"
version = "0.4.4"
description = "YouTube to Podcast converter"
authors = ["Theta-Dev <t.testboy@gmail.com>"]
packages = [

View file

@ -1,4 +1,4 @@
__version__ = "0.4.3"
__version__ = "0.4.4"
def template_context(request):

View file

@ -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")