from ..utils import (
ExtractorError,
+ unescapeHTML,
unified_strdate,
)
from .subtitles import SubtitlesInfoExtractor
if uploader_m is None:
uploader = None
else:
- uploader = uploader.group(1).strip()
+ uploader = uploader_m.group(1).strip()
rating_str = self._html_search_regex(
r'<strong>Rating: </strong>\s*([^<]*)<', webpage,
def _get_available_subtitles(self, video_id, info_webpage):
res = {}
- for sturl in re.findall(r'<track src="([^"]+)"/>'):
+ for sturl_html in re.findall(r'<track src="([^"]+)"/>', info_webpage):
+ sturl = unescapeHTML(sturl_html)
m = re.search(r'/(?P<lang>[a-z]+)\.vtt', sturl)
if not m:
continue