Minor improvements

This commit is contained in:
Dmitry Zakharchenko 2022-09-27 21:14:58 +03:00
parent 99b60035da
commit 84a35d9fb8
4 changed files with 3 additions and 4 deletions

View file

@ -14,7 +14,7 @@ https://www.youtube.com/feeds/videos.xml?channel_id=UCW-HBBzxn7URXPHzWiZTq_A "(y
"HL" "(---)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCjulQNQQJmpYzI-BD1-s03w "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UC4rpWi42yPqTA0wnfx7MqOA "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCpi0JLkVK0RrAHkfpB3B2Aw "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UC2WNW0NZVyMeEPvtLmScgvQ "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCiUkcNS6W0n8QdosuZASduQ "(ytb")

View file

@ -6,12 +6,10 @@ config.bind('yd', 'hint links spawn wm-handler {hint-url}')
# Search engines
c.url.searchengines = {'DEFAULT': 'https://librex.extravi.dev/search.php?q={}',
'w': 'https://en.wikipedia.org/w/index.php?search={}',
'y': 'https://yewtu.be/search?q={}',
'gh': 'https://github.com/search?q={}',
'md': 'https://reelgood.com/search?q={}',
'rtk': 'https://rutracker.org/forum/tracker.php?nm={}',
'prb': 'https://thepiratebay10.org/search/{}',
'rep': 'https://repology.org/projects/?search={}',
'trans': 'https://lingva.pussthecat.org/en/uk/{}'
}

View file

@ -2,3 +2,4 @@
-f bestvideo[height<=?720]+bestaudio/best
-S "codec:h264"
--embed-subs
--embed-metadata

View file

@ -5,7 +5,7 @@
base="$(basename "$1")"
notify-send "Queuing $base..."
cmd="$2"
[ -z "$cmd" ] && cmd="yt-dlp --embed-metadata -ic"
[ -z "$cmd" ] && cmd="yt-dlp -ic"
idnum="$(ts $cmd "$1")"
realname="$(echo "$base" | sed "s/?\(source\|dest\).*//;s/%20/ /g")"
ts -D "$idnum" mv "$base" "$realname"