Reconfiguration yt-dlp
This commit is contained in:
parent
10fc76f135
commit
ce6497a0d4
9 changed files with 23 additions and 37 deletions
|
@ -23,7 +23,7 @@ eval $(ssh-agent -s)
|
|||
if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then
|
||||
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
|
||||
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 XDG_CURRENT_DESKTOP=i3
|
||||
# exec sway -d 2> $HOME/.sway.log
|
||||
|
|
|
@ -370,12 +370,12 @@ exec claws-mail --online
|
|||
exec --no-startup-id urxvtc -name newsboat -e newsboat
|
||||
exec --no-startup-id redshift-gtk
|
||||
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 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 sleep 5m && qbittorrent
|
||||
#exec --no-startup-id sleep 5m && qbittorrent
|
||||
|
||||
# Start i3bar to display a workspace bar (plus the system information i3status if available)
|
||||
bar {
|
||||
|
|
|
@ -23,8 +23,9 @@ sub-file-paths=~/Sous-titres/
|
|||
sub-font=IBM Plex Sans
|
||||
sub-font-size=25
|
||||
sub-margin-y=10
|
||||
#slang=en,eng,en-US,en-GB,fr,fre,fra,fr-FR
|
||||
#slang=fr,fre,fra
|
||||
slang=en
|
||||
|
||||
ytdl-raw-options=write-auto-subs=
|
||||
|
||||
# Cache
|
||||
cache=yes
|
||||
|
|
|
@ -17,7 +17,7 @@ timeline_cache=yes
|
|||
# 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.
|
||||
progress=always
|
||||
progress_size=2
|
||||
progress_size=5
|
||||
progress_line_width=20
|
||||
|
||||
# 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:
|
||||
# window_border, top_bar, timeline, controls, volume,
|
||||
# idle_indicator, audio_indicator, buffering_indicator, pause_indicator
|
||||
disable_elements=buffering_indicator
|
||||
disable_elements=
|
||||
|
|
|
@ -102,7 +102,7 @@ visualizer_in_stereo = yes
|
|||
#
|
||||
visualizer_fps = 144
|
||||
#
|
||||
visualizer_autoscale = yes
|
||||
visualizer_autoscale = no
|
||||
#
|
||||
#visualizer_look = ●▮
|
||||
#
|
||||
|
|
|
@ -41,6 +41,7 @@ pacmanpath = pacman
|
|||
privilegeescalationtool = sudo
|
||||
privilegeescalationtarget = pikaur
|
||||
userid = 0
|
||||
preserveenv = PKGDEST,VISUAL,EDITOR,http_proxy,https_proxy,ftp_proxy,HTTP_PROXY,HTTPS_PROXY,FTP_PROXY,ALL_PROXY
|
||||
|
||||
[network]
|
||||
aururl = https://aur.archlinux.org
|
||||
|
|
|
@ -1,21 +1,18 @@
|
|||
-U # Upgrade
|
||||
-o "%(release_date,upload_date)s.%(title)s.%(ext)s"
|
||||
-P "temp:/tmp"
|
||||
--convert-thumbnails "webp>jpg"
|
||||
--embed-thumbnail
|
||||
--add-metadata
|
||||
--embed-subs
|
||||
--write-subs
|
||||
--write-auto-subs
|
||||
#--write-auto-subs
|
||||
--sub-langs fr,en,en(-|_)?.+,-live_chat
|
||||
#--sub-langs en
|
||||
--embed-thumbnail
|
||||
-i
|
||||
-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
|
||||
--compat-options no-keep-subs
|
||||
--download-archive ".yt-dlp_archive"
|
||||
#-N 4
|
||||
#--netrc
|
||||
|
||||
# For 429 errors
|
||||
--retry-sleep fragment:exp=1:320
|
||||
|
|
|
@ -14,7 +14,7 @@ then
|
|||
echo 0 > ${runtime}/updates
|
||||
fi
|
||||
|
||||
avail=($(checkupdates | cut -d' ' -f1))
|
||||
avail=($(checkupdates --nocolor | cut -d' ' -f1))
|
||||
aur=($(pikaur -Qua | cut -d' ' -f2))
|
||||
total=$((${#avail[@]} + ${#aur[@]}))
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
from __future__ import print_function
|
||||
|
||||
import os
|
||||
|
@ -7,7 +7,7 @@ import json
|
|||
import struct
|
||||
import subprocess
|
||||
|
||||
VERSION = '7.2.3'
|
||||
VERSION = '7.2.6'
|
||||
|
||||
try:
|
||||
sys.stdin.buffer
|
||||
|
@ -33,23 +33,8 @@ try:
|
|||
|
||||
except AttributeError:
|
||||
# Python 2.x version (if sys.stdin.buffer is not defined)
|
||||
# Read a message from stdin and decode it.
|
||||
def getMessage():
|
||||
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()
|
||||
print('Python 3.2 or newer is required.')
|
||||
sys.exit(-1)
|
||||
|
||||
|
||||
def install():
|
||||
|
@ -117,6 +102,7 @@ def find_browsers():
|
|||
apps = [
|
||||
'Chrome',
|
||||
'Chromium',
|
||||
'chromium',
|
||||
'chromium-browser',
|
||||
'firefox',
|
||||
'Firefox',
|
||||
|
@ -184,4 +170,5 @@ if __name__ == '__main__':
|
|||
listen()
|
||||
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.')
|
||||
|
|
Loading…
Reference in a new issue