midgetspy/Sick-Beard — pull request #527 by thezoggy (2012-11-13 23:56:16+00:00)
Title: TVDB update and fixes

* Treat episodes on TVDB with the airdate of `0000-00-00` the same as if it was not set to anything.
> This resolves tv.py throwing: `Malformed air date retrieved from TVDB`
> This resolves tvrage.py throwing: `Error encountered while checking TVRage<->TVDB sync: year is out of range`

* Upgrade _tvdb_api_ from 1.7.2 -> 1.8.2
> Should resolve cache issues with regards to users that are unable to write to the cache, depending on how the 'tmp' permissions are set up.

* Correctly sort shows on homepage that have 0 ep downloaded. (0/# sorts lower than 1/#)

* Fix **SB-API** `show.addnew` and `show.addexisting` when adding a show from tvdbid that contain no name.
> As this resulted in the show creation folder called `None`.

* Fix **SB-API** `sb.searchTVDB` call on returning incorrect data for a tvdbid that contains no name.
> Report the failure to add a show to sb because it has no episode/season data rather than saying it has no name and to delete the .nfo file.