diff options
Diffstat (limited to 'youtube/watch.py')
-rw-r--r-- | youtube/watch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube/watch.py b/youtube/watch.py index bc2008c..34deb01 100644 --- a/youtube/watch.py +++ b/youtube/watch.py @@ -400,7 +400,7 @@ def get_watch_page(video_id=None): # Add video title to end of url path so it has a filename other than just # "videoplayback" when downloaded - title = urllib.parse.quote(util.to_valid_filename(info['title'])) + title = urllib.parse.quote(util.to_valid_filename(info['title'] or '')) for fmt in info['formats']: filename = title ext = fmt.get('ext') |