diff options
author | Sergey M․ <dstftw@gmail.com> | 2020-02-29 19:17:27 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2020-02-29 19:19:24 +0700 |
commit | 7947a1f7dbc6ba47a6f22ab67fd330e57c0ef87c (patch) | |
tree | 6350972931916e7acfced5b5a9bcd2d53e932849 /youtube_dl/extractor/generic.py | |
parent | fca6dba8b80286ae6d3ca0a60c4799c220a52650 (diff) |
Remove no longer needed compat_str around geturl
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r-- | youtube_dl/extractor/generic.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 04c026984..d1ec56be9 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -2287,7 +2287,7 @@ class GenericIE(InfoExtractor): if head_response is not False: # Check for redirect - new_url = compat_str(head_response.geturl()) + new_url = head_response.geturl() if url != new_url: self.report_following_redirect(new_url) if force_videoid: @@ -2387,12 +2387,12 @@ class GenericIE(InfoExtractor): return self.playlist_result( self._parse_xspf( doc, video_id, xspf_url=url, - xspf_base_url=compat_str(full_response.geturl())), + xspf_base_url=full_response.geturl()), video_id) elif re.match(r'(?i)^(?:{[^}]+})?MPD$', doc.tag): info_dict['formats'] = self._parse_mpd_formats( doc, - mpd_base_url=compat_str(full_response.geturl()).rpartition('/')[0], + mpd_base_url=full_response.geturl().rpartition('/')[0], mpd_url=url) self._sort_formats(info_dict['formats']) return info_dict |