Browse Source

Remove prefix in movie list

pull/84/head
Ruud 13 years ago
parent
commit
841e67ad2b
  1. 10
      couchpotato/core/plugins/movie/static/movie.js

10
couchpotato/core/plugins/movie/static/movie.js

@ -115,12 +115,18 @@ var Movie = new Class({
}).pop()
if(title)
return title.title
return self.getUnprefixedTitle(title.title)
else if(titles.length > 0)
return titles[0].title
return self.getUnprefixedTitle(titles[0].title)
return 'Unknown movie'
},
getUnprefixedTitle: function(t){
if(t.substr(0, 4).toLowerCase() == 'the ')
t = t.substr(4) + ', The';
return t;
},
slide: function(direction, el){
var self = this;

Loading…
Cancel
Save