2012-12-04, 04:12
Hi all,
I think most will know that the IMDB changes have broken the ability to find movies correctly when scraping. Since this is open source I downloaded the source and fixed it locally. I don't see any obvious ways for me to get this fix back into the branch (I don't feel like installing GIT and jumping through all the hoops right now), but I thought I'd share the fix as it's very easy.
1) Download the source from the GIT repository as a zip, get NuGet installed in VS 2010 if you don't already, then get NuGet.exe where it needs to be (build errors will make it obvious).
2) Change line 854 in clsScareIMDB.vb to: D = HTML.IndexOf("<table class=""findList"">")
3) Change line 95 in clsScrapeIMDB.vb to: Private Const TABLE_PATTERN As String = "<table.*?>\n?(.*?)</table>"
4) Rebuild (Release build)
5) Copy over whatever configs or database settings you want to the EmberMM-Deploy directory, start it up, and use as normal. Should work fine with the exception that it'll always prompt you to choose the imdb entry which is something I prefer anyway.
Is this a 100% fix? Oh hell no.
Is it a good workaround to hold most people over until someone else does a proper bug fix? Yep.
If anyone has the time, it would probably be best to move the regex strings and HTML search strings to a config file for easier changes in the future.
Good luck!
-A
I think most will know that the IMDB changes have broken the ability to find movies correctly when scraping. Since this is open source I downloaded the source and fixed it locally. I don't see any obvious ways for me to get this fix back into the branch (I don't feel like installing GIT and jumping through all the hoops right now), but I thought I'd share the fix as it's very easy.
1) Download the source from the GIT repository as a zip, get NuGet installed in VS 2010 if you don't already, then get NuGet.exe where it needs to be (build errors will make it obvious).
2) Change line 854 in clsScareIMDB.vb to: D = HTML.IndexOf("<table class=""findList"">")
3) Change line 95 in clsScrapeIMDB.vb to: Private Const TABLE_PATTERN As String = "<table.*?>\n?(.*?)</table>"
4) Rebuild (Release build)
5) Copy over whatever configs or database settings you want to the EmberMM-Deploy directory, start it up, and use as normal. Should work fine with the exception that it'll always prompt you to choose the imdb entry which is something I prefer anyway.
Is this a 100% fix? Oh hell no.
Is it a good workaround to hold most people over until someone else does a proper bug fix? Yep.
If anyone has the time, it would probably be best to move the regex strings and HTML search strings to a config file for easier changes in the future.
Good luck!
-A