diff --git a/Pipfile.lock b/Pipfile.lock index 1b7b4b2e..ff81629d 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1299,12 +1299,12 @@ }, "yt-dlp": { "hashes": [ - "sha256:30cb078f803b539b2a66521c5ec86d328c07f74aeca9440069e58619c299cf15", - "sha256:bef4105af0f25c13c1a505daf46142af45d9312dc2c3553651db083e6860e641" + "sha256:1bfe0e660d1a70a09e27b2d58f92e30b1e2e362cc487829f2f824346ae49fb91", + "sha256:8ecb3aa218a3bebe431119f513a8972b9b9d992edf67168c00ab92329a03baec" ], "index": "pypi", "markers": "python_version >= '3.9'", - "version": "==2025.3.27" + "version": "==2025.3.31" } }, "develop": {} diff --git a/app/library/Notifications.py b/app/library/Notifications.py index 80230ab8..d3486405 100644 --- a/app/library/Notifications.py +++ b/app/library/Notifications.py @@ -384,8 +384,10 @@ class Notification(metaclass=Singleton): return respData except Exception as e: - LOG.exception(e) - LOG.error(f"Error sending Notification event '{ev.event}: {ev.id}' to '{target.name}'. '{e!s}'.") + err_msg = str(e) + if not err_msg: + err_msg = type(e).__name__ + LOG.error(f"Error sending Notification event '{ev.event}: {ev.id}' to '{target.name}'. '{err_msg!s}'.") return {"url": target.request.url, "status": 500, "text": str(ev)} def emit(self, e: Event, _, **kwargs): # noqa: ARG002 diff --git a/ui/components/History.vue b/ui/components/History.vue index e14b655b..d852e64b 100644 --- a/ui/components/History.vue +++ b/ui/components/History.vue @@ -643,6 +643,14 @@ watch(video_item, v => { document.querySelector('body').setAttribute("style", `opacity: ${v ? 1 : bg_opacity.value}`) }) +watch(embed_url, v => { + if (!bg_enable.value) { + return + } + + document.querySelector('body').setAttribute("style", `opacity: ${v ? 1 : bg_opacity.value}`) +}) + const downloadSelected = () => { if (selectedElms.value.length < 1) { toast.error('No items selected.') diff --git a/ui/components/Queue.vue b/ui/components/Queue.vue index 3eabebe4..03f7cd1c 100644 --- a/ui/components/Queue.vue +++ b/ui/components/Queue.vue @@ -92,7 +92,7 @@
diff --git a/ui/utils/embedable.js b/ui/utils/embedable.js index be78437c..7ec45a5f 100644 --- a/ui/utils/embedable.js +++ b/ui/utils/embedable.js @@ -2,7 +2,7 @@ const sources = [ { name: 'youtube', url: 'https://www.youtube-nocookie.com/embed/', - regex: /(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=)|youtu\.be\/)([a-zA-Z0-9_-]{11})/, + regex: /(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:shorts\/|[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=)|youtu\.be\/)([a-zA-Z0-9_-]{11})/, }, { name: "instagram",