Skip to content

Commit

Permalink
OMDb API is already returning a JSON object, there is no point trying…
Browse files Browse the repository at this point in the history
… to parse it
  • Loading branch information
gabrielweyer committed Apr 6, 2015
1 parent 42e0c5f commit 13c6b06
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions js/ratings.js
Expand Up @@ -644,9 +644,7 @@ function getRating(title, year, addArgs, callback) {
'result': false,
};
$.get(getIMDBAPI(title, year), function(res) {
omdbRes = parseAPIResponse(res, {
'Response': 'False',
});
omdbRes = res;

$.ajax({
'type': 'POST',
Expand Down

0 comments on commit 13c6b06

Please sign in to comment.