[mtv] Skip missing video parts (closes #13690)
This commit is contained in:
parent
0017d9ad6d
commit
e0f1fb0a27
2 changed files with 30 additions and 10 deletions
|
@ -121,7 +121,11 @@ class VH1IE(MTVIE):
|
|||
idoc = self._download_xml(
|
||||
doc_url, video_id,
|
||||
'Downloading info', transform_source=fix_xml_ampersands)
|
||||
return self.playlist_result(
|
||||
[self._get_video_info(item) for item in idoc.findall('.//item')],
|
||||
playlist_id=video_id,
|
||||
)
|
||||
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue