Skip to content

Commit

Permalink
clean up fanart by dropping unused art
Browse files Browse the repository at this point in the history
  • Loading branch information
garfield69 committed Mar 23, 2017
1 parent 6542660 commit fbbb268
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion fanart.cache.json

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions js/services/FanartService.js
Expand Up @@ -12,6 +12,12 @@ DuckieTV.factory('FanartService', ["$q", "$http", function($q, $http) {

function storeInDB(json, entity) {
var art = entity || new Fanart();
// remove unused art
['characterart', 'seasonbanner', 'seasonthumb', 'clearart'].map(function(item) {
if (item in json) {
delete json[item];
}
});
art.TVDB_ID = json.thetvdb_id;
art.json = json;
art.poster = service.getTrendingPoster(json);
Expand Down

0 comments on commit fbbb268

Please sign in to comment.