count
This commit is contained in:
parent
678301ad78
commit
35824ec593
2 changed files with 11 additions and 0 deletions
|
|
@ -474,6 +474,7 @@ class MultiUrlDownloader(SourcePlugin[MultiUrlValidator]):
|
||||||
{
|
{
|
||||||
v.ytdl_sub_input_url: url,
|
v.ytdl_sub_input_url: url,
|
||||||
v.ytdl_sub_input_url_index: idx,
|
v.ytdl_sub_input_url_index: idx,
|
||||||
|
v.ytdl_sub_input_url_count: len(self.collection.urls.list),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -758,6 +758,14 @@ class YtdlSubVariableDefinitions(ABC):
|
||||||
"""
|
"""
|
||||||
return IntegerVariable(variable_name="ytdl_sub_input_url_index", definition="{ %int(0) }")
|
return IntegerVariable(variable_name="ytdl_sub_input_url_index", definition="{ %int(0) }")
|
||||||
|
|
||||||
|
@cached_property
|
||||||
|
def ytdl_sub_input_url_count(self: "VariableDefinitions") -> IntegerVariable:
|
||||||
|
"""
|
||||||
|
:description:
|
||||||
|
The total number of input URLs as defined in the subscription.
|
||||||
|
"""
|
||||||
|
return IntegerVariable(variable_name="ytdl_sub_input_url_count", definition="{ %int(0) }")
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def download_index(self: "VariableDefinitions") -> IntegerVariable:
|
def download_index(self: "VariableDefinitions") -> IntegerVariable:
|
||||||
"""
|
"""
|
||||||
|
|
@ -1108,6 +1116,8 @@ class VariableDefinitions(
|
||||||
self.chapters,
|
self.chapters,
|
||||||
self.sponsorblock_chapters,
|
self.sponsorblock_chapters,
|
||||||
self.ytdl_sub_input_url,
|
self.ytdl_sub_input_url,
|
||||||
|
self.ytdl_sub_input_url_index,
|
||||||
|
self.ytdl_sub_input_url_count,
|
||||||
}
|
}
|
||||||
|
|
||||||
@cache
|
@cache
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue