]> jfr.im git - yt-dlp.git/commitdiff
[cleanup] Misc
authorpukkandan <redacted>
Fri, 6 Jan 2023 21:18:34 +0000 (02:48 +0530)
committerpukkandan <redacted>
Fri, 6 Jan 2023 21:18:34 +0000 (02:48 +0530)
Changelog.md
Collaborators.md
pyproject.toml
setup.cfg
supportedsites.md
yt_dlp/extractor/common.py
yt_dlp/extractor/drtv.py
yt_dlp/extractor/xanimu.py

index 95635350d5e827a5a55981c47c37a47eb10cffde..f4b4f1e7203b0781bfa577914d01506f1fc39ac1 100644 (file)
@@ -11,7 +11,7 @@ # Instuctions for creating release
 -->
 
 
-## 2023.01.02
+### 2023.01.02
 
 * **Improve plugin architecture** by [Grub4K](https://github.com/Grub4K), [coletdjnz](https://github.com/coletdjnz), [flashdagger](https://github.com/flashdagger), [pukkandan](https://github.com/pukkandan)
     * Plugins can be loaded in any distribution of yt-dlp (binary, pip, source, etc.) and can be distributed and installed as packages. See [the readme](https://github.com/yt-dlp/yt-dlp/tree/05997b6e98e638d97d409c65bb5eb86da68f3b64#plugins) for more information
index 58748ec9198fa8648cf0e906953ac97305917f08..3bce437c9baa7eb98772ecb3c258596bf06f7ae1 100644 (file)
@@ -42,7 +42,7 @@ ## [Ashish0804](https://github.com/Ashish0804) <sub><sup>[Inactive]</sup></sub>
 * Improved/fixed support for HiDive, HotStar, Hungama, LBRY, LinkedInLearning, Mxplayer, SonyLiv, TV2, Vimeo, VLive etc
 
 
-## [Lesmiscore](https://github.com/Lesmiscore) <sup><sub>(nao20010128nao)</sup></sub>
+## [Lesmiscore](https://github.com/Lesmiscore) <sub><sup>(nao20010128nao)</sup></sub>
 
 **Bitcoin**: bc1qfd02r007cutfdjwjmyy9w23rjvtls6ncve7r3s  
 **Monacoin**: mona1q3tf7dzvshrhfe3md379xtvt2n22duhglv5dskr
index 75e0100fef6778eacce3eec08ddc47abcab8d65e..97718ec431ebdb01e9db4e64ccf61b4f4754f508 100644 (file)
@@ -1,3 +1,5 @@
 [build-system]
-requires = ['setuptools']
 build-backend = 'setuptools.build_meta'
+# https://github.com/yt-dlp/yt-dlp/issues/5941
+# https://github.com/pypa/distutils/issues/17
+requires = ['setuptools > 50']
index 2def390f5193a23ed238af6d2af4d35292b1c6d4..6deaa797151bfc3ee2eb0cff6ad65532087e51c7 100644 (file)
--- a/setup.cfg
+++ b/setup.cfg
@@ -26,12 +26,12 @@ markers =
 
 [tox:tox]
 skipsdist = true
-envlist = py{36,37,38,39,310},pypy{36,37,38,39}
+envlist = py{36,37,38,39,310,311},pypy{36,37,38,39}
 skip_missing_interpreters = true
 
 [testenv]  # tox
 deps =
-   pytest
+    pytest
 commands = pytest {posargs:"-m not download"}
 passenv = HOME  # For test_compat_expanduser
 setenv =
index a8740e0a2ba69506fae555ea276a3b582bc970c4..a41bb239c2c49b27e7aae848972d18f9d3e26adb 100644 (file)
@@ -1199,7 +1199,6 @@ # Supported sites
  - **SaltTVLive**: [<abbr title="netrc machine"><em>salttv</em></abbr>]
  - **SaltTVRecordings**: [<abbr title="netrc machine"><em>salttv</em></abbr>]
  - **SampleFocus**
- - **SamplePlugin**: (**Currently broken**)
  - **Sangiin**: 参議院インターネット審議中継 (archive)
  - **Sapo**: SAPO Vídeos
  - **savefrom.net**
@@ -1694,7 +1693,7 @@ # Supported sites
  - **YouPorn**
  - **YourPorn**
  - **YourUpload**
- - **youtube+sample+NSIG+AGB**: YouTube
+ - **youtube**: YouTube
  - **youtube:clip**
  - **youtube:favorites**: YouTube liked videos; ":ytfav" keyword (requires cookies)
  - **youtube:history**: Youtube watch history; ":ythis" keyword (requires cookies)
index b18d2e73eba66362503faaae17ff35d698a2b0ba..ef975997404f321195f705841b2f520264272726 100644 (file)
@@ -1263,11 +1263,8 @@ def _html_search_regex(self, pattern, string, name, default=NO_DEFAULT, fatal=Tr
         """
         res = self._search_regex(pattern, string, name, default, fatal, flags, group)
         if isinstance(res, tuple):
-            return [clean_html(r).strip() for r in res]
-        elif res:
-            return clean_html(res).strip()
-        else:
-            return res
+            return tuple(map(clean_html, res))
+        return clean_html(res)
 
     def _get_netrc_login_info(self, netrc_machine=None):
         username = None
index f4df3e2462aadf40224c5f9748026f992ea434bd..d3e197551d93aaa75aadb068b92f1df68e5b543f 100644 (file)
@@ -2,14 +2,13 @@
 import hashlib
 import re
 
-
 from .common import InfoExtractor
 from ..aes import aes_cbc_decrypt_bytes, unpad_pkcs7
 from ..compat import compat_urllib_parse_unquote
 from ..utils import (
     ExtractorError,
-    int_or_none,
     float_or_none,
+    int_or_none,
     mimetype2ext,
     str_or_none,
     traverse_obj,
@@ -19,7 +18,6 @@
     url_or_none,
 )
 
-
 SERIES_API = 'https://production-cdn.dr-massive.com/api/page?device=web_browser&item_detail_expand=all&lang=da&max_list_prefetch=3&path=%s'
 
 
index 2a1ec2775d35031b622f56d2bac0f4139e18368f..e0b7bf96807c784e67bd7ac1cffbcab466405200 100644 (file)
@@ -1,7 +1,7 @@
 import re
 
-from ..utils import int_or_none
 from .common import InfoExtractor
+from ..utils import int_or_none
 
 
 class XanimuIE(InfoExtractor):