]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/abematv.py
[compat] Remove deprecated functions from core code
[yt-dlp.git] / yt_dlp / extractor / abematv.py
index 0706f85594883aa2bfe2dcd116b9fbba11f2c691..a75efdd0f6e911e114ad63f0ad255e7e2b55e758 100644 (file)
@@ -7,13 +7,13 @@
 import re
 import struct
 import time
+import urllib.parse
 import urllib.request
 import urllib.response
 import uuid
 
 from .common import InfoExtractor
 from ..aes import aes_ecb_decrypt
-from ..compat import compat_urllib_parse_urlparse
 from ..utils import (
     ExtractorError,
     bytes_to_intlist,
@@ -137,7 +137,7 @@ def _get_videokey_from_ticket(self, ticket):
 
     def abematv_license_open(self, url):
         url = request_to_url(url)
-        ticket = compat_urllib_parse_urlparse(url).netloc
+        ticket = urllib.parse.urlparse(url).netloc
         response_data = self._get_videokey_from_ticket(ticket)
         return urllib.response.addinfourl(io.BytesIO(response_data), headers={
             'Content-Length': len(response_data),