[rai] Skip not found content item id
authorSergey M․ <dstftw@gmail.com>
Sat, 1 Apr 2017 19:24:13 +0000 (02:24 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 1 Apr 2017 19:24:13 +0000 (02:24 +0700)
youtube_dl/extractor/rai.py

index b77b0a08e61f7969e182ffe41a749767c0a1d0bf..077546a733091568ca974488f80e9fedcd8afbc5 100644 (file)
@@ -362,7 +362,8 @@ class RaiIE(RaiBaseIE):
                 webpage, 'content item id', default=None, group='id')
 
         content_item_ids = set()
-        content_item_ids.add(content_item_id)
+        if content_item_id:
+            content_item_ids.add(content_item_id)
         if video_id not in content_item_ids:
             content_item_ids.add(video_id)