updates
This commit is contained in:
parent
488e666d79
commit
59cfe3f4ea
3 changed files with 23 additions and 1 deletions
|
|
@ -5,6 +5,18 @@ Static Variables
|
|||
Subscription Variables
|
||||
----------------------
|
||||
|
||||
subscription_array
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
For subscriptions in the form of
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
"Subscription Name":
|
||||
- "https://url1.com/..."
|
||||
- "https://url2.com/..."
|
||||
|
||||
Store all values into an array named ``subscription_array``.
|
||||
|
||||
subscription_has_download_archive
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Returns True if the subscription has any entries recorded in a download archive. False
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ def test_subscription_logs_write_to_file(
|
|||
keep_successful_logs: bool,
|
||||
match: List[str],
|
||||
):
|
||||
subscription_names = ["Rick Astley", "Michael Jackson", "Eric Clapton"]
|
||||
subscription_names = ["Rick Astley", "Michael Jackson", "Eric Clapton", "Guns N' Roses"]
|
||||
if match:
|
||||
subscription_names = ["Rick Astley", "Michael Jackson"]
|
||||
num_runs = 2
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import json
|
||||
import re
|
||||
from contextlib import contextmanager
|
||||
from pathlib import Path
|
||||
|
|
@ -470,6 +471,15 @@ def test_advanced_tv_show_subscriptions(
|
|||
== "https://www.youtube.com/playlist?list=PLi8V8UemxeG6lo5if5H5g5EbsteELcb0_"
|
||||
)
|
||||
|
||||
assert overrides.apply_formatter(overrides.dict["subscription_array"]) == json.dumps(
|
||||
[
|
||||
"https://www.youtube.com/@gardeningwithciscoe4430",
|
||||
"https://www.youtube.com/playlist?list=PLi8V8UemxeG6lo5if5H5g5EbsteELcb0_",
|
||||
"https://www.youtube.com/playlist?list=PLsJlQSR-KjmaQqqJ9jq18cF6XXXAR4kyn",
|
||||
"https://www.youtube.com/watch?v=2vq-vPubS5I",
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
def test_music_subscriptions(default_config: ConfigFile, music_subscriptions_path: Path):
|
||||
subs = Subscription.from_file_path(
|
||||
|
|
|
|||
Loading…
Reference in a new issue