Komet/MediaElch — pull request #353 by ArgelErx (2014-03-31 22:03:33+00:00)
Title: Possible fix for skipt or malformed search results returned by the IMDB scraper.

1. IMDB title search results of the IMDB scraper differ from search results on http://www.imdb.com/. In some cases the selected search result will not lead to an update of the movie information.
2. IMDB id search returns malformed movie title.

Tested with
- http://www.imdb.com/find?s=tt&ttype=ft&ref_=fn_ft&q=Oblivion
- http://www.imdb.com/find?s=tt&ttype=ft&ref_=fn_ft&q=Redemption
- Latest MediaElch (https://github.com/Komet/MediaElch/tree/master)

Results with "(I)", "(II)" ... in the name are skipt in title search.
Results with "(I)", "(II)" ... in the name lead to a wrongly parsed movie title in id search.
Results with "aka" are skipt in title search.

Reason: Greedy match for id or movie title, multi match regular expression and no match for above cases in regualar expression.

This leads to a wrongly match IMDB id, which contains HTML tags, which in consequence can not be used to update the movie.
This leads to a wrongly match movie title, which contains HTML tags and line breaks.