Merge pull request #245 from arabcoders/dev

Update yt-dlp to 2025.3.31
This commit is contained in:
Abdulmohsen 2025-04-01 19:06:23 +03:00 committed by GitHub
commit 2ed0bde90a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 17 additions and 7 deletions

6
Pipfile.lock generated
View file

@ -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": {}

View file

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

View file

@ -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.')

View file

@ -92,7 +92,7 @@
<div class="field is-grouped is-grouped-centered">
<div class="control" v-if="isEmbedable(item.url)">
<button @click="() => embed_url = getEmbedable(item.url)" v-tooltip="'Play video'"
class="button is-danger is-light is-small">
class="button is-danger is-small">
<span class="icon"><i class="fa-solid fa-play" /></span>
</button>
</div>

View file

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