2016-09-17, 16:07
(2016-09-17, 12:52)user321 Wrote:(2016-09-16, 21:30)dmdsoftware Wrote:(2016-09-16, 20:39)user321 Wrote: Can this not be interpreted from the parent folder name? Maybe the logic could be something like..
If parent folder contains (date) -and subfolder doesn't contain series format, it's a movie?
Only filenames are considered at this time. You want the folder path to be used?
Well, any method that would be able to identify the following variants as a movie:
When a user has renamed their movie:
(when a user has renamed their movie)Code:Movie Name (YYYY).ext
When a user has not renamed their movie, and left it according to 'Scene rules':
Code:Movie.Name.YEAR.<720p/1080p>.BluRay.x264.-GROUP
If the current regex match is for (date), then how about:
Code:$filename -match '\(\d{4}\)|\.\d{4}\.'
I believe this would match
(date)
or
.date.
Of course, if a user has not renamed their tv series, then it might also contain '.date.', but tv series will also matchCode:S\d{1,2}E\d{1,2}
So
Code:$filename -match '\(\d{4}\)|\.\d{4}\.' -and $filename -notmatch S\d{1,2}E\d{1,2}
it's a movie?
also, excluding -trailer.ext and .srt files from having .strm files produced would be good. It will save Kodi scanning them (even though Kodi will ignore them).
Thank you for the request. They will be implemented. Any other scraping suggestions?