diff --git a/flixrate.js b/flixrate.js
index f9d540b..d2f87fe 100644
--- a/flixrate.js
+++ b/flixrate.js
@@ -50,7 +50,7 @@
window.console.debug("No hover div detected");
}
- $box = $('.jawBoneOpenContainer').find('.meta');
+ $box = $('.jawBoneOpenContainer').length?$('.jawBoneOpenContainer').find('.meta'):$('.jawBone').find('.meta');
}
if($box.find('.imdb-rating').length > 0){
@@ -71,7 +71,7 @@
'title': result.details || ''
});
$list.append(''+result.label+'');
- $list.append(''+result.rating+'/10');
+ $list.append(''+result.rating+'/10 ('+result.details+')');
$list.appendTo($box);
});
@@ -120,6 +120,7 @@
};
});
}
+
if (isDebug) {
window.console.log('queries:', queries.length);
}
@@ -158,10 +159,17 @@
$body.trigger('ratings.load', [query]);
} else {
window.console.error('Could not find any data');
+ addRating([{
+ type: 'themoviedb',
+ label: 'The Movie DB',
+ rating: '?',
+ details: '?'
+ }])
}
}
$body.on('ratings.return', function(e, data) {
+ data.results=data.results.filter(r=>r.vote_count>0)
if (data.results.length>0) {
queries = []; // we got a hit, so reset queries
if (isDebug) {
diff --git a/manifest.json b/manifest.json
index 7ceb27d..28f3726 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,7 +2,7 @@
"author": "Nils Beckmann",
"manifest_version": 2,
"name": "netflix-ratings",
- "version": "0.5.9",
+ "version": "0.6.7",
"description": "This Extension adds themoviedb.org ratings to movies whenever they can be matched.",