Skip to content

Commit

Permalink
Merge pull request #91 from rg3/master
Browse files Browse the repository at this point in the history
[pull] master from rg3:master
  • Loading branch information
pull[bot] committed Jan 24, 2019
2 parents 5c5397a + 1602a24 commit e3ec657
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions youtube_dl/extractor/drtv.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,9 @@ def _real_extract(self, url):
r'data-resource="[^>"]+mu/programcard/expanded/([^"]+)"'),
webpage, 'video id')

programcard = self._download_json(
'http://www.dr.dk/mu/programcard/expanded/%s' % video_id,
video_id, 'Downloading video JSON')
data = programcard['Data'][0]
data = self._download_json(
'https://www.dr.dk/mu-online/api/1.4/programcard/%s' % video_id,
video_id, 'Downloading video JSON', query={'expanded': 'true'})

title = remove_end(self._og_search_title(
webpage, default=None), ' | TV | DR') or data['Title']
Expand All @@ -97,7 +96,7 @@ def _real_extract(self, url):
formats = []
subtitles = {}

for asset in data['Assets']:
for asset in [data['PrimaryAsset']]:
kind = asset.get('Kind')
if kind == 'Image':
thumbnail = asset.get('Uri')
Expand Down

0 comments on commit e3ec657

Please sign in to comment.