Skip to content

Commit

Permalink
Fix for videos with no description
Browse files Browse the repository at this point in the history
  • Loading branch information
pukkandan committed Sep 22, 2020
1 parent 824c247 commit 2e31cdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -1918,7 +1918,7 @@ def extract_unavailable_message():
video_title = '_'

m_description = re.search(r'"description":{"runs":\[{"text":"(.*?)"}\]}', video_webpage)
description_original = video_description = m_description.group(1).replace('\\n', '\n')
description_original = video_description = m_description.group(1).replace('\\n', '\n') if m_description!=None else ""
if video_description:

def replace_url(m):
Expand Down

0 comments on commit 2e31cdb

Please sign in to comment.