Browse Source

[aftonbladet] Fix extraction

totalwebcasting
Yen Chi Hsuan 9 years ago
parent
commit
1b6cf16be7
No known key found for this signature in database GPG Key ID: 3FDDD575826C5C30
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      youtube_dl/extractor/aftonbladet.py

+ 2
- 2
youtube_dl/extractor/aftonbladet.py View File

@ -24,10 +24,10 @@ class AftonbladetIE(InfoExtractor):
webpage = self._download_webpage(url, video_id) webpage = self._download_webpage(url, video_id)
# find internal video meta data # find internal video meta data
meta_url = 'http://aftonbladet-play.drlib.aptoma.no/video/%s.json'
meta_url = 'http://aftonbladet-play-metadata.cdn.drvideo.aptoma.no/video/%s.json'
player_config = self._parse_json(self._html_search_regex( player_config = self._parse_json(self._html_search_regex(
r'data-player-config="([^"]+)"', webpage, 'player config'), video_id) r'data-player-config="([^"]+)"', webpage, 'player config'), video_id)
internal_meta_id = player_config['videoId']
internal_meta_id = player_config['aptomaVideoId']
internal_meta_url = meta_url % internal_meta_id internal_meta_url = meta_url % internal_meta_id
internal_meta_json = self._download_json( internal_meta_json = self._download_json(
internal_meta_url, video_id, 'Downloading video meta data') internal_meta_url, video_id, 'Downloading video meta data')


Loading…
Cancel
Save