aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/beeg.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dl/extractor/beeg.py')
-rw-r--r--youtube_dl/extractor/beeg.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/beeg.py b/youtube_dl/extractor/beeg.py
index 6f9f4433d..d7301fe18 100644
--- a/youtube_dl/extractor/beeg.py
+++ b/youtube_dl/extractor/beeg.py
@@ -42,7 +42,9 @@ class BeegIE(InfoExtractor):
categories_str = self._html_search_regex(
r'<meta name="keywords" content="([^"]+)"', webpage, 'categories', fatal=False)
- categories = categories_str.split(',')
+ categories = (
+ None if categories_str is None
+ else categories_str.split(','))
return {
'id': video_id,