ytdl-sub/tests/unit/script
Jesse Bannon 10cb82a69a
[BACKEND] %contains_any function, list + dict support for tilda overrides mode (#1054)
Adds the function `%contains_any`, and list support in a tilda override subscription. The end-goal of these features are to more easily add a title exclude list, like so:

```
__preset__:
  filter_exclude:
    - "{%contains_any( %lower(title), exclude_title_strings )}"

...
Jellyfin TV Show by Date:
  ~History Documentaries:
    url: "https://..."
    exclude_title_strings:
      - "trailer"
      - "preview"
```

A proper prebuilt preset or built-in functionality will follow this change.
2024-09-20 09:23:22 -07:00
..
functions [BACKEND] %contains_any function, list + dict support for tilda overrides mode (#1054) 2024-09-20 09:23:22 -07:00
types [BUGFIX] Do not run all branches of if functions in scripts (#999) 2024-06-03 15:02:59 -07:00
__init__.py [BACKEND][HUGE] Function Support in variable syntax (#838) 2023-12-18 16:08:15 -08:00
conftest.py [BACKEND][HUGE] Function Support in variable syntax (#838) 2023-12-18 16:08:15 -08:00
test_parser.py [DEV] Escapable curly braces (#955) 2024-04-01 22:40:56 -07:00
test_script.py [FEATURE] Automatically handle playlists ordered in reverse (#948) 2024-04-01 04:24:41 -07:00