ytdl-sub/tests/e2e/plugins
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
..
internal [FEATURE] Process all subscriptions even if one or more error (#771) 2023-10-21 12:25:38 -07:00
__init__.py [FEATURE] Regex capture and filtering on source variables plugin (#100) 2022-07-16 23:39:46 -07:00
test_audio_extract.py [BACKEND] Only download audio when using audio_extract plugin (#902) 2024-01-18 15:00:17 -08:00
test_chapters.py [FEATURE] Prebuilt Music Videos (#787) 2023-10-28 00:12:22 -07:00
test_date_range.py [FEATURE] Toggle date_range to break or not (#904) 2024-01-18 16:23:02 -08:00
test_file_convert.py [FEATURE] Prebuilt Music Videos (#787) 2023-10-28 00:12:22 -07:00
test_match_filters.py [FEATURE] Prebuilt Music Videos (#787) 2023-10-28 00:12:22 -07:00
test_music_tags.py [FEATURE] Prebuilt Music Videos (#787) 2023-10-28 00:12:22 -07:00
test_split_by_chapters.py [BREAKING CHANGE] Remove regex plugin (#1067) 2024-09-29 08:41:09 -07:00
test_subtitles.py [FEATURE] Prebuilt Music Videos (#787) 2023-10-28 00:12:22 -07:00
test_throttle_protection.py [DEV] Partially unit test throttle protection (#1065) 2024-09-26 10:27:31 -07:00