Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix :: loadFromTVDB : Prevents corrupted data from TheTVDB #681

Merged
merged 1 commit into from
Jun 5, 2013

Conversation

Conjuro
Copy link
Contributor

@Conjuro Conjuro commented May 22, 2013

tv_shows.show_name in sickbeard.db can never be a NoneType. Patch prevents this from happening if someone has removed the seriesname attribute in the TVDB show entry.

http://www.sickbeard.com/forums/viewtopic.php?f=4&t=7249

@Conjuro
Copy link
Contributor Author

Conjuro commented May 22, 2013

Any suggestions for a good way to test it? I suppose I could stick a proxy between me and TVDB to alter the incoming data, just hoping for an easier/quicker solution.

tv_shows.show_name in sickbeard.db can never be a NoneType. Patch prevents this from happening if someone has removed the seriesname attribute in the TVDB show entry.
@Conjuro
Copy link
Contributor Author

Conjuro commented May 23, 2013

Conjuro@a6775ad#commitcomment-3272009

Thanks, @thezoggy. That does feel like a neater way of doing it. I also replaced the else with except since else can only follow an except and has the opposite effect.

Hmm. Squash and forced push removed the commit comment reference, any way of replacing commits but retaining the comment history?

@thezoggy
Copy link
Contributor

do you have a show/tvdbid that you use to test this code out with? / how did you find this issue?

@Conjuro
Copy link
Contributor Author

Conjuro commented May 23, 2013

Came across it while doing support in the forums. First one person, then another two reported the same issue. One using windows binary, one using git master also windows, and third using a different fork. Had them upload their databases and found it to be the same show (Person of Interest, tvdbid 248742) for all three. I checked the TVDB entry, but it's correct now and never went wrong in my own database, indicating it was only missing for a period less than 24 hours. I didn't question further, but I'd guess all three are in the same or at least neighboring time zones.

So far I've tested that the patch doesn't interfere with normal data, and using a custom python script that it behaves as expected. Unless someone can suggest a better way of testing, I'll try using a proxy to alter the data in real time while doing a "Force Full Update", when I get a chance.

@Conjuro
Copy link
Contributor Author

Conjuro commented May 24, 2013

I've now tested it by using a proxy to alter the SeriesName tag in the xml from thetvdb.com while using "Force Full Update". Sick Beard aborted the update and returned the proper error.

@VeNoMouS
Copy link

Nice conjuro :), re timezones, knightNZ (least i assume from his username) and myself are based in New Zealand

midgetspy added a commit that referenced this pull request Jun 5, 2013
Bugfix :: loadFromTVDB : Prevents corrupted data from TheTVDB
@midgetspy midgetspy merged commit 03371f6 into midgetspy:development Jun 5, 2013
@Conjuro Conjuro deleted the Bugfix-show_name-None branch June 7, 2013 09:56
gborri pushed a commit to gborri/Sick-Beard that referenced this pull request Aug 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants