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

Scan Directory name for Names of movies/tv shows with regex expressions #1802

Closed
Omertron opened this issue Mar 15, 2015 · 1 comment
Closed

Comments

@Omertron
Copy link
Member

Original issue 1803 created by Omertron on 2011-01-24T10:35:35.000Z:

The best way to go about this is have a conf file that lets a user make there own regex code to tell the scanner to scan the dir name rather then the file name. Example Say I have a folder structure like so
-Californication-S01
--Californication.S01E01.DVDRip.XviD
---xxx-cali101.r00
--Californication.S01E02.DVDRip.XviD
---xxx-cali102.r00

With the above example we have two problems one is yamj cant tell its tv the next is yamj cant tell what tv show it is. If we could make our own regex to do this for us it does not break yamj for the rest of the people

Using this regex

(s[0-9]{1,2}e[0-9]{1,2})|^(xxx|xxxx)-.+[0-9]{2,}.|[0-9]+x[0-9]+..+-xxx|.+.[0-9]{2,}..+-(xxx)|hdtv-xxx|hdtv..+xxxx

in my conf It would match this xxx-cali101.r00 which in turn we can then have yamj say ok the file name matches the regex string Scan the directory name of one up from the file. So it would pull Californication.S01E01.DVDRip.XviD as the name. Which you could pull the name of the show the season and episode to pass on to the scanner. There only becomes a slight problem with this is when you also want to include nfo files with said example. Two options are look for any nfo in the one up directory or match the nfo to the original xxx-cali101.r00

@Omertron
Copy link
Member Author

Comment #1 originally posted by Omertron on 2011-01-25T13:10:08.000Z:

This issue was closed by revision r2095.

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

No branches or pull requests

1 participant