We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Uplea plugin out of date (#1348 closed but still not working)
Hi,
now pyload reports failure, logs show:
26 25.04.2015 12:19:27 WARNING Download failed: ****\* | Missing HOSTER_DOMAIN
25 25.04.2015 12:19:27 INFO Download starts: ****\* 


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `module/plugins/hoster/UpleaCom.py`
Content:
```
1 # -*- coding: utf-8 -*-
2 
3 import re
4 
5 from urlparse import urljoin
6 
7 from module.plugins.internal.XFSHoster import XFSHoster, create_getInfo
8 
9 
10 class UpleaCom(XFSHoster):
11     __name__    = "UpleaCom"
12     __type__    = "hoster"
13     __version__ = "0.07"
14 
15     __pattern__ = r'https?://(?:www\.)?uplea\.com/dl/\w{15}'
16 
17     __description__ = """Uplea.com hoster plugin"""
18     __license__     = "GPLv3"
19     __authors__     = [("Redleon", None),
20                        ("GammaC0de", None)]
21 
22 
23     NAME_PATTERN = r'class="agmd size18">(?P<N>.+?)<'
24     SIZE_PATTERN = r'size14">(?P<S>[\d.,]+) (?P<U>[\w^_]+?)</span>'
25     SIZE_REPLACEMENTS = [('Ko','KB'), ('Mo','MB'), ('Go','GB')]
26 
27     OFFLINE_PATTERN = r'>You followed an invalid or expired link'
28     PREMIUM_PATTERN = r'You need to have a Premium subscription to download this file'
29 
30     LINK_PATTERN = r'"(https?://\w+\.uplea\.com/anonym/.*?)"'
31 
32     WAIT_PATTERN = r'timeText: ?([\d.]+),'
33     STEP_PATTERN = r'<a href="(/step/.+)">'
34 
35 
36     def setup(self):
37         self.multiDL = False
38         self.chunkLimit = 1
39         self.resumeDownload = True
40 
41 
42     def handleFree(self, pyfile):
43         m = re.search(self.STEP_PATTERN, self.html)
44         if m is None:
45             self.error(_("STEP_PATTERN not found"))
46 
47         self.html = self.load(urljoin("http://uplea.com/", m.group(1)))
48 
49         m = re.search(self.WAIT_PATTERN, self.html)
50         if m:
51             self.logDebug(_("Waiting %s seconds") % m.group(1))
52             self.wait(m.group(1), True)
53             self.retry()
54 
55         m = re.search(self.PREMIUM_PATTERN, self.html)
56         if m:
57             self.error(_("This URL requires a premium account"))
58 
59         m = re.search(self.LINK_PATTERN, self.html)
60         if m is None:
61             self.error(_("LINK_PATTERN not found"))
62 
63         self.link = m.group(1)
64         self.wait(15)
65 
66 
67 getInfo = create_getInfo(UpleaCom)
68
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/module/plugins/hoster/UpleaCom.py b/module/plugins/hoster/UpleaCom.py
--- a/module/plugins/hoster/UpleaCom.py
+++ b/module/plugins/hoster/UpleaCom.py
@@ -10,7 +10,7 @@
 class UpleaCom(XFSHoster):
     __name__    = "UpleaCom"
     __type__    = "hoster"
-    __version__ = "0.07"
+    __version__ = "0.08"
 
     __pattern__ = r'https?://(?:www\.)?uplea\.com/dl/\w{15}'
 
@@ -28,6 +28,7 @@
     PREMIUM_PATTERN = r'You need to have a Premium subscription to download this file'
 
     LINK_PATTERN = r'"(https?://\w+\.uplea\.com/anonym/.*?)"'
+    HOSTER_DOMAIN = "uplea.com"
 
     WAIT_PATTERN = r'timeText: ?([\d.]+),'
     STEP_PATTERN = r'<a href="(/step/.+)">'

{"golden_diff": "diff --git a/module/plugins/hoster/UpleaCom.py b/module/plugins/hoster/UpleaCom.py\n--- a/module/plugins/hoster/UpleaCom.py\n+++ b/module/plugins/hoster/UpleaCom.py\n@@ -10,7 +10,7 @@\n class UpleaCom(XFSHoster):\n     __name__    = \"UpleaCom\"\n     __type__    = \"hoster\"\n-    __version__ = \"0.07\"\n+    __version__ = \"0.08\"\n \n     __pattern__ = r'https?://(?:www\\.)?uplea\\.com/dl/\\w{15}'\n \n@@ -28,6 +28,7 @@\n     PREMIUM_PATTERN = r'You need to have a Premium subscription to download this file'\n \n     LINK_PATTERN = r'\"(https?://\\w+\\.uplea\\.com/anonym/.*?)\"'\n+    HOSTER_DOMAIN = \"uplea.com\"\n \n     WAIT_PATTERN = r'timeText: ?([\\d.]+),'\n     STEP_PATTERN = r'<a href=\"(/step/.+)\">'\n", "issue": "Uplea plugin out of date (#1348 closed but still not working)\nHi,\nnow pyload reports failure, logs show:\n26 25.04.2015 12:19:27 WARNING Download failed: ****\\* | Missing HOSTER_DOMAIN\n25 25.04.2015 12:19:27 INFO Download starts: ****\\* \n\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\n\nimport re\n\nfrom urlparse import urljoin\n\nfrom module.plugins.internal.XFSHoster import XFSHoster, create_getInfo\n\n\nclass UpleaCom(XFSHoster):\n    __name__    = \"UpleaCom\"\n    __type__    = \"hoster\"\n    __version__ = \"0.07\"\n\n    __pattern__ = r'https?://(?:www\\.)?uplea\\.com/dl/\\w{15}'\n\n    __description__ = \"\"\"Uplea.com hoster plugin\"\"\"\n    __license__     = \"GPLv3\"\n    __authors__     = [(\"Redleon\", None),\n                       (\"GammaC0de\", None)]\n\n\n    NAME_PATTERN = r'class=\"agmd size18\">(?P<N>.+?)<'\n    SIZE_PATTERN = r'size14\">(?P<S>[\\d.,]+) (?P<U>[\\w^_]+?)</span>'\n    SIZE_REPLACEMENTS = [('Ko','KB'), ('Mo','MB'), ('Go','GB')]\n\n    OFFLINE_PATTERN = r'>You followed an invalid or expired link'\n    PREMIUM_PATTERN = r'You need to have a Premium subscription to download this file'\n\n    LINK_PATTERN = r'\"(https?://\\w+\\.uplea\\.com/anonym/.*?)\"'\n\n    WAIT_PATTERN = r'timeText: ?([\\d.]+),'\n    STEP_PATTERN = r'<a href=\"(/step/.+)\">'\n\n\n    def setup(self):\n        self.multiDL = False\n        self.chunkLimit = 1\n        self.resumeDownload = True\n\n\n    def handleFree(self, pyfile):\n        m = re.search(self.STEP_PATTERN, self.html)\n        if m is None:\n            self.error(_(\"STEP_PATTERN not found\"))\n\n        self.html = self.load(urljoin(\"http://uplea.com/\", m.group(1)))\n\n        m = re.search(self.WAIT_PATTERN, self.html)\n        if m:\n            self.logDebug(_(\"Waiting %s seconds\") % m.group(1))\n            self.wait(m.group(1), True)\n            self.retry()\n\n        m = re.search(self.PREMIUM_PATTERN, self.html)\n        if m:\n            self.error(_(\"This URL requires a premium account\"))\n\n        m = re.search(self.LINK_PATTERN, self.html)\n        if m is None:\n            self.error(_(\"LINK_PATTERN not found\"))\n\n        self.link = m.group(1)\n        self.wait(15)\n\n\ngetInfo = create_getInfo(UpleaCom)\n", "path": "module/plugins/hoster/UpleaCom.py"}], "after_files": [{"content": "# -*- coding: utf-8 -*-\n\nimport re\n\nfrom urlparse import urljoin\n\nfrom module.plugins.internal.XFSHoster import XFSHoster, create_getInfo\n\n\nclass UpleaCom(XFSHoster):\n    __name__    = \"UpleaCom\"\n    __type__    = \"hoster\"\n    __version__ = \"0.08\"\n\n    __pattern__ = r'https?://(?:www\\.)?uplea\\.com/dl/\\w{15}'\n\n    __description__ = \"\"\"Uplea.com hoster plugin\"\"\"\n    __license__     = \"GPLv3\"\n    __authors__     = [(\"Redleon\", None),\n                       (\"GammaC0de\", None)]\n\n\n    NAME_PATTERN = r'class=\"agmd size18\">(?P<N>.+?)<'\n    SIZE_PATTERN = r'size14\">(?P<S>[\\d.,]+) (?P<U>[\\w^_]+?)</span>'\n    SIZE_REPLACEMENTS = [('Ko','KB'), ('Mo','MB'), ('Go','GB')]\n\n    OFFLINE_PATTERN = r'>You followed an invalid or expired link'\n    PREMIUM_PATTERN = r'You need to have a Premium subscription to download this file'\n\n    LINK_PATTERN = r'\"(https?://\\w+\\.uplea\\.com/anonym/.*?)\"'\n    HOSTER_DOMAIN = \"uplea.com\"\n\n    WAIT_PATTERN = r'timeText: ?([\\d.]+),'\n    STEP_PATTERN = r'<a href=\"(/step/.+)\">'\n\n\n    def setup(self):\n        self.multiDL = False\n        self.chunkLimit = 1\n        self.resumeDownload = True\n\n\n    def handleFree(self, pyfile):\n        m = re.search(self.STEP_PATTERN, self.html)\n        if m is None:\n            self.error(_(\"STEP_PATTERN not found\"))\n\n        self.html = self.load(urljoin(\"http://uplea.com/\", m.group(1)))\n\n        m = re.search(self.WAIT_PATTERN, self.html)\n        if m:\n            self.logDebug(_(\"Waiting %s seconds\") % m.group(1))\n            self.wait(m.group(1), True)\n            self.retry()\n\n        m = re.search(self.PREMIUM_PATTERN, self.html)\n        if m:\n            self.error(_(\"This URL requires a premium account\"))\n\n        m = re.search(self.LINK_PATTERN, self.html)\n        if m is None:\n            self.error(_(\"LINK_PATTERN not found\"))\n\n        self.link = m.group(1)\n        self.wait(15)\n\n\ngetInfo = create_getInfo(UpleaCom)\n", "path": "module/plugins/hoster/UpleaCom.py"}]}