2015-09-03, 11:23
Hi all,
I detected an issue with the Movie Database Scraper v. 3.8.2. The overview field from the output sometimes contains null instead of a proper quoted value. The regular expression specifically looks for a value (even an empty string) within quotes, therefore while there can be many results, the actual <results> output is empty since all RegExps choke on the overview field.
TMDB Json output:
Scraper RegExp:
Fixed expression (note: all backreferences need to be updated):
Full code here: http://pastebin.com/8TxnanL4[/php]
I detected an issue with the Movie Database Scraper v. 3.8.2. The overview field from the output sometimes contains null instead of a proper quoted value. The regular expression specifically looks for a value (even an empty string) within quotes, therefore while there can be many results, the actual <results> output is empty since all RegExps choke on the overview field.
TMDB Json output:
Code:
{"page":1,"results":[{"adult":false,"backdrop_path":"/jX2jBeq0uS5h2LYpIr53eU6YJxN.jpg","genre_ids":[28,35],"id":9256,"original_language":"sv","original_title":"Kopps","overview":null,"release_date":"2003-02-06","poster_path":"/7p5Zxsre6WpYxtoGmCAB17Z8vjt.jpg","popularity":1.390565,"title":"Kopps","video":false,"vote_average":6.2,"vote_count":13}],"total_pages":1,"total_results":1}
Scraper RegExp:
Code:
<expression repeat="yes">"id":([0-9]*),"original_language":"[^"]*","original_title":"([^"]*)","overview":".*?","release_date":"([0-9]+)-.*?"title":"([^"]*)</expression>
Fixed expression (note: all backreferences need to be updated):
Code:
<expression repeat="yes">"id":([0-9]*),"original_language":"[^"]*","original_title":"([^"]*)","overview":(".*?"|null),"release_date":"([0-9]+)-.*?"title":"([^"]*)</expression>
Full code here: http://pastebin.com/8TxnanL4[/php]