wololodev / d2mt

Competitive coverage on the go!
37 stars 11 forks source link

Youtube scraping json containing null field #14

Closed Ke3rthi closed 10 years ago

Ke3rthi commented 10 years ago

Yesterday i got a null entry in the youtube scraping list, so app kept crashing, i personally handled it, but here is the issue if u want to handle it as well ^_^

MasterOdin commented 10 years ago

Do you happen to know which youtube channel it was that had this?

Ke3rthi commented 10 years ago

Couldnt figure out which channel it was, since the scrap data i get from the API is all mixed up .... image

looked something like this, so i couldnt find the channel it belonged to ... this is just an example btw ^_^

Ke3rthi commented 10 years ago

Also the html class "textRight" in vod section is always 0 for some reason, it was working fine till recently, but atm all youtube vod(s) show 0 views. ;)

MasterOdin commented 10 years ago

Fixed it. Somehow the variable case got changed on my local copy and I guess I uploaded it or something. Who knows.

Additionally, added error checking for preventing nulls being put into the list as still not sure what would cause that.

Yeah, I realized after asking that it would be hard to figure out. If it crops up again, hopefully I'm online when it happens so I can debug it better.

Ke3rthi commented 10 years ago

thumbsup working fine now ^_^