aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/extractor/theplatform.py
diff options
context:
space:
mode:
authorSimon Sawicki <contact@grub4k.xyz>2024-05-26 21:27:21 +0200
committerGitHub <noreply@github.com>2024-05-26 21:27:21 +0200
commite897bd8292a41999cf51dba91b390db5643c72db (patch)
tree1279e992db6706675399485c93d3a0084e37ea27 /yt_dlp/extractor/theplatform.py
parenta2e9031605d87c469be9ce98dbbdf4960b727338 (diff)
[misc] Add `hatch`, `ruff`, `pre-commit` and improve dev docs (#7409)
Authored by: bashonly, seproDev, Grub4K Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com> Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
Diffstat (limited to 'yt_dlp/extractor/theplatform.py')
-rw-r--r--yt_dlp/extractor/theplatform.py24
1 files changed, 11 insertions, 13 deletions
diff --git a/yt_dlp/extractor/theplatform.py b/yt_dlp/extractor/theplatform.py
index 9160f5ec6..eeb33a660 100644
--- a/yt_dlp/extractor/theplatform.py
+++ b/yt_dlp/extractor/theplatform.py
@@ -1,29 +1,27 @@
-import re
-import time
-import hmac
import binascii
import hashlib
+import hmac
+import re
+import time
-
-from .once import OnceIE
from .adobepass import AdobePassIE
-from ..networking import Request
+from .once import OnceIE
+from ..networking import HEADRequest, Request
from ..utils import (
- determine_ext,
ExtractorError,
+ determine_ext,
+ find_xpath_attr,
float_or_none,
int_or_none,
- parse_qs,
- unsmuggle_url,
- update_url_query,
- xpath_with_ns,
mimetype2ext,
- find_xpath_attr,
+ parse_qs,
traverse_obj,
+ unsmuggle_url,
update_url,
+ update_url_query,
urlhandle_detect_ext,
+ xpath_with_ns,
)
-from ..networking import HEADRequest
default_ns = 'http://www.w3.org/2005/SMIL21/Language'
_x = lambda p: xpath_with_ns(p, {'smil': default_ns})