From b8c6393409321eda8fe17a75a3f003acbe545342 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 26 Aug 2012 22:43:14 +0200 Subject: [PATCH] Quality and filesize fix in release list. --- couchpotato/core/plugins/movie/static/movie.js | 4 ++-- couchpotato/core/plugins/searcher/main.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/couchpotato/core/plugins/movie/static/movie.js b/couchpotato/core/plugins/movie/static/movie.js index 4ddac680..f8af5c09 100644 --- a/couchpotato/core/plugins/movie/static/movie.js +++ b/couchpotato/core/plugins/movie/static/movie.js @@ -417,8 +417,8 @@ var ReleaseAction = new Class({ }).adopt( new Element('span.name', {'text': self.get(release, 'name'), 'title': self.get(release, 'name')}), new Element('span.status', {'text': status.identifier, 'class': 'release_status '+status.identifier}), - new Element('span.quality', {'text': quality.label || 'n/a'}), - new Element('span.size', {'text': (self.get(release, 'size'))}), + new Element('span.quality', {'text': quality.get('label') || 'n/a'}), + new Element('span.size', {'text': release.info['size'] ? Math.floor(self.get(release, 'size')) : 'n/a'}), new Element('span.age', {'text': self.get(release, 'age')}), new Element('span.score', {'text': self.get(release, 'score')}), new Element('span.provider', {'text': self.get(release, 'provider')}), diff --git a/couchpotato/core/plugins/searcher/main.py b/couchpotato/core/plugins/searcher/main.py index 01358ee8..afabeae8 100644 --- a/couchpotato/core/plugins/searcher/main.py +++ b/couchpotato/core/plugins/searcher/main.py @@ -150,7 +150,7 @@ class Searcher(Plugin): for info in nzb: try: - if not isinstance(nzb[info], (str, unicode, int, long)): + if not isinstance(nzb[info], (str, unicode, int, long, float)): continue rls_info = ReleaseInfo(