ytdl-sub 2025.12.8__py3-none-any.whl → 2025.12.26__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ytdl_sub/__init__.py +1 -1
- ytdl_sub/config/overrides.py +19 -0
- ytdl_sub/config/preset.py +2 -0
- ytdl_sub/entries/variables/override_variables.py +1 -4
- ytdl_sub/prebuilt_presets/helpers/download_deletion_options.yaml +1 -2
- {ytdl_sub-2025.12.8.dist-info → ytdl_sub-2025.12.26.dist-info}/METADATA +1 -1
- {ytdl_sub-2025.12.8.dist-info → ytdl_sub-2025.12.26.dist-info}/RECORD +11 -11
- {ytdl_sub-2025.12.8.dist-info → ytdl_sub-2025.12.26.dist-info}/WHEEL +0 -0
- {ytdl_sub-2025.12.8.dist-info → ytdl_sub-2025.12.26.dist-info}/entry_points.txt +0 -0
- {ytdl_sub-2025.12.8.dist-info → ytdl_sub-2025.12.26.dist-info}/licenses/LICENSE +0 -0
- {ytdl_sub-2025.12.8.dist-info → ytdl_sub-2025.12.26.dist-info}/top_level.txt +0 -0
ytdl_sub/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__pypi_version__ = "2025.12.
|
|
1
|
+
__pypi_version__ = "2025.12.26";__local_version__ = "2025.12.26+0f96d8e"
|
ytdl_sub/config/overrides.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from typing import Any
|
|
2
2
|
from typing import Dict
|
|
3
|
+
from typing import Iterable
|
|
3
4
|
from typing import Optional
|
|
4
5
|
from typing import Set
|
|
5
6
|
|
|
@@ -88,6 +89,24 @@ class Overrides(UnstructuredDictFormatterValidator, Scriptable):
|
|
|
88
89
|
|
|
89
90
|
return True
|
|
90
91
|
|
|
92
|
+
def ensure_variable_names_not_a_plugin(self, plugin_names: Iterable[str]) -> None:
|
|
93
|
+
"""
|
|
94
|
+
Throws an error if an override variable or function has the same name as a
|
|
95
|
+
preset key. This is to avoid confusion when accidentally defining things in
|
|
96
|
+
overrides that are meant to be in the preset.
|
|
97
|
+
"""
|
|
98
|
+
for name in self.keys:
|
|
99
|
+
if name.startswith("%"):
|
|
100
|
+
name = name[1:]
|
|
101
|
+
|
|
102
|
+
if name in plugin_names:
|
|
103
|
+
raise self._validation_exception(
|
|
104
|
+
f"Override variable with name {name} cannot be used since it is"
|
|
105
|
+
" the name of a plugin. Perhaps you meant to define it as a plugin? If so,"
|
|
106
|
+
" indent it left to make it at the same level as overrides.",
|
|
107
|
+
exception_class=InvalidVariableNameException,
|
|
108
|
+
)
|
|
109
|
+
|
|
91
110
|
def ensure_variable_name_valid(self, name: str) -> None:
|
|
92
111
|
"""
|
|
93
112
|
Ensures the variable name does not collide with any entry variables or built-in functions.
|
ytdl_sub/config/preset.py
CHANGED
|
@@ -194,6 +194,8 @@ class Preset(_PresetShell):
|
|
|
194
194
|
self.plugins: PresetPlugins = self._validate_and_get_plugins()
|
|
195
195
|
self.overrides = self._validate_key(key="overrides", validator=Overrides, default={})
|
|
196
196
|
|
|
197
|
+
self.overrides.ensure_variable_names_not_a_plugin(plugin_names=PRESET_KEYS)
|
|
198
|
+
|
|
197
199
|
VariableValidation(
|
|
198
200
|
downloader_options=self.downloader_options,
|
|
199
201
|
output_options=self.output_options,
|
|
@@ -11,9 +11,6 @@ from ytdl_sub.entries.script.variable_types import Variable
|
|
|
11
11
|
from ytdl_sub.script.functions import Functions
|
|
12
12
|
from ytdl_sub.script.utils.name_validation import is_valid_name
|
|
13
13
|
|
|
14
|
-
# TODO: use this
|
|
15
|
-
SUBSCRIPTION_ARRAY = "subscription_array"
|
|
16
|
-
|
|
17
14
|
|
|
18
15
|
class SubscriptionVariables:
|
|
19
16
|
@staticmethod
|
|
@@ -163,7 +160,7 @@ class OverrideHelpers:
|
|
|
163
160
|
True if the override name itself is valid. False otherwise.
|
|
164
161
|
"""
|
|
165
162
|
if name.startswith("%"):
|
|
166
|
-
|
|
163
|
+
name = name[1:]
|
|
167
164
|
|
|
168
165
|
return is_valid_name(name=name)
|
|
169
166
|
|
|
@@ -11,8 +11,7 @@ presets:
|
|
|
11
11
|
|
|
12
12
|
# Set the default date_range to 2 months
|
|
13
13
|
overrides:
|
|
14
|
-
|
|
15
|
-
only_recent_date_range: "{date_range}"
|
|
14
|
+
only_recent_date_range: "2months"
|
|
16
15
|
|
|
17
16
|
#############################################################################
|
|
18
17
|
# Only Recent
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
ytdl_sub/__init__.py,sha256=
|
|
1
|
+
ytdl_sub/__init__.py,sha256=cdZqzupWymxgWAF-4wR4cAFNKmoSp7g8EBpmKBos62I,73
|
|
2
2
|
ytdl_sub/main.py,sha256=4Rf9wXxSKW7IPnWqG5YtTZ814PjP1n9WtoFDivaainE,1004
|
|
3
3
|
ytdl_sub/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
ytdl_sub/cli/entrypoint.py,sha256=XXjUH4HiOP_BB2ZA_bNcyt5-o6YLAdZmj0EP3xtOtD8,9496
|
|
@@ -12,8 +12,8 @@ ytdl_sub/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
12
12
|
ytdl_sub/config/config_file.py,sha256=SQtVrMIUq2z3WwJVOed4y84JBMQ8aa4pbiBB0Y-YY4M,2781
|
|
13
13
|
ytdl_sub/config/config_validator.py,sha256=W1dvQD8wI7VOmGOHyaliu8DC6HOjfoGsgUw2MURTZOM,9797
|
|
14
14
|
ytdl_sub/config/defaults.py,sha256=NTwzlKDkks1LDGNjFMxh91fw5E6T6d_zGsCwODNYJxo,1152
|
|
15
|
-
ytdl_sub/config/overrides.py,sha256=
|
|
16
|
-
ytdl_sub/config/preset.py,sha256=
|
|
15
|
+
ytdl_sub/config/overrides.py,sha256=oOMrxXSfmNciooLEUM3-GmBzuPhFNZk-2lv4sjPP-u0,9814
|
|
16
|
+
ytdl_sub/config/preset.py,sha256=kVT81J1yfTRthYIOBeHVk_WUrdvr_2mqyY3qUpHWKjQ,8602
|
|
17
17
|
ytdl_sub/config/preset_options.py,sha256=PBinBBRLTaO4B5Q9bW2WUHAd0-x8fVIUqodOIm-py-c,14207
|
|
18
18
|
ytdl_sub/config/plugin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
19
19
|
ytdl_sub/config/plugin/plugin.py,sha256=ugUyDnjLKcBy7lOpTbVKaGSuUMvzyyQx3DIcbv3eTkQ,4721
|
|
@@ -42,7 +42,7 @@ ytdl_sub/entries/script/function_scripts.py,sha256=iPIgTpIzXv5PRnfG8gi42zP6YKUIG
|
|
|
42
42
|
ytdl_sub/entries/script/variable_definitions.py,sha256=dz4znpZ4op4ALtnYw2vy7ePW6z76A6TI994BFlBaOmo,43561
|
|
43
43
|
ytdl_sub/entries/script/variable_types.py,sha256=6urKgOIOKYjScM5yZu-gF8sYi1HaVrTwaYJkJJg9hi8,9826
|
|
44
44
|
ytdl_sub/entries/variables/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
45
|
-
ytdl_sub/entries/variables/override_variables.py,sha256=
|
|
45
|
+
ytdl_sub/entries/variables/override_variables.py,sha256=LjWtora5FT9hSka3COP6RySBdpQ39ogiwbJgE-Z_X5Y,5923
|
|
46
46
|
ytdl_sub/plugins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
47
47
|
ytdl_sub/plugins/audio_extract.py,sha256=3S8xdL-UkOcfPcNfEebXBzSbSu2fpO3Q_wt8OQIH5HA,5445
|
|
48
48
|
ytdl_sub/plugins/chapters.py,sha256=SWvHtEfVCh7K8OugKUWOWn2TTqdUbpFabbcBGsYpRHc,14495
|
|
@@ -66,7 +66,7 @@ ytdl_sub/plugins/internal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
|
|
|
66
66
|
ytdl_sub/plugins/internal/view.py,sha256=XDPCsTmchcZPYDyV7kPDeDRVm87_gjBS15q4otYCsJU,1963
|
|
67
67
|
ytdl_sub/prebuilt_presets/__init__.py,sha256=Iv0ysQsR8B9__ZzzYORPOTnFTOAmHsAWEB0dFc2RBog,988
|
|
68
68
|
ytdl_sub/prebuilt_presets/helpers/__init__.py,sha256=GPG1cfShC65A6wWLlgKvvXfqTKcZmksI9Av17EdARTw,146
|
|
69
|
-
ytdl_sub/prebuilt_presets/helpers/download_deletion_options.yaml,sha256=
|
|
69
|
+
ytdl_sub/prebuilt_presets/helpers/download_deletion_options.yaml,sha256=M_qGKXPvKjmstJ56eK6pfZHp7pG5xlOypD4S6fm98lA,1360
|
|
70
70
|
ytdl_sub/prebuilt_presets/helpers/filter_duration.yaml,sha256=mIY97aHdNJfZyfcfpMtK3bF7HHjp0Z6cMRz7L9DFCUU,998
|
|
71
71
|
ytdl_sub/prebuilt_presets/helpers/filter_keywords.yaml,sha256=UM9rj3DzthmwV0TAFLT3S3wNlbhMAjfd-OHJwqSWu_k,2395
|
|
72
72
|
ytdl_sub/prebuilt_presets/helpers/media_quality.yaml,sha256=rehgyah_IdtqQ3aZBbYOyUqPffX2ZKlDieg_kXAmBQA,2055
|
|
@@ -158,9 +158,9 @@ ytdl_sub/validators/string_select_validator.py,sha256=KFXNKWX2J80WGt08m5gVYphPMH
|
|
|
158
158
|
ytdl_sub/validators/validators.py,sha256=X9AkECdngEXcME_C25njHaOjtqbfEJMED2eG9Qy3UPs,9352
|
|
159
159
|
ytdl_sub/ytdl_additions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
160
160
|
ytdl_sub/ytdl_additions/enhanced_download_archive.py,sha256=Lsc0wjHdx9d8dYJCskZYAUGDAQ_QzQ-_xbQlyrBSzfk,24884
|
|
161
|
-
ytdl_sub-2025.12.
|
|
162
|
-
ytdl_sub-2025.12.
|
|
163
|
-
ytdl_sub-2025.12.
|
|
164
|
-
ytdl_sub-2025.12.
|
|
165
|
-
ytdl_sub-2025.12.
|
|
166
|
-
ytdl_sub-2025.12.
|
|
161
|
+
ytdl_sub-2025.12.26.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
162
|
+
ytdl_sub-2025.12.26.dist-info/METADATA,sha256=hB82wE5QX_hTh9FYboKqmkk_w9u66oFT1IxPl6f7R6M,51420
|
|
163
|
+
ytdl_sub-2025.12.26.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
164
|
+
ytdl_sub-2025.12.26.dist-info/entry_points.txt,sha256=K3T5235NlAI-WLmHCg5tzLZHqc33OLN5IY5fOGc9t10,48
|
|
165
|
+
ytdl_sub-2025.12.26.dist-info/top_level.txt,sha256=6z-JWazl6jXspC2DNyxOnGnEqYyGzVbgcBDoXfbkUhI,9
|
|
166
|
+
ytdl_sub-2025.12.26.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|