0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-17 01:25:11 +00:00

don't use selection by attribute

This commit is contained in:
Peter Rowlands 2016-05-08 10:33:17 +09:00
parent 370d4eb8ad
commit 93fdb14177

View file

@ -95,8 +95,10 @@ def _real_extract(self, url):
thumbnail = xpath_text(video_xml, './track/titleImage', 'thumbnail') thumbnail = xpath_text(video_xml, './track/titleImage', 'thumbnail')
entries = [] entries = []
for i, video_file in enumerate(video_xml.findall('./track/video/file[@key]')): for i, video_file in enumerate(video_xml.findall('./track/video/file')):
video_key = self.parse_video_key(video_file.get('key')) video_key = self.parse_video_key(video_file.get('key', ''))
if not video_key:
continue
entries.append({ entries.append({
'id': '%s_%s' % (video_id, video_key.get('part', i + 1)), 'id': '%s_%s' % (video_id, video_key.get('part', i + 1)),
'title': title, 'title': title,