Skip to content

Commit

Permalink
0.4.20
Browse files Browse the repository at this point in the history
  • Loading branch information
GammaC0de committed Feb 20, 2020
1 parent b65ab7b commit 1f29cd1
Show file tree
Hide file tree
Showing 84 changed files with 948 additions and 569 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Expand Up @@ -66,7 +66,7 @@
cog.outl("release = '%s'" % ".".join(v))
]]]"""
version = '0.4'
release = '0.4.9'
release = '0.4.20'
# [[[end]]]


Expand Down
4 changes: 2 additions & 2 deletions locale/cli.pot
Expand Up @@ -6,8 +6,8 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: pyLoad 0.4.9\n"
"Report-Msgid-Bugs-To: 'bugs@pyload.org'\n"
"Project-Id-Version: pyLoad 0.4.20\n"
"Report-Msgid-Bugs-To: 'bugs@pyload.net'\n"
"POT-Creation-Date: 2011-12-07 19:21+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
Expand Down
6 changes: 3 additions & 3 deletions locale/core.pot
Expand Up @@ -6,8 +6,8 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: pyLoad 0.4.9\n"
"Report-Msgid-Bugs-To: 'bugs@pyload.org'\n"
"Project-Id-Version: pyLoad 0.4.20\n"
"Report-Msgid-Bugs-To: 'bugs@pyload.net'\n"
"POT-Creation-Date: 2011-12-07 19:21+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
Expand Down Expand Up @@ -484,7 +484,7 @@ msgid "*** New pyLoad Version %s available ***"
msgstr ""

#: module/plugins/hooks/UpdateManager.py:94
msgid "*** Get it here: http://pyload.org/download ***"
msgid "*** Get it here: http://pyload.net/download ***"
msgstr ""

#: module/plugins/hooks/UpdateManager.py:97
Expand Down
4 changes: 2 additions & 2 deletions locale/django.pot
Expand Up @@ -6,8 +6,8 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: pyLoad 0.4.9\n"
"Report-Msgid-Bugs-To: 'bugs@pyload.org'\n"
"Project-Id-Version: pyLoad 0.4.20\n"
"Report-Msgid-Bugs-To: 'bugs@pyload.net'\n"
"POT-Creation-Date: 2011-12-07 19:21+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
Expand Down
4 changes: 2 additions & 2 deletions locale/gui.pot
Expand Up @@ -6,8 +6,8 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: pyLoad 0.4.9\n"
"Report-Msgid-Bugs-To: 'bugs@pyload.org'\n"
"Project-Id-Version: pyLoad 0.4.20\n"
"Report-Msgid-Bugs-To: 'bugs@pyload.net'\n"
"POT-Creation-Date: 2011-12-07 19:21+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
Expand Down
4 changes: 2 additions & 2 deletions locale/setup.pot
Expand Up @@ -6,8 +6,8 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: pyLoad 0.4.9\n"
"Report-Msgid-Bugs-To: 'bugs@pyload.org'\n"
"Project-Id-Version: pyLoad 0.4.20\n"
"Report-Msgid-Bugs-To: 'bugs@pyload.net'\n"
"POT-Creation-Date: 2011-12-07 19:21+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
Expand Down
3 changes: 2 additions & 1 deletion module/Api.py
Expand Up @@ -321,7 +321,8 @@ def addPackage(self, name, links, dest=Destination.Queue):
else:
folder = ""

folder = folder.replace("http://", "").replace(":", "").replace("/", "_").replace("\\", "_")
folder = folder.replace("http://", "").replace("https://", "").rstrip("/") \
.replace(":", "").replace("/", "_").replace("\\", "_")

pid = self.core.files.addPackage(name, folder, dest)

Expand Down
2 changes: 1 addition & 1 deletion module/ConfigParser.py
Expand Up @@ -258,7 +258,7 @@ def cast(self, typ, value):
return value
elif typ in ("str", "file", "folder"):
try:
return value.encode("utf8")
return value.decode("utf8")
except:
return value
else:
Expand Down
5 changes: 5 additions & 0 deletions module/PyFile.py
Expand Up @@ -283,3 +283,8 @@ def setProgress(self, value):
if not value == self.progress:
self.progress = value
self.notifyChange()

def setName(self, value):
if not value == self.name:
self.name = value
self.notifyChange()
2 changes: 1 addition & 1 deletion module/gui/connector.py
Expand Up @@ -16,7 +16,7 @@
@author: mkaay
"""

SERVER_VERSION = "0.4.9"
SERVER_VERSION = "0.4.20"

from time import sleep
from uuid import uuid4 as uuid
Expand Down
5 changes: 3 additions & 2 deletions module/network/Browser.py
Expand Up @@ -80,11 +80,12 @@ def abortDownloads(self):
self.dl.abort = True

def httpDownload(self, url, filename, size=0, get={}, post={}, ref=True, cookies=True, chunks=1, resume=False,
progressNotify=None, disposition=False):
status_notify=None, disposition=False):
""" this can also download ftp """
self._size = 0
self.dl = HTTPDownload(url, filename, size=size, get=get, post=post, referer=self.lastEffectiveURL if ref else None,
cj=self.cj if cookies else None, bucket=self.bucket, options=self.options, progressNotify=progressNotify, disposition=disposition)
cj=self.cj if cookies else None, bucket=self.bucket, options=self.options,
status_notify=status_notify, disposition=disposition)
name = self.dl.download(chunks, resume)
self._size = self.dl.size

Expand Down

0 comments on commit 1f29cd1

Please sign in to comment.