ytdl-sub 2026.1.24__py3-none-any.whl → 2026.1.27__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/preset_options.py +4 -1
- ytdl_sub/subscriptions/subscription_download.py +2 -2
- ytdl_sub/subscriptions/subscription_ytdl_options.py +2 -2
- ytdl_sub/validators/string_formatter_validators.py +16 -13
- {ytdl_sub-2026.1.24.dist-info → ytdl_sub-2026.1.27.dist-info}/METADATA +1 -1
- {ytdl_sub-2026.1.24.dist-info → ytdl_sub-2026.1.27.dist-info}/RECORD +11 -11
- {ytdl_sub-2026.1.24.dist-info → ytdl_sub-2026.1.27.dist-info}/WHEEL +1 -1
- {ytdl_sub-2026.1.24.dist-info → ytdl_sub-2026.1.27.dist-info}/entry_points.txt +0 -0
- {ytdl_sub-2026.1.24.dist-info → ytdl_sub-2026.1.27.dist-info}/licenses/LICENSE +0 -0
- {ytdl_sub-2026.1.24.dist-info → ytdl_sub-2026.1.27.dist-info}/top_level.txt +0 -0
ytdl_sub/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__pypi_version__ = "2026.01.
|
|
1
|
+
__pypi_version__ = "2026.01.27";__local_version__ = "2026.01.27+d37945d"
|
|
@@ -62,7 +62,10 @@ class YTDLOptions(UnstructuredOverridesDictFormatterValidator):
|
|
|
62
62
|
Materializes the entire ytdl-options dict from OverrideStringFormatters into
|
|
63
63
|
native python.
|
|
64
64
|
"""
|
|
65
|
-
out = {
|
|
65
|
+
out = {
|
|
66
|
+
key: overrides.apply_formatter(val, expected_type=object)
|
|
67
|
+
for key, val in self.dict.items()
|
|
68
|
+
}
|
|
66
69
|
if "cookiefile" in out:
|
|
67
70
|
if not FileHandler.is_file_existent(out["cookiefile"]):
|
|
68
71
|
raise ValidationException(
|
|
@@ -155,8 +155,8 @@ class SubscriptionDownload(BaseSubscription, ABC):
|
|
|
155
155
|
keep_max_files: Optional[int] = None
|
|
156
156
|
if self.output_options.keep_max_files:
|
|
157
157
|
# validated it can be cast to int within the validator
|
|
158
|
-
keep_max_files =
|
|
159
|
-
self.
|
|
158
|
+
keep_max_files = self.overrides.apply_formatter(
|
|
159
|
+
self.output_options.keep_max_files, expected_type=int
|
|
160
160
|
)
|
|
161
161
|
|
|
162
162
|
if date_range_to_keep or self.output_options.keep_max_files is not None:
|
|
@@ -94,8 +94,8 @@ class SubscriptionYTDLOptions:
|
|
|
94
94
|
self._enhanced_download_archive.working_ytdl_file_path
|
|
95
95
|
)
|
|
96
96
|
if self._preset.output_options.keep_max_files:
|
|
97
|
-
keep_max_files =
|
|
98
|
-
self.
|
|
97
|
+
keep_max_files = self._overrides.apply_formatter(
|
|
98
|
+
self._preset.output_options.keep_max_files, expected_type=int
|
|
99
99
|
)
|
|
100
100
|
if keep_max_files > 0:
|
|
101
101
|
# yt-dlp has a weird bug with max_downloads=1, set to 2 for safe measure
|
|
@@ -214,7 +214,22 @@ class OverridesDictFormatterValidator(DictFormatterValidator):
|
|
|
214
214
|
_key_validator = OverridesStringFormatterValidator
|
|
215
215
|
|
|
216
216
|
|
|
217
|
+
class AnyFormatterValidator(StringFormatterValidator):
|
|
218
|
+
"""
|
|
219
|
+
Applies no post-processing.
|
|
220
|
+
"""
|
|
221
|
+
|
|
222
|
+
def post_process(self, resolved: Any) -> Any:
|
|
223
|
+
return resolved
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
class AnyOverridesFormatterValidator(AnyFormatterValidator, OverridesStringFormatterValidator):
|
|
227
|
+
pass
|
|
228
|
+
|
|
229
|
+
|
|
217
230
|
class UnstructuredDictFormatterValidator(DictFormatterValidator):
|
|
231
|
+
_key_validator = AnyFormatterValidator
|
|
232
|
+
|
|
218
233
|
def __init__(self, name, value):
|
|
219
234
|
# Convert the unstructured-ness into a script
|
|
220
235
|
if isinstance(value, dict):
|
|
@@ -223,19 +238,7 @@ class UnstructuredDictFormatterValidator(DictFormatterValidator):
|
|
|
223
238
|
|
|
224
239
|
|
|
225
240
|
class UnstructuredOverridesDictFormatterValidator(UnstructuredDictFormatterValidator):
|
|
226
|
-
_key_validator =
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
def to_variable_dependency_format_string(script: Script, parsed_format_string: SyntaxTree) -> str:
|
|
230
|
-
"""
|
|
231
|
-
Create a dummy format string that contains all variable deps as a string.
|
|
232
|
-
"""
|
|
233
|
-
dummy_format_string = ""
|
|
234
|
-
for var in parsed_format_string.variables:
|
|
235
|
-
dummy_format_string += f"{{ {var.name} }}"
|
|
236
|
-
for variable_dependency in script._variables[var.name].variables:
|
|
237
|
-
dummy_format_string += f"{{ {variable_dependency.name} }}"
|
|
238
|
-
return dummy_format_string
|
|
241
|
+
_key_validator = AnyOverridesFormatterValidator
|
|
239
242
|
|
|
240
243
|
|
|
241
244
|
def _validate_formatter(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
ytdl_sub/__init__.py,sha256=
|
|
1
|
+
ytdl_sub/__init__.py,sha256=tg6U09ZZaGqPoQ1Rr2BFQHd8waMzrbI8W2m9vb1rnlo,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
|
|
@@ -14,7 +14,7 @@ ytdl_sub/config/config_validator.py,sha256=W1dvQD8wI7VOmGOHyaliu8DC6HOjfoGsgUw2M
|
|
|
14
14
|
ytdl_sub/config/defaults.py,sha256=NTwzlKDkks1LDGNjFMxh91fw5E6T6d_zGsCwODNYJxo,1152
|
|
15
15
|
ytdl_sub/config/overrides.py,sha256=kwSsvVACKYq5qjnuFFXrWDfT2DJph9n3XC6uzKFGlVA,9786
|
|
16
16
|
ytdl_sub/config/preset.py,sha256=Msacs60TyDWWzSlvkI3PurRil5vWOGQFK__Ev2HG1l0,9887
|
|
17
|
-
ytdl_sub/config/preset_options.py,sha256=
|
|
17
|
+
ytdl_sub/config/preset_options.py,sha256=Nl1E148Asi2tak6dNqoXgyKdAtf3-Xa2sERrh9wjiJY,14209
|
|
18
18
|
ytdl_sub/config/plugin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
19
19
|
ytdl_sub/config/plugin/plugin.py,sha256=gsjTcB8cOO097FhJYJD5zPlfEvoPzL6K5VAAqkM3gYc,4740
|
|
20
20
|
ytdl_sub/config/plugin/plugin_mapping.py,sha256=xx9K2EReIU7zdPlogjvIkowy8J2R4TEhMNJyR7_1aE0,7846
|
|
@@ -123,9 +123,9 @@ ytdl_sub/script/utils/type_checking.py,sha256=9EKWE1mWPOlmXWiWTZw-bCRV0FlYk22tNK
|
|
|
123
123
|
ytdl_sub/subscriptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
124
124
|
ytdl_sub/subscriptions/base_subscription.py,sha256=sZH0U9Kp4jOMFR04sC97DFW7GNo7qWDUn23n0-G8gBk,7814
|
|
125
125
|
ytdl_sub/subscriptions/subscription.py,sha256=wfzOYVkzmsSH1KYbAMRi6Nhrb2pRaXdhILle7H0hcas,5127
|
|
126
|
-
ytdl_sub/subscriptions/subscription_download.py,sha256
|
|
126
|
+
ytdl_sub/subscriptions/subscription_download.py,sha256=2774G3psa38MBhWjrLYtUmV9g_SelVCHctzd7avhxOU,18204
|
|
127
127
|
ytdl_sub/subscriptions/subscription_validators.py,sha256=tSN8YPLkIYXQbmWQ3M6U7xHpNjPn8rtNR9wSLIE2kzM,13606
|
|
128
|
-
ytdl_sub/subscriptions/subscription_ytdl_options.py,sha256=
|
|
128
|
+
ytdl_sub/subscriptions/subscription_ytdl_options.py,sha256=0ifSdwM4uZTfUv0vox7g4hHvLksMJqQiKyw-rgm_Ayk,7576
|
|
129
129
|
ytdl_sub/thread/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
130
130
|
ytdl_sub/thread/log_entries_downloaded_listener.py,sha256=7gPJSyvbM0W9XjliHgzmWFGKsM6ngAqp92m_YA2D4hI,2218
|
|
131
131
|
ytdl_sub/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -153,14 +153,14 @@ ytdl_sub/validators/regex_validator.py,sha256=jS8No927eg3zcpYEOv5g0gykePV0DCZaIr
|
|
|
153
153
|
ytdl_sub/validators/source_variable_validator.py,sha256=ziG4PVIyzj5ky-Okle0FB2d2P5DWs3-jYF81hMvBTEQ,922
|
|
154
154
|
ytdl_sub/validators/strict_dict_validator.py,sha256=RduK_3pOEbEQQuugAUeKKqM0Tv5x2vxSSb7vROyo2vQ,1661
|
|
155
155
|
ytdl_sub/validators/string_datetime.py,sha256=GpbBiZH1FHTMeo0Zk134-uMdTMk2JD3Re3TnvuPx2OU,1125
|
|
156
|
-
ytdl_sub/validators/string_formatter_validators.py,sha256=
|
|
156
|
+
ytdl_sub/validators/string_formatter_validators.py,sha256=d4laCipImcfrZlEYbXaJkvr5iRojsDZIIlBSt4w6L4c,12395
|
|
157
157
|
ytdl_sub/validators/string_select_validator.py,sha256=KFXNKWX2J80WGt08m5gVYphPMHYxhHlgfcoXAQMq6zw,1086
|
|
158
158
|
ytdl_sub/validators/validators.py,sha256=JC3-c9fSrozFADUY5jqZEhXpM2q3sfserlooQxT2DK8,9133
|
|
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-2026.1.
|
|
162
|
-
ytdl_sub-2026.1.
|
|
163
|
-
ytdl_sub-2026.1.
|
|
164
|
-
ytdl_sub-2026.1.
|
|
165
|
-
ytdl_sub-2026.1.
|
|
166
|
-
ytdl_sub-2026.1.
|
|
161
|
+
ytdl_sub-2026.1.27.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
162
|
+
ytdl_sub-2026.1.27.dist-info/METADATA,sha256=nsFBbAj260N3f2PvCku_WuSumbbSvABPTLFx-iYCtDk,51420
|
|
163
|
+
ytdl_sub-2026.1.27.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
164
|
+
ytdl_sub-2026.1.27.dist-info/entry_points.txt,sha256=K3T5235NlAI-WLmHCg5tzLZHqc33OLN5IY5fOGc9t10,48
|
|
165
|
+
ytdl_sub-2026.1.27.dist-info/top_level.txt,sha256=6z-JWazl6jXspC2DNyxOnGnEqYyGzVbgcBDoXfbkUhI,9
|
|
166
|
+
ytdl_sub-2026.1.27.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|