summaryrefslogtreecommitdiffstats
path: root/pyload
diff options
context:
space:
mode:
Diffstat (limited to 'pyload')
-rw-r--r--pyload/config/Parser.py20
1 files changed, 2 insertions, 18 deletions
diff --git a/pyload/config/Parser.py b/pyload/config/Parser.py
index 64ce6b10e..faba6b191 100644
--- a/pyload/config/Parser.py
+++ b/pyload/config/Parser.py
@@ -8,12 +8,6 @@ from shutil import copy
from traceback import print_exc
from utils import chmod
-# ignore these plugin configs, mainly because plugins were wiped out
-IGNORE = (
- "FreakshareNet", "SpeedManager", "ArchiveTo", "ShareCx", ('hooks', 'UnRar'),
- 'EasyShareCom', 'FlyshareCz'
- )
-
CONF_VERSION = 1
class ConfigParser:
@@ -30,7 +24,7 @@ class ConfigParser:
type:
desc:
}
- desc:
+ desc:
}
@@ -49,8 +43,6 @@ class ConfigParser:
self.readConfig()
- self.deleteOldPlugins()
-
def checkVersion(self, n=0):
"""determines if config need to be copied"""
@@ -128,7 +120,7 @@ class ConfigParser:
for line in config:
comment = line.rfind("#")
if line.find(":", comment) < 0 > line.find("=", comment) and comment > 0 and line[comment - 1].isspace():
- line = line.rpartition("#") # removes comments
+ line = line.rpartition("#") # removes comments
if line[1]:
line = line[0]
else:
@@ -348,14 +340,6 @@ class ConfigParser:
del self.plugin[name]
- def deleteOldPlugins(self):
- """ remove old plugins from config """
-
- for name in IGNORE:
- if name in self.plugin:
- del self.plugin[name]
-
-
class Section:
"""provides dictionary like access for configparser"""