krypt2nite Wrote:Download this XML if you want to try some new source detection I'm playing with.
I've been playing with source detection as well and i'm trying to find a way to do the matching without having to add the source tag to the filenames of all my movies.
So how about doing some matching based on file extension?
For DVD's that are in VIDEO_TS format, it's easy:
substring(listitem.filename,.ifo)
Same goes for Blu-Ray:
substring(listitem.filename,.m2ts)
And for HD-DVD:
substring(listitem.filename,.evo)
Iso files are of course a lot trickier, since they can contain any of the above.
But i think it's safe to say if the content is not HD, we can assume it'a a DVD:
substring(listitem.filename,.iso) + ![substring(listitem.studio,720 | substring(listitem.studio,1080]
For TV-Shows i'm using this to detect if the source is HD-TV:
[substring(listitem.filename,.avi) | substring(listitem.filename,.mkv] + [substring(listitem.director,720 | substring(listitem.director,1080]
This may not all be 100% accurate (so comments very are welcome), but it sure saves a lot of time renaming all of those movies.