Add youtube-dl verbose log option

This commit is contained in:
Azlux 2021-04-03 13:11:54 +02:00
parent 7a6cdef65d
commit 582b0b58da
3 changed files with 6 additions and 4 deletions

View File

@ -114,6 +114,7 @@ max_upload_file_size = 30M
ffmpeg = False
redirect_ffmpeg_log = True
mumbleConnection = False
youtube_dl = False
# This is a list of default radio stations.
[radio]

View File

@ -158,9 +158,9 @@ port = 64738
# [debug] stores some debug settings.
[debug]
# 'ffmpeg': Set ffmpeg to True if you want to display DEBUG level log of ffmpeg.
#ffmpeg = False
#mumbleConnection = False
#ffmpeg = False # Set ffmpeg to True if you want to display DEBUG level log of ffmpeg.
#mumbleConnection = False # Set to True if you need to debug mumble connection (pymumble lib)
#youtube_dl = False # Set to True if you need debug log from youtube-dl
# [radio] is a list of default radio stations.
[radio]

View File

@ -166,7 +166,8 @@ class URLItem(BaseItem):
'outtmpl': base_path,
'noplaylist': True,
'writethumbnail': True,
'updatetime': False
'updatetime': False,
'verbose': var.config.getboolean('debug', 'youtube_dl')
}
with youtube_dl.YoutubeDL(ydl_opts) as ydl: