Compare commits
2 commits
a862f5c5e3
...
1a8d1db86c
Author | SHA1 | Date | |
---|---|---|---|
Geoffrey Frogeye | 1a8d1db86c | ||
Geoffrey Frogeye | 369890e348 |
|
@ -4,7 +4,7 @@ Programs used to download sutff off the internet
|
||||||
wget
|
wget
|
||||||
curl
|
curl
|
||||||
rsync
|
rsync
|
||||||
youtube-dl
|
yt-dlp
|
||||||
megatools
|
megatools
|
||||||
transmission-cli
|
transmission-cli
|
||||||
{% if display_server %}
|
{% if display_server %}
|
||||||
|
|
|
@ -20,6 +20,7 @@ import re
|
||||||
import subprocess
|
import subprocess
|
||||||
import time
|
import time
|
||||||
import typing
|
import typing
|
||||||
|
import sys
|
||||||
|
|
||||||
import coloredlogs
|
import coloredlogs
|
||||||
import configargparse
|
import configargparse
|
||||||
|
@ -473,8 +474,10 @@ class RVDatabase:
|
||||||
@property
|
@property
|
||||||
def ytdl_opts(self) -> dict:
|
def ytdl_opts(self) -> dict:
|
||||||
# Get user/system options
|
# Get user/system options
|
||||||
_, _, _, ydl_opts = yt_dlp.parse_options([""])
|
prev_argv = sys.argv
|
||||||
# Have to put a dummy option otherwise yt-dlp will use sys.argv
|
sys.argv = ['yt-dlp']
|
||||||
|
_, _, _, ydl_opts = yt_dlp.parse_options()
|
||||||
|
sys.argv = prev_argv
|
||||||
return ydl_opts
|
return ydl_opts
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in a new issue