SiCKRAGETV/SickRage — pull request #937 by miigotu (2014-11-23 02:51:53+00:00)
Title: Strip year from show title when adding existing shows, so show is found ...

...on TVDB. Fix processing of NFO.

These are the two fixes I created a PR for on master (sorry).

For documentation sake, it stops indexer_id and show_name from being overwritten/cleared by subsequent providers in sickbeard.metadata_provider_dict.values() after the correct provider already was found. This fixes all of the '?' in the how Title column on the massAddTable when adding shows, unless their nfo is missing the indexer key, or the nfo is missing entirely. \

NOTE: A fix should be added later so that after adding shows, the indexer key is set in existing nfo's, so that the next time the show needs to be added (db reset, reinstall, or other scenario) it is proper.

This also strips the (YEAR) off of "Showname (YEAR)" search string when adding existing shows, so that they are found in the initial search without user interaction. This fix only helps when your show folders have the year at the end and either indexer key is missing, or the nfo is missing/misread.