ytdl-sub 2025.12.26__py3-none-any.whl → 2025.12.30__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/script/script.py +16 -15
- {ytdl_sub-2025.12.26.dist-info → ytdl_sub-2025.12.30.dist-info}/METADATA +1 -1
- {ytdl_sub-2025.12.26.dist-info → ytdl_sub-2025.12.30.dist-info}/RECORD +8 -8
- {ytdl_sub-2025.12.26.dist-info → ytdl_sub-2025.12.30.dist-info}/WHEEL +0 -0
- {ytdl_sub-2025.12.26.dist-info → ytdl_sub-2025.12.30.dist-info}/entry_points.txt +0 -0
- {ytdl_sub-2025.12.26.dist-info → ytdl_sub-2025.12.30.dist-info}/licenses/LICENSE +0 -0
- {ytdl_sub-2025.12.26.dist-info → ytdl_sub-2025.12.30.dist-info}/top_level.txt +0 -0
ytdl_sub/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__pypi_version__ = "2025.12.
|
|
1
|
+
__pypi_version__ = "2025.12.30";__local_version__ = "2025.12.30+344753c"
|
ytdl_sub/script/script.py
CHANGED
|
@@ -307,10 +307,9 @@ class Script:
|
|
|
307
307
|
|
|
308
308
|
def _get_unresolved_output_filter(
|
|
309
309
|
self,
|
|
310
|
-
unresolved: Dict[Variable, SyntaxTree],
|
|
311
310
|
output_filter: Set[str],
|
|
312
311
|
unresolvable: Set[Variable],
|
|
313
|
-
) ->
|
|
312
|
+
) -> Set[str]:
|
|
314
313
|
"""
|
|
315
314
|
When an output filter is applied, only a subset of variables that the filter
|
|
316
315
|
depends on need to be resolved.
|
|
@@ -331,7 +330,7 @@ class Script:
|
|
|
331
330
|
unresolvable=unresolvable,
|
|
332
331
|
)
|
|
333
332
|
|
|
334
|
-
return
|
|
333
|
+
return subset_to_resolve
|
|
335
334
|
|
|
336
335
|
def _resolve(
|
|
337
336
|
self,
|
|
@@ -367,18 +366,21 @@ class Script:
|
|
|
367
366
|
|
|
368
367
|
unresolvable: Set[Variable] = {Variable(name) for name in (unresolvable or {})}
|
|
369
368
|
unresolved_filter = set(resolved.keys()).union(unresolvable)
|
|
370
|
-
unresolved: Dict[Variable, SyntaxTree] = {
|
|
371
|
-
Variable(name): ast
|
|
372
|
-
for name, ast in self._variables.items()
|
|
373
|
-
if Variable(name) not in unresolved_filter
|
|
374
|
-
}
|
|
375
369
|
|
|
376
370
|
if output_filter:
|
|
377
|
-
unresolved =
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
371
|
+
unresolved = {
|
|
372
|
+
Variable(name): self._variables[name]
|
|
373
|
+
for name in self._get_unresolved_output_filter(
|
|
374
|
+
output_filter=output_filter,
|
|
375
|
+
unresolvable=unresolvable,
|
|
376
|
+
)
|
|
377
|
+
}
|
|
378
|
+
else:
|
|
379
|
+
unresolved = {
|
|
380
|
+
Variable(name): ast
|
|
381
|
+
for name, ast in self._variables.items()
|
|
382
|
+
if Variable(name) not in unresolved_filter
|
|
383
|
+
}
|
|
382
384
|
|
|
383
385
|
while unresolved:
|
|
384
386
|
unresolved_count: int = len(unresolved)
|
|
@@ -556,8 +558,7 @@ class Script:
|
|
|
556
558
|
).output
|
|
557
559
|
finally:
|
|
558
560
|
for name in variable_definitions.keys():
|
|
559
|
-
|
|
560
|
-
del self._variables[name]
|
|
561
|
+
self._variables.pop(name, None)
|
|
561
562
|
|
|
562
563
|
def get(self, variable_name: str) -> Resolvable:
|
|
563
564
|
"""
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
ytdl_sub/__init__.py,sha256
|
|
1
|
+
ytdl_sub/__init__.py,sha256=-TEMMN5C78roSqtIzCzV1QpBG296lmhcvghcr997QKY,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
|
|
@@ -93,7 +93,7 @@ ytdl_sub/prebuilt_presets/tv_show/tv_show_by_date.yaml,sha256=0OgIOzxSPNVqwcZnL6
|
|
|
93
93
|
ytdl_sub/prebuilt_presets/tv_show/tv_show_collection.yaml,sha256=XCtt4i4-zAgyfh-p4SXSGd0FI56lWCrPOMmB6mdf-AE,238393
|
|
94
94
|
ytdl_sub/script/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
95
95
|
ytdl_sub/script/parser.py,sha256=30SOHkEFi0rxiW_IrC1w6WzPKuyIf766zYEVHDsndtg,21898
|
|
96
|
-
ytdl_sub/script/script.py,sha256=
|
|
96
|
+
ytdl_sub/script/script.py,sha256=S-H6rYt9lCcxda9tPsElomf48kzCbGwJkdPcTIFahmA,23993
|
|
97
97
|
ytdl_sub/script/script_output.py,sha256=5SIamnI-1D3xMA0qQzjf9xrIy8j6BVhGCKrl_Q1d2M8,1381
|
|
98
98
|
ytdl_sub/script/functions/__init__.py,sha256=rzl6O5G0IEqFYHQECIM9bRvcuQj-ytC_p-Xl2TTa6j0,2932
|
|
99
99
|
ytdl_sub/script/functions/array_functions.py,sha256=yg9rcZP67-aVzhu4oZZzUu3-AHiHltbQDWEs8GW1DJ4,7193
|
|
@@ -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.30.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
162
|
+
ytdl_sub-2025.12.30.dist-info/METADATA,sha256=iJlju-U5_fduOC8r1k8UBrMMR-i5cvyucuGJj-85ciA,51420
|
|
163
|
+
ytdl_sub-2025.12.30.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
164
|
+
ytdl_sub-2025.12.30.dist-info/entry_points.txt,sha256=K3T5235NlAI-WLmHCg5tzLZHqc33OLN5IY5fOGc9t10,48
|
|
165
|
+
ytdl_sub-2025.12.30.dist-info/top_level.txt,sha256=6z-JWazl6jXspC2DNyxOnGnEqYyGzVbgcBDoXfbkUhI,9
|
|
166
|
+
ytdl_sub-2025.12.30.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|