Compare commits

...

2 commits

Author SHA1 Message Date
Geoffrey Frogeye 1a8d1db86c aayyy 2022-05-02 21:05:51 +02:00
Geoffrey Frogeye 369890e348
rssVideos: Fix the options issue 2022-04-10 09:58:06 +02:00
2 changed files with 6 additions and 3 deletions

View file

@ -4,7 +4,7 @@ Programs used to download sutff off the internet
wget
curl
rsync
youtube-dl
yt-dlp
megatools
transmission-cli
{% if display_server %}

View file

@ -20,6 +20,7 @@ import re
import subprocess
import time
import typing
import sys
import coloredlogs
import configargparse
@ -473,8 +474,10 @@ class RVDatabase:
@property
def ytdl_opts(self) -> dict:
# Get user/system options
_, _, _, ydl_opts = yt_dlp.parse_options([""])
# Have to put a dummy option otherwise yt-dlp will use sys.argv
prev_argv = sys.argv
sys.argv = ['yt-dlp']
_, _, _, ydl_opts = yt_dlp.parse_options()
sys.argv = prev_argv
return ydl_opts
@property