Closed GoogleCodeExporter closed 9 years ago
Suggestion on how to implement: For each "ShowItem", add a list of strings that
hold the alternate names. When looking for a missing episode's file, as well
as checking for the show name, also check for these new alternate names.
This will involve:
- Add the necessary List<String> (or whatever) variable to ShowItem, to hold alternate names in addition to the default of the show name itself.
- Add the necessary code to load/save this, in ShowItem's constructor and WriteXMLSettings function.
- Add UI stuff to the "AddEditShow" dialog, perhaps in a new tab, to show and maintain this list. Maybe do something using a GridView, like the RSS URL list in the Preferences dialog.
- In TVDoc.cs, in the function "FindMissingEp" (around line 466, where it says "matched = Regex.Match(...."), it currently compares against a "simplified" version of the show's name. This will need to be changed to check against each of the possible variations of the show's name, i.e.: what it has now, plus the list of alternate names.
The "simplified" version of the name helps ignore things like upper/lower case,
words like "the", and other punctuation variations.
The logic for checking for alternate show names does not need to be added to
the RenameAndMissingCheck function (which checks your media library), as files
in a show's folder are assumed to belong to that show, and they are not checked
for the show name being in them.
For extra credit :)... As the alternate names are likely to include the show's
year, it would also be helpful to modify the function
"SEFinderSimplifyFilename" in TVDoc.cs as well. Pass in, and do what it does
using the full list of show names.
The SEFinderSimplifyFilename function removes potentially confusing things from
a filename before trying to detect the season and episode number. For example,
for the show "King (2011)", a filename "King (2011) S01E03.avi" will be
simplified to "S01E03", which is the string that is processed to find the
season and episode number.
One occasional problem is a year being interpreted as a season/episode
(depending on the filename processors the user has defined), or shows with
numbers in their name, e.g. "24".
Original comment by tvren...@tvrename.com
on 11 May 2011 at 12:44
Here is a patch file that implements the basic functionality detailed above.
There is no account for year functionality as described.
This patch also includes changes to add a new command line option that will
prevent rename scans taking place as I like the option of only doing renames
when I can see what it is going to change (too many people make strange updates
to the database!!).
Original comment by fra...@cfmail.co.uk
on 21 Jul 2011 at 4:08
Attachments:
At present the remove alias does not always remove all selected aliases from
the list. I will udpate when I have the time.
Original comment by fra...@cfmail.co.uk
on 21 Jul 2011 at 4:10
Updated version of the patch with the Alias list issues sorted. It will now
remove all selected items and double clicking on an entry will also move it
back to the text box for editing.
Original comment by fra...@cfmail.co.uk
on 22 Jul 2011 at 10:50
Attachments:
And exe for those that want a copy.
Original comment by fra...@cfmail.co.uk
on 22 Jul 2011 at 10:51
Attachments:
This patch appears to do the job perfectly. I am using the exe.
Thankyou very much.
Original comment by abnormal...@gmail.com
on 28 Jul 2011 at 11:42
Patch incorporated into TVRename 2.2.0b10, thanks!
Original comment by tvren...@tvrename.com
on 7 Oct 2011 at 10:40
Original issue reported on code.google.com by
tvren...@tvrename.com
on 10 Sep 2009 at 12:22