diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py index fe3d12776..c24577cb7 100755 --- a/youtube_dl/InfoExtractors.py +++ b/youtube_dl/InfoExtractors.py @@ -1099,7 +1099,7 @@ def _real_extract(self, url, new_video=True): # Extract uploader and uploader_id video_uploader = config["video"]["owner"]["name"] - video_uploader_id = config["video"]["owner"]["url"].split('/')[-1] + video_uploader_id = config["video"]["owner"]["url"].split('/')[-1] if config["video"]["owner"]["url"] else None # Extract video thumbnail video_thumbnail = config["video"]["thumbnail"]