Posted by: rick.ca
« on: April 08, 2012, 11:26:48 pm »Welcome to the forum.
The following works for the example given...
If filenames vary from that form, you may have to revise this so it's more flexible, or add another regex to match the exceptions.
There may still be problems if the episode names are incorrect, but you may select any number of episodes within a season and run a plugin. You may find it more effective to update a season before running the file scanner. All the scanner has to do then is match the files to the episode information already imported. If you choose to use that approach, I recommend updating the series record with TVDb before doing anything else. That will add all the seasons and known episodes to date—with correct titles. That makes it easier for the scanner to match files and for another plugin like IMDb to match episodes.
The following works for the example given...
Code: [Select]
(?i)^.*\\(?P<title>.*) - (s|\b)(?P<season>[0-9]{1,2})x(?P<episode>[0-9]{2,3}) - (?P<eptitle>.*)\..{3,4}
If filenames vary from that form, you may have to revise this so it's more flexible, or add another regex to match the exceptions.
Quote
In order to get any show information I currently need to select each episode title while updating from plugins one episode at a time
There may still be problems if the episode names are incorrect, but you may select any number of episodes within a season and run a plugin. You may find it more effective to update a season before running the file scanner. All the scanner has to do then is match the files to the episode information already imported. If you choose to use that approach, I recommend updating the series record with TVDb before doing anything else. That will add all the seasons and known episodes to date—with correct titles. That makes it easier for the scanner to match files and for another plugin like IMDb to match episodes.