1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-02 17:22:31 +01:00

[theplatform] fix pid extraction in the platform feed

This commit is contained in:
remitamine 2016-02-11 18:12:38 +01:00
parent 8b85ac3fd9
commit 3dc71d82ce

View File

@ -284,7 +284,7 @@ def _real_extract(self, url):
duration = None
for item in entry['media$content']:
smil_url = item['plfile$url'] + '&format=SMIL&Tracking=true&Embedded=true&formats=MPEG4,F4M'
cur_video_id = url_basename(smil_url)
cur_video_id = ThePlatformIE._match_id(smil_url)
if first_video_id is None:
first_video_id = cur_video_id
duration = float_or_none(item.get('plfile$duration'))