ytdl-sub/tests/e2e
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
..
bandcamp [FEATURE] Prebuilt Music Videos (#787) 2023-10-28 00:12:22 -07:00
plugins [BREAKING CHANGE] Remove regex plugin (#1067) 2024-09-29 08:41:09 -07:00
soundcloud [BUGFIX] Use proper extractor key for download archive (#840) 2023-12-14 17:04:03 -08:00
youtube [FEATURE] Allow YAML maps and lists in overrides, convert to script format (#956) 2024-06-02 20:02:48 -07:00
__init__.py e2e tests wip 2022-04-28 04:43:47 +00:00
conftest.py [FEATURE] Add throttle_protection plugin (#799) 2023-11-05 08:23:12 -08:00