|
@ -2287,7 +2287,7 @@ class GenericIE(InfoExtractor): |
|
|
|
|
|
|
|
|
if head_response is not False: |
|
|
if head_response is not False: |
|
|
# Check for redirect |
|
|
# Check for redirect |
|
|
new_url = compat_str(head_response.geturl()) |
|
|
|
|
|
|
|
|
new_url = head_response.geturl() |
|
|
if url != new_url: |
|
|
if url != new_url: |
|
|
self.report_following_redirect(new_url) |
|
|
self.report_following_redirect(new_url) |
|
|
if force_videoid: |
|
|
if force_videoid: |
|
@ -2387,12 +2387,12 @@ class GenericIE(InfoExtractor): |
|
|
return self.playlist_result( |
|
|
return self.playlist_result( |
|
|
self._parse_xspf( |
|
|
self._parse_xspf( |
|
|
doc, video_id, xspf_url=url, |
|
|
doc, video_id, xspf_url=url, |
|
|
xspf_base_url=compat_str(full_response.geturl())), |
|
|
|
|
|
|
|
|
xspf_base_url=full_response.geturl()), |
|
|
video_id) |
|
|
video_id) |
|
|
elif re.match(r'(?i)^(?:{[^}]+})?MPD$', doc.tag): |
|
|
elif re.match(r'(?i)^(?:{[^}]+})?MPD$', doc.tag): |
|
|
info_dict['formats'] = self._parse_mpd_formats( |
|
|
info_dict['formats'] = self._parse_mpd_formats( |
|
|
doc, |
|
|
doc, |
|
|
mpd_base_url=compat_str(full_response.geturl()).rpartition('/')[0], |
|
|
|
|
|
|
|
|
mpd_base_url=full_response.geturl().rpartition('/')[0], |
|
|
mpd_url=url) |
|
|
mpd_url=url) |
|
|
self._sort_formats(info_dict['formats']) |
|
|
self._sort_formats(info_dict['formats']) |
|
|
return info_dict |
|
|
return info_dict |
|
|