Reconfiguration yt-dlp

This commit is contained in:
Breizh 2024-02-08 12:09:26 +01:00
parent 5accf28bcb
commit 7bab07ae28
9 changed files with 23 additions and 37 deletions

View file

@ -23,7 +23,7 @@ eval $(ssh-agent -s)
if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then
export GTK2_RC_FILES="$HOME/.gtkrc-2.0" export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
export QT_QPA_PLATFORMTHEME=qt5ct export QT_QPA_PLATFORMTHEME=qt5ct
export BROWSER="systemd-run --user --scope -p MemoryMax=4G firefox" export BROWSER="systemd-run --user --scope -p MemoryMax=3G firefox"
export TERMINAL=urxvtc export TERMINAL=urxvtc
export XDG_CURRENT_DESKTOP=i3 export XDG_CURRENT_DESKTOP=i3
# exec sway -d 2> $HOME/.sway.log # exec sway -d 2> $HOME/.sway.log

View file

@ -370,12 +370,12 @@ exec claws-mail --online
exec --no-startup-id urxvtc -name newsboat -e newsboat exec --no-startup-id urxvtc -name newsboat -e newsboat
exec --no-startup-id redshift-gtk exec --no-startup-id redshift-gtk
exec --no-startup-id nm-applet exec --no-startup-id nm-applet
#exec --no-startup-id sleep 2m && steam-native -silent -noverifyfiles -language french exec --no-startup-id sleep 1m && steam-native -silent -noverifyfiles -language french
#exec --no-startup-id SVPManager #exec --no-startup-id SVPManager
#exec --no-startup-id hp-systray -x #exec --no-startup-id hp-systray -x
exec --no-startup-id sleep 5 && play "$HOME/Musique/WELCOME BACK.wav" exec --no-startup-id sleep 1m && play "$HOME/Musique/WELCOME BACK.wav"
#exec --no-startup-id variety #exec --no-startup-id variety
exec --no-startup-id sleep 5m && qbittorrent #exec --no-startup-id sleep 5m && qbittorrent
# Start i3bar to display a workspace bar (plus the system information i3status if available) # Start i3bar to display a workspace bar (plus the system information i3status if available)
bar { bar {

View file

@ -23,8 +23,9 @@ sub-file-paths=~/Sous-titres/
sub-font=IBM Plex Sans sub-font=IBM Plex Sans
sub-font-size=25 sub-font-size=25
sub-margin-y=10 sub-margin-y=10
#slang=en,eng,en-US,en-GB,fr,fre,fra,fr-FR slang=en
#slang=fr,fre,fra
ytdl-raw-options=write-auto-subs=
# Cache # Cache
cache=yes cache=yes

View file

@ -17,7 +17,7 @@ timeline_cache=yes
# When to display an always visible progress bar (minimized timeline). Can be: windowed, fullscreen, always, never # When to display an always visible progress bar (minimized timeline). Can be: windowed, fullscreen, always, never
# Can also be toggled on demand with `toggle-progress` command. # Can also be toggled on demand with `toggle-progress` command.
progress=always progress=always
progress_size=2 progress_size=5
progress_line_width=20 progress_line_width=20
# A comma delimited list of controls above the timeline. Set to `never` to disable. # A comma delimited list of controls above the timeline. Set to `never` to disable.
@ -226,4 +226,4 @@ languages=slang,en
# A comma separated list of element IDs to disable. Available IDs: # A comma separated list of element IDs to disable. Available IDs:
# window_border, top_bar, timeline, controls, volume, # window_border, top_bar, timeline, controls, volume,
# idle_indicator, audio_indicator, buffering_indicator, pause_indicator # idle_indicator, audio_indicator, buffering_indicator, pause_indicator
disable_elements=buffering_indicator disable_elements=

View file

@ -102,7 +102,7 @@ visualizer_in_stereo = yes
# #
visualizer_fps = 144 visualizer_fps = 144
# #
visualizer_autoscale = yes visualizer_autoscale = no
# #
#visualizer_look = ●▮ #visualizer_look = ●▮
# #

View file

@ -41,6 +41,7 @@ pacmanpath = pacman
privilegeescalationtool = sudo privilegeescalationtool = sudo
privilegeescalationtarget = pikaur privilegeescalationtarget = pikaur
userid = 0 userid = 0
preserveenv = PKGDEST,VISUAL,EDITOR,http_proxy,https_proxy,ftp_proxy,HTTP_PROXY,HTTPS_PROXY,FTP_PROXY,ALL_PROXY
[network] [network]
aururl = https://aur.archlinux.org aururl = https://aur.archlinux.org

View file

@ -1,21 +1,18 @@
-U # Upgrade -U # Upgrade
-o "%(release_date,upload_date)s.%(title)s.%(ext)s" -o "%(release_date,upload_date)s.%(title)s.%(ext)s"
-P "temp:/tmp" -P "temp:/tmp"
--convert-thumbnails "webp>jpg"
--embed-thumbnail
--add-metadata
--embed-subs --embed-subs
--write-subs --write-subs
--write-auto-subs #--write-auto-subs
--sub-langs fr,en,en(-|_)?.+,-live_chat --sub-langs fr,en,en(-|_)?.+,-live_chat
#--sub-langs en
--embed-thumbnail
-i -i
-S res:1440,fps,hdr:12,vcodec,channels,acodec,lang,proto -S res:1440,fps,hdr:12,vcodec,channels,acodec,lang,proto
#-f "((bestvideo[height<=?1440][width<=?2560]/bestvideo)+bestaudio)/best"
--add-metadata
--hls-use-mpegts --hls-use-mpegts
--compat-options no-keep-subs --compat-options no-keep-subs
--download-archive ".yt-dlp_archive" --download-archive ".yt-dlp_archive"
#-N 4
#--netrc
# For 429 errors # For 429 errors
--retry-sleep fragment:exp=1:320 --retry-sleep fragment:exp=1:320

View file

@ -14,7 +14,7 @@ then
echo 0 > ${runtime}/updates echo 0 > ${runtime}/updates
fi fi
avail=($(checkupdates | cut -d' ' -f1)) avail=($(checkupdates --nocolor | cut -d' ' -f1))
aur=($(pikaur -Qua | cut -d' ' -f2)) aur=($(pikaur -Qua | cut -d' ' -f2))
total=$((${#avail[@]} + ${#aur[@]})) total=$((${#avail[@]} + ${#aur[@]}))

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
from __future__ import print_function from __future__ import print_function
import os import os
@ -7,7 +7,7 @@ import json
import struct import struct
import subprocess import subprocess
VERSION = '7.2.3' VERSION = '7.2.6'
try: try:
sys.stdin.buffer sys.stdin.buffer
@ -33,23 +33,8 @@ try:
except AttributeError: except AttributeError:
# Python 2.x version (if sys.stdin.buffer is not defined) # Python 2.x version (if sys.stdin.buffer is not defined)
# Read a message from stdin and decode it. print('Python 3.2 or newer is required.')
def getMessage(): sys.exit(-1)
rawLength = sys.stdin.read(4)
if len(rawLength) == 0:
sys.exit(0)
messageLength = struct.unpack('@I', rawLength)[0]
message = sys.stdin.read(messageLength)
return json.loads(message)
# Send an encoded message to stdout
def sendMessage(messageContent):
encodedContent = json.dumps(messageContent)
encodedLength = struct.pack('@I', len(encodedContent))
sys.stdout.write(encodedLength)
sys.stdout.write(encodedContent)
sys.stdout.flush()
def install(): def install():
@ -117,6 +102,7 @@ def find_browsers():
apps = [ apps = [
'Chrome', 'Chrome',
'Chromium', 'Chromium',
'chromium',
'chromium-browser', 'chromium-browser',
'firefox', 'firefox',
'Firefox', 'Firefox',
@ -184,4 +170,5 @@ if __name__ == '__main__':
listen() listen()
sys.exit(0) sys.exit(0)
print('Open With native helper, version %s.' % VERSION) print('This is the Open With native helper, version %s.' % VERSION)
print('Run this script again with the word "install" after the file name to install.')