Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this really the best solution for regexing? #40

Open
Deanosim opened this issue Sep 7, 2022 · 0 comments
Open

Is this really the best solution for regexing? #40

Deanosim opened this issue Sep 7, 2022 · 0 comments

Comments

@Deanosim
Copy link

Deanosim commented Sep 7, 2022

I'm trying to download from https://roosterteeth.com/series/rwby but in Sonarr the episode names are like this The Shining Beacon (1) The Shining Beacon (2) and on the site it's The Shining Beacon The Shining Beacon, Pt.2
the best solution I could come up with is

    regex:
      sonarr:
        match: '[A-Z][a-z]* [A-Z][a-z]* [A-Z][a-z]* \(1\)'
        replace: 'The Shining Beacon'
        match: '[A-Z][a-z]* [A-Z][a-z]* [A-Z][a-z]* \(2\)'
        replace: 'The Shining Beacon, Pt.2'
        match: '[A-Z][a-z]* [A-Z][a-z]* [A-Z][a-z]* \(1\)'
        replace: 'The First Step'
        match: '[A-Z][a-z]* [A-Z][a-z]* [A-Z][a-z]* \(2\)'
        replace: 'The First Step, Pt.2'

But it seems like a pain, have to enter the episode name for every episode, tried entering regex in the replace Field and it just printed the regex
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant