ytdl-sub/docs/source
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
..
_static [DOCS] Tooling to auto-generate custom sphinx docs (#849) 2023-12-28 22:39:59 -08:00
config_reference [BREAKING CHANGE] Remove regex plugin (#1067) 2024-09-29 08:41:09 -07:00
faq [DOCS] Add Plex Agent Sources Information (#969) 2024-04-25 23:12:08 -07:00
guides [DOCS] Fix the command syntax on the linux install page for executing the program (#1027) 2024-07-24 21:20:16 -07:00
prebuilt_presets [FEATURE] Simplify TV Show Collection Preset (#953) 2024-03-30 22:04:45 -07:00
conf.py [DOCS] Various doc cleanups (#928) 2024-02-17 08:53:06 -08:00
deprecation_notices.rst [BREAKING CHANGE] Remove regex plugin (#1067) 2024-09-29 08:41:09 -07:00
index.rst [DOCS] Update links to reflect doc-upgrade (#858) 2023-12-27 11:07:11 -08:00
introduction.rst [DOCS] Begin complete overhaul of readthedocs (#847) 2023-12-27 10:27:40 -08:00
requirements.txt [BACKEND] Remove old format for video_tags, music_tags, download_strategy (#899) 2024-01-15 00:04:32 -08:00
usage.rst [DOCS] Update Usage page (#883) 2024-01-08 16:20:08 -08:00