Closed GoogleCodeExporter closed 8 years ago
Another thing I just noticed:
It applies only to imdb lookup:
The.Movie.2013 in imdb creates this search query
http://www.imdb.com/search/title?title=The+Movie+2013 (correct) but due to 2013
imdb returns no results. Removing the year returns the correct results.
This happens only to imdb (the same query in TMDb returns the correct result)
so it is probably their fault.
Just thought I should mention this, too, in case there is a workaround.
Original comment by ckana...@gmail.com
on 30 Aug 2013 at 1:39
LATER EDIT:
imdb is not the only one with problems when the year is used in the search
string, I'm afraid..
Perhaps a regular expression to extract the year is also needed..
Original comment by ckana...@gmail.com
on 30 Aug 2013 at 2:12
1) You have a pattern part of the corresponding regexp in the plugin's
conf.php. Try to correct it on your way.
See variable $partsToRemove.
For example, for checking spaces as dots this variable must be started as
$partsToRemove = "([ \.-]...
instead
$partsToRemove = "([\.-]...
2) Sorry, but i haven't plan to realize title stripping separately for each
source. All sources use one implementation.
Original comment by novik65
on 30 Aug 2013 at 2:48
Of course....
I wasn't suggesting to use different implementations for different sites.
I am asking to consider stripping the year for all of them, since most sites I
tested return bad results when the year is passed in the query.... But not a
big deal anyway!!! Thanks!!!
Original comment by ckana...@gmail.com
on 30 Aug 2013 at 3:35
>I am asking to consider stripping the year for all of them
For that try to replace fragment of variable
|DD5.1)
to the
|DD5.1|(19\d\d)|20[0|1]\d)
Original comment by novik65
on 30 Aug 2013 at 5:06
Thanks a lot!
I was trying with something like /\d{4}\b/ and wouldn't work
(19|20)[0-9][0-9], however, did the trick..I was ready to commit it and
realized that you had answered again.. So tried yours and works too..
But since yours works, too, I will replace mine with yours (and won't commit to
svn, since I imagine that if you wanted this change you would have commited it
yourself... :) )
Original comment by ckana...@gmail.com
on 30 Aug 2013 at 6:40
Original issue reported on code.google.com by
ckana...@gmail.com
on 30 Aug 2013 at 1:30