ytdl-sub/tests
Jesse Bannon 1b57d79c8f
[BREAKING CHANGE] Remove regex plugin (#1067)
Regex plugin has been removed in favor of scripting. The function [regex_capture_many](https://ytdl-sub.readthedocs.io/en/latest/config_reference/scripting/scripting_functions.html#regex-capture-many) has been created to replicate the plugin's behavior. See the following converted example:

`regex, now deprecated`
```
    regex:
      from:
        title:
          match:
            - ".*? - (.*)"  # Captures 'Song' from 'Emily Hopkins - Some - Song'
          capture_group_names:
            - "captured_track_title"
          capture_group_defaults:
            - "{title}"
    overrides:
      track_title: "{captured_track_title}"
```

`scripting equivalent`
```
    overrides:
      # Captures 'Song' from 'Emily Hopkins - Some - Song'
      captured_track_title: >-
        {
          %regex_capture_many(
            title,
            [ ".*? - (.*)" ],
            [ title ]
          )
        }
      track_title: "{%array_at(captured_track_title, 1)}"
```

## Motivation:
Regex was a unique plugin that added custom variables based on user input. This made the backend need to support both `overrides` and 'plugin user variables'. Removing `regex` plugin will consolidate this logic into only `overrides`, making it much easier to maintain.
2024-09-29 08:41:09 -07:00
..
e2e [BREAKING CHANGE] Remove regex plugin (#1067) 2024-09-29 08:41:09 -07:00
resources [DEV] Unit test filter plugin (#1066) 2024-09-26 11:54:15 -07:00
unit [DEV] Unit test filter plugin (#1066) 2024-09-26 11:54:15 -07:00
__init__.py Add channel as kodi tv show e2e test (#15) 2022-04-29 11:09:32 -07:00
conftest.py [FEATURE] Toggleable plugin field enable for all dict-based plugins (#897) 2024-01-11 00:40:07 -08:00
expected_download.py [DEV] Cross platform test fixture helpers (#1058) 2024-09-20 14:58:07 -07:00
expected_transaction_log.py [DEV] Test-case for subscription with existing download archive (#819) 2023-11-16 23:37:24 -08:00
resources.py [DEV] Test-case for subscription with existing download archive (#819) 2023-11-16 23:37:24 -08:00