Skip to content

Commit

Permalink
[hrfernsehen] Fix ardloader extraction (yt-dlp#2217)
Browse files Browse the repository at this point in the history
Authored by: CreaValix
  • Loading branch information
CreaValix authored Jan 4, 2022
1 parent fdeab99 commit db47787
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions yt_dlp/extractor/hrfensehen.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,7 @@ class HRFernsehenIE(InfoExtractor):
}]},
'timestamp': 1598470200,
'upload_date': '20200826',
'thumbnails': [{
'url': 'https://www.hessenschau.de/tv-sendung/hs_ganz-1554~_t-1598465545029_v-16to9.jpg',
'id': '0'
}, {
'url': 'https://www.hessenschau.de/tv-sendung/hs_ganz-1554~_t-1598465545029_v-16to9__medium.jpg',
'id': '1'
}],
'thumbnail': 'https://www.hessenschau.de/tv-sendung/hs_ganz-1554~_t-1598465545029_v-16to9__medium.jpg',
'title': 'hessenschau vom 26.08.2020'
}
}, {
Expand Down Expand Up @@ -81,7 +75,7 @@ def _real_extract(self, url):
description = self._html_search_meta(
['description'], webpage)

loader_str = unescapeHTML(self._search_regex(r"data-hr-mediaplayer-loader='([^']*)'", webpage, "ardloader"))
loader_str = unescapeHTML(self._search_regex(r"data-new-hr-mediaplayer-loader='([^']*)'", webpage, "ardloader"))
loader_data = json.loads(loader_str)

info = {
Expand Down

0 comments on commit db47787

Please sign in to comment.