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

Better regex for determining shows #115

Open
danieljin opened this issue Jul 13, 2024 · 2 comments
Open

Better regex for determining shows #115

danieljin opened this issue Jul 13, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@danieljin
Copy link

danieljin commented Jul 13, 2024

Feature Description
Change logic for detecting tv shows in config.xml

Problem and Motivation
Regex for shows is lacking as it does handle certain naming conventions.

Possible Solution
Fix the logic for has_episodes, to match more cases of episode names, even when they aren't in sequence.

Additional Context
I am coming from rclone_rd, which handled categorizing shows/movies well. Some non-English shows use different formats. Sometimes torrents are one per episode, not all in one torrent.

The regex rclone_rd used was as follows:

Shows: (?i)(S[0-9]{2}|SEASON|COMPLETE|[^457a-z\W\s]-[0-9]+)
Movies: (?i)(19|20)([0-9]{2} ?\.?)

Everything else would be categorized in folder called default. This logic can be found here.

@danieljin danieljin added the enhancement New feature or request label Jul 13, 2024
@danieljin danieljin changed the title Better regex for determining ongoing shows Better regex for determining shows Jul 13, 2024
@skeisdv2
Copy link

Dont forget to add slashes ( / ) on both ends

@yowmamasita
Copy link
Contributor

@skeisdv2 Go's regex uses that format

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

No branches or pull requests

3 participants