- xml_url = (
- 'https://www.restudy.dk/awsmedia/SmilDirectory/video_%s.xml'
- % video_id)
- xml = self._download_webpage(xml_url, video_id)
-
- base = self._search_regex(
- r'<meta base="([^"]+)', xml, 'meta base')
- # TODO: Provide multiple video qualities instead of forcing highest
- filename = self._search_regex(
- r'<video src="mp4:([^"]+_high\.mp4)', xml, 'filename')
- url = '%s%s' % (base, filename)
- title = self._og_search_title(webpage)
+
+ title = self._og_search_title(webpage).strip()
+ description = self._og_search_description(webpage).strip()
+
+ formats = self._extract_smil_formats(
+ 'https://cdn.portal.restudy.dk/dynamic/themes/front/awsmedia/SmilDirectory/video_%s.xml' % video_id,
+ video_id)
+ self._sort_formats(formats)
+