summaryrefslogtreecommitdiffstats
path: root/pyload/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins')
-rw-r--r--pyload/plugins/Account.py4
-rw-r--r--pyload/plugins/Crypter.py8
2 files changed, 8 insertions, 4 deletions
diff --git a/pyload/plugins/Account.py b/pyload/plugins/Account.py
index 26a6124b6..ed0769fb4 100644
--- a/pyload/plugins/Account.py
+++ b/pyload/plugins/Account.py
@@ -95,9 +95,9 @@ class Account(Base):
return self.config_data[option].input.default_value
def setConfig(self, option, value):
- """ Sets a config value for this account instance or global plugin config """
+ """ Sets a config value for this account instance. Modifying the global values is not allowed. """
if option not in self.config_data:
- return Base.setConfig(self, option, value)
+ return
value = from_string(value, self.config_data[option].input.type)
# given value is the default value and does not need to be saved at all
diff --git a/pyload/plugins/Crypter.py b/pyload/plugins/Crypter.py
index d14960308..d780ad805 100644
--- a/pyload/plugins/Crypter.py
+++ b/pyload/plugins/Crypter.py
@@ -2,6 +2,7 @@
from traceback import print_exc
+from pyload.Api import LinkStatus
from pyload.utils import to_list, has_method, uniqify
from pyload.utils.fs import exists, remove, fs_encode
from pyload.utils.packagetools import parseNames
@@ -12,10 +13,9 @@ from Base import Base, Retry
class Package:
""" Container that indicates that a new package should be created """
- def __init__(self, name, urls=None, folder=None):
+ def __init__(self, name=None, urls=None):
self.name = name
self.urls = urls if urls else []
- self.folder = folder
# nested packages
self.packs = []
@@ -23,6 +23,10 @@ class Package:
def addURL(self, url):
self.urls.append(url)
+ def addLink(self, url, name, status, size):
+ # TODO: allow to add urls with known information
+ pass
+
def addPackage(self, pack):
self.packs.append(pack)