Empty URL setting will result in the default being applied

This commit is contained in:
Isaac Grynsztein
2020-07-01 23:20:11 -04:00
parent e81d0cab42
commit cf14880d21

View File

@@ -593,6 +593,8 @@ function loadConfigValues() {
};
}
// empty url defaults to default URL
if (!url || url === '') url = 'http://example.com'
url_domain = new URL(url);
let logger_level = config_api.getConfigItem('ytdl_logger_level');