ytptube: added click action and YTP_MAX_WORKERS set to 4

This commit is contained in:
Tigor Hutasuhut 2024-09-30 22:17:44 +07:00
parent 85da8ed4df
commit 3324551200

View file

@ -20,7 +20,7 @@ let
name = "NTFY Webhook Added"; name = "NTFY Webhook Added";
on = [ "added" ]; on = [ "added" ];
request = { request = {
url = "https://ntfy.tigor.web.id/ytptube?tpl=1&t=%7B%7B.title%7D%7D&m=%5B%7B%7B%20.folder%20%7D%7D%5D%20Download%20added."; url = "https://ntfy.tigor.web.id/ytptube?click=https%3A%2F%2F${domain}&tpl=1&t=%7B%7B.title%7D%7D&m=%5B%7B%7B%20.folder%20%7D%7D%5D%20Download%20added.";
type = "json"; type = "json";
method = "POST"; method = "POST";
headers = { headers = {
@ -33,7 +33,7 @@ let
name = "NTFY Webhook Completed"; name = "NTFY Webhook Completed";
on = [ "completed" ]; on = [ "completed" ];
request = { request = {
url = "https://ntfy.tigor.web.id/ytptube?tpl=1&t=%7B%7B.title%7D%7D&m=%5B%7B%7B%20.folder%20%7D%7D%5D%20Download%20%7B%7B%20.status%20%7D%7D"; url = "https://ntfy.tigor.web.id/ytptube?click=https%3A%2F%2F${domain}&tpl=1&t=%7B%7B.title%7D%7D&m=%5B%7B%7B%20.folder%20%7D%7D%5D%20Download%20%7B%7B%20.status%20%7D%7D";
type = "json"; type = "json";
method = "POST"; method = "POST";
headers = { headers = {
@ -47,7 +47,7 @@ let
name = "NTFY Webhook Error"; name = "NTFY Webhook Error";
on = [ "error" ]; on = [ "error" ];
request = { request = {
url = "https://ntfy.tigor.web.id/ytptube?tpl=1&t=%7B%7B.title%7D%7D&m=%5B%7B%7B%20.folder%20%7D%7D%5D%20Download%20%7B%7B%20.status%20%7D%7D"; url = "https://ntfy.tigor.web.id/ytptube?click=https%3A%2F%2F${domain}&tpl=1&t=%7B%7B.title%7D%7D&m=%5B%7B%7B%20.folder%20%7D%7D%5D%20Download%20%7B%7B%20.status%20%7D%7D";
type = "json"; type = "json";
method = "POST"; method = "POST";
headers = { headers = {
@ -113,7 +113,7 @@ in
writeautomaticsub = false; writeautomaticsub = false;
merge_output_format = "mkv"; merge_output_format = "mkv";
live_from_start = true; live_from_start = true;
format_sort = [ "codec:abc:m4a" ]; format_sort = [ "codec:avc:m4a" ];
subtitleslangs = [ "en" ]; subtitleslangs = [ "en" ];
postprocessors = [ postprocessors = [
# this processor convert the downloaded thumbnail to jpg. # this processor convert the downloaded thumbnail to jpg.
@ -149,6 +149,7 @@ in
user = "${uid}:${gid}"; user = "${uid}:${gid}";
environment = { environment = {
TZ = "Asia/Jakarta"; TZ = "Asia/Jakarta";
YTP_MAX_WORKERS = "4";
}; };
volumes = [ volumes = [
"${volume}:/downloads" "${volume}:/downloads"