diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-06-24 16:24:43 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-06-25 00:14:12 +0530 |
commit | 14f25df2b6233553e968df023430ca96c0b1df9f (patch) | |
tree | c611d59d4462820a9e99726b9179811ed88a35b8 /yt_dlp/extractor/commonprotocols.py | |
parent | 54007a45f11ed730352324289b714baefd2901eb (diff) | |
download | hypervideo-pre-14f25df2b6233553e968df023430ca96c0b1df9f.tar.lz hypervideo-pre-14f25df2b6233553e968df023430ca96c0b1df9f.tar.xz hypervideo-pre-14f25df2b6233553e968df023430ca96c0b1df9f.zip |
[compat] Remove deprecated functions from core code
Diffstat (limited to 'yt_dlp/extractor/commonprotocols.py')
-rw-r--r-- | yt_dlp/extractor/commonprotocols.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/yt_dlp/extractor/commonprotocols.py b/yt_dlp/extractor/commonprotocols.py index e8f19b9e0..2f93e8ea5 100644 --- a/yt_dlp/extractor/commonprotocols.py +++ b/yt_dlp/extractor/commonprotocols.py @@ -1,5 +1,6 @@ +import urllib.parse + from .common import InfoExtractor -from ..compat import compat_urlparse class RtmpIE(InfoExtractor): @@ -23,7 +24,7 @@ class RtmpIE(InfoExtractor): 'formats': [{ 'url': url, 'ext': 'flv', - 'format_id': compat_urlparse.urlparse(url).scheme, + 'format_id': urllib.parse.urlparse(url).scheme, }], } |