2017-02-06, 23:51
(2017-02-03, 19:54)bobrap Wrote: Hey, Rob,It's not number in the title causing this issue.
Just tried the TV side and it seems IMDB strikes again. Some episodes with a number in the title (Madam Secretary - S02E22 - Render Safe (2).nfo) generate this error:
Called with: [stage: 22b5a13]
System.InvalidCastException: Conversion from string "" to type 'Boolean' is not valid. ---> System.FormatException: Input string was not in a correct format.
at Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat)
at Microsoft.VisualBasic.CompilerServices.Conversions.ToBoolean(String Value)
--- End of inner exception stack trace ---
at Microsoft.VisualBasic.CompilerServices.Conversions.ToBoolean(String Value)
at Media_Companion.Form1.epGetImdbRatingOmdbapi(TvEpisode& ep)
at Media_Companion.Form1.GetEpRating(TvEpisode& tvep, String Rating, String Votes)
at Media_Companion.Form1.TV_EpisodeScraper(List`1 ListOfShows, Boolean manual)
Deselect Series and episode ratings and votes...episodes scrape correctly.
OMDBApi has been getting denial of service attacks. This message from their site
http://www.omdbapi.com/ Wrote:Attention Users!
02/04/17 - Error 503/The service is unavailable! I KNOW! I've been working throughout the night trying to track down the bot/script/attack causing this issue, it's not normal activity as someone decided it was a good idea to open over 50+ concurrent connections and spam 300+ million requests an hour. Unfortunately the majority of features available to me to prevent these sorts of attacks are browser security checks (which are currently enabled so you can read this message) this is only temporary as I'm aware it breaks the majority of API implementations. Sorry for the inconvenience and I'll be working nonstop to get this resolved ASAP.
Plus, when I try and manually get the data for the series Madam Secretary, it fails as if OMDBApi has no data.
And, I found a bug in my code which was the main cause of the Oops message. This will be fixed in the next release.