]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/vh1.py
New upstream version 2017.09.24
[youtubedl] / youtube_dl / extractor / vh1.py
index 2f77e38981c3607b6dceb00cac3bca514bf2fcd8..570fa45ea7d7e492ac924882f04708d4ecbf5c59 100644 (file)
@@ -121,4 +121,11 @@ class VH1IE(MTVIE):
         idoc = self._download_xml(
             doc_url, video_id,
             'Downloading info', transform_source=fix_xml_ampersands)
         idoc = self._download_xml(
             doc_url, video_id,
             'Downloading info', transform_source=fix_xml_ampersands)
-        return [self._get_video_info(item) for item in idoc.findall('.//item')]
+
+        entries = []
+        for item in idoc.findall('.//item'):
+            info = self._get_video_info(item)
+            if info:
+                entries.append(info)
+
+        return self.playlist_result(entries, playlist_id=video_id)