summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/Movie2kTo.py
diff options
context:
space:
mode:
authorGravatar Christopher <4Christopher@gmx.de> 2013-03-18 10:36:52 +0100
committerGravatar Christopher <4Christopher@gmx.de> 2013-03-18 10:36:52 +0100
commited22eec779531674fb5f770c5fa2a8b632f552c4 (patch)
tree7f3866a525e0a552b7941249e66922a5f61ba635 /module/plugins/crypter/Movie2kTo.py
parentMerge branch 'stable' of 4Christopher.github.com:4Christopher/pyload into stable (diff)
downloadpyload-ed22eec779531674fb5f770c5fa2a8b632f552c4.tar.xz
Movie2kTo: Added setting for quality in the folder name.
You set if you want the quality output be part of the folder name.
Diffstat (limited to 'module/plugins/crypter/Movie2kTo.py')
-rw-r--r--module/plugins/crypter/Movie2kTo.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/module/plugins/crypter/Movie2kTo.py b/module/plugins/crypter/Movie2kTo.py
index 47257f2dc..e0e923abb 100644
--- a/module/plugins/crypter/Movie2kTo.py
+++ b/module/plugins/crypter/Movie2kTo.py
@@ -9,8 +9,9 @@ class Movie2kTo(Crypter):
__name__ = 'Movie2kTo'
__type__ = 'container'
__pattern__ = r'http://(?:www\.)?movie2k\.to/(.*)\.html'
- __version__ = '0.3'
+ __version__ = '0.4'
__config__ = [('accepted_hosters', 'str', 'List of accepted hosters', 'Xvidstage, '),
+ ('dir_quality', 'bool', 'Show the quality of the footage in the folder name', 'True'),
('whole_season', 'bool', 'Download whole season', 'False'),
('everything', 'bool', 'Download everything', 'False'),
('firstN', 'int', 'Download the first N files for each episode. The first file is probably all you will need.', '1')]
@@ -58,6 +59,7 @@ class Movie2kTo(Crypter):
def qStat(self):
if len(self.q) == 0: return ''
+ if not self.getConfig('dir_quality'): return ''
return (' (Average quality: %d, min: %d, max: %d, %s, max (all hosters): %d)'
% (sum(self.q) / float(len(self.q)), min(self.q), max(self.q), self.q, self.max_q))
def qStatReset(self):