commit
2ed0bde90a
5 changed files with 17 additions and 7 deletions
6
Pipfile.lock
generated
6
Pipfile.lock
generated
|
|
@ -1299,12 +1299,12 @@
|
||||||
},
|
},
|
||||||
"yt-dlp": {
|
"yt-dlp": {
|
||||||
"hashes": [
|
"hashes": [
|
||||||
"sha256:30cb078f803b539b2a66521c5ec86d328c07f74aeca9440069e58619c299cf15",
|
"sha256:1bfe0e660d1a70a09e27b2d58f92e30b1e2e362cc487829f2f824346ae49fb91",
|
||||||
"sha256:bef4105af0f25c13c1a505daf46142af45d9312dc2c3553651db083e6860e641"
|
"sha256:8ecb3aa218a3bebe431119f513a8972b9b9d992edf67168c00ab92329a03baec"
|
||||||
],
|
],
|
||||||
"index": "pypi",
|
"index": "pypi",
|
||||||
"markers": "python_version >= '3.9'",
|
"markers": "python_version >= '3.9'",
|
||||||
"version": "==2025.3.27"
|
"version": "==2025.3.31"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"develop": {}
|
"develop": {}
|
||||||
|
|
|
||||||
|
|
@ -384,8 +384,10 @@ class Notification(metaclass=Singleton):
|
||||||
|
|
||||||
return respData
|
return respData
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
LOG.exception(e)
|
err_msg = str(e)
|
||||||
LOG.error(f"Error sending Notification event '{ev.event}: {ev.id}' to '{target.name}'. '{e!s}'.")
|
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)}
|
return {"url": target.request.url, "status": 500, "text": str(ev)}
|
||||||
|
|
||||||
def emit(self, e: Event, _, **kwargs): # noqa: ARG002
|
def emit(self, e: Event, _, **kwargs): # noqa: ARG002
|
||||||
|
|
|
||||||
|
|
@ -643,6 +643,14 @@ watch(video_item, v => {
|
||||||
document.querySelector('body').setAttribute("style", `opacity: ${v ? 1 : bg_opacity.value}`)
|
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 = () => {
|
const downloadSelected = () => {
|
||||||
if (selectedElms.value.length < 1) {
|
if (selectedElms.value.length < 1) {
|
||||||
toast.error('No items selected.')
|
toast.error('No items selected.')
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,7 @@
|
||||||
<div class="field is-grouped is-grouped-centered">
|
<div class="field is-grouped is-grouped-centered">
|
||||||
<div class="control" v-if="isEmbedable(item.url)">
|
<div class="control" v-if="isEmbedable(item.url)">
|
||||||
<button @click="() => embed_url = getEmbedable(item.url)" v-tooltip="'Play video'"
|
<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>
|
<span class="icon"><i class="fa-solid fa-play" /></span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ const sources = [
|
||||||
{
|
{
|
||||||
name: 'youtube',
|
name: 'youtube',
|
||||||
url: 'https://www.youtube-nocookie.com/embed/',
|
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",
|
name: "instagram",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue