From 582b0b58da9a4ac1bc841cae789f44bb41c72336 Mon Sep 17 00:00:00 2001 From: Azlux Date: Sat, 3 Apr 2021 13:11:54 +0200 Subject: [PATCH] Add youtube-dl verbose log option --- configuration.default.ini | 1 + configuration.example.ini | 6 +++--- media/url.py | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/configuration.default.ini b/configuration.default.ini index 35e818d..b7b1614 100644 --- a/configuration.default.ini +++ b/configuration.default.ini @@ -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] diff --git a/configuration.example.ini b/configuration.example.ini index ae69011..ee87843 100644 --- a/configuration.example.ini +++ b/configuration.example.ini @@ -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] diff --git a/media/url.py b/media/url.py index 6d95059..ac45c0a 100644 --- a/media/url.py +++ b/media/url.py @@ -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: