First version, grabs recently added movies/tvshows

This commit is contained in:
2013-11-09 17:09:52 +00:00
parent e62e450a10
commit 171538856a
313 changed files with 71922 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
var utility = angular.module('utility', []);
utility.filter('pad', function() {
return function(input, length, symbol) {
n = parseInt(input, 10);
l = parseInt(length, 10);
symbol = symbol || ' ';
if (isNaN(n) || isNaN(l)) {
return n;
}
n = ''+n;
while(n.length < l) {
n = symbol + n;
}
return n;
}
});