summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/container/TXT.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugin/container/TXT.py')
-rw-r--r--pyload/plugin/container/TXT.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/pyload/plugin/container/TXT.py b/pyload/plugin/container/TXT.py
index 9a3df8bf1..75940f55d 100644
--- a/pyload/plugin/container/TXT.py
+++ b/pyload/plugin/container/TXT.py
@@ -23,15 +23,15 @@ class TXT(Container):
def decrypt(self, pyfile):
try:
- encoding = codecs.lookup(self.getConfig("encoding")).name
+ encoding = codecs.lookup(self.getConfig('encoding')).name
except Exception:
encoding = "utf-8"
- file = fs_encode(pyfile.url.strip())
- txt = codecs.open(file, 'r', encoding)
- curPack = "Parsed links from %s" % pyfile.name
- packages = {curPack:[],}
+ fs_filename = fs_encode(pyfile.url.strip())
+ txt = codecs.open(fs_filename, 'r', encoding)
+ curPack = "Parsed links from %s" % pyfile.name
+ packages = {curPack:[],}
for link in txt.readlines():
link = link.strip()
@@ -57,9 +57,9 @@ class TXT(Container):
if not value:
packages.pop(key, None)
- if self.getConfig("flush"):
+ if self.getConfig('flush'):
try:
- txt = open(file, 'wb')
+ txt = open(fs_filename, 'wb')
txt.close()
except IOError: