]> jfr.im git - yt-dlp.git/commitdiff
[cleanup] Remove unused code (#8968)
authorpukkandan <redacted>
Sun, 10 Mar 2024 16:58:37 +0000 (22:28 +0530)
committerpukkandan <redacted>
Sun, 10 Mar 2024 19:22:20 +0000 (00:52 +0530)
Authored by: pukkandan, seproDev

README.md
devscripts/SizeOfImage.patch [deleted file]
devscripts/SizeOfImage_w.patch [deleted file]
yt_dlp/casefold.py [deleted file]
yt_dlp/dependencies/__init__.py

index 7b72dcabc3d9ff3d2df2ed1614833d18f1281b97..1e108a29c2250cb5f871a086d5fbfe6b0e2e2fc1 100644 (file)
--- a/README.md
+++ b/README.md
@@ -2175,7 +2175,7 @@ Some of yt-dlp's default options are different from that of youtube-dl and youtu
 * yt-dlp versions between 2021.09.01 and 2023.01.02 applies `--match-filter` to nested playlists. This was an unintentional side-effect of [8f18ac](https://github.com/yt-dlp/yt-dlp/commit/8f18aca8717bb0dd49054555af8d386e5eda3a88) and is fixed in [d7b460](https://github.com/yt-dlp/yt-dlp/commit/d7b460d0e5fc710950582baed2e3fc616ed98a80). Use `--compat-options playlist-match-filter` to revert this
 * yt-dlp versions between 2021.11.10 and 2023.06.21 estimated `filesize_approx` values for fragmented/manifest formats. This was added for convenience in [f2fe69](https://github.com/yt-dlp/yt-dlp/commit/f2fe69c7b0d208bdb1f6292b4ae92bc1e1a7444a), but was reverted in [0dff8e](https://github.com/yt-dlp/yt-dlp/commit/0dff8e4d1e6e9fb938f4256ea9af7d81f42fd54f) due to the potentially extreme inaccuracy of the estimated values. Use `--compat-options manifest-filesize-approx` to keep extracting the estimated values
 * yt-dlp uses modern http client backends such as `requests`. Use `--compat-options prefer-legacy-http-handler` to prefer the legacy http handler (`urllib`) to be used for standard http requests.
-* The sub-modules `swfinterp` is removed.
+* The sub-modules `swfinterp`, `casefold` are removed.
 
 For ease of use, a few more compat options are available:
 
diff --git a/devscripts/SizeOfImage.patch b/devscripts/SizeOfImage.patch
deleted file mode 100644 (file)
index d5845af..0000000
Binary files a/devscripts/SizeOfImage.patch and /dev/null differ
diff --git a/devscripts/SizeOfImage_w.patch b/devscripts/SizeOfImage_w.patch
deleted file mode 100644 (file)
index c1a338f..0000000
Binary files a/devscripts/SizeOfImage_w.patch and /dev/null differ
diff --git a/yt_dlp/casefold.py b/yt_dlp/casefold.py
deleted file mode 100644 (file)
index 41a53e5..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-import warnings
-
-warnings.warn(DeprecationWarning(f'{__name__} is deprecated'))
-
-casefold = str.casefold
index 3ef01fa0213e27b78e43360d3639ca6eba49a16e..9e3f90724e389587e0f5b7e55095a4f3e80691e5 100644 (file)
@@ -53,9 +53,7 @@ except ImportError:
 
 try:
     import websockets
-except (ImportError, SyntaxError):
-    # websockets 3.10 on Python 3.6 causes SyntaxError
-    # See https://github.com/yt-dlp/yt-dlp/issues/2633
+except ImportError:
     websockets = None
 
 try: