summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/RedtubeCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/RedtubeCom.py')
-rw-r--r--module/plugins/hoster/RedtubeCom.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/module/plugins/hoster/RedtubeCom.py b/module/plugins/hoster/RedtubeCom.py
index 3915b1421..15ce3b2b1 100644
--- a/module/plugins/hoster/RedtubeCom.py
+++ b/module/plugins/hoster/RedtubeCom.py
@@ -3,7 +3,7 @@
import re
from module.plugins.internal.Hoster import Hoster
-from module.unescape import unescape
+from module.utils import html_unescape
class RedtubeCom(Hoster):
@@ -33,14 +33,13 @@ class RedtubeCom(Hoster):
def get_file_url(self):
- """ returns the absolute downloadable filepath
+ """
+ Returns the absolute downloadable filepath
"""
if not self.html:
self.download_html()
- file_url = unescape(re.search(r'hashlink=(http.*?)"', self.html).group(1))
-
- return file_url
+ return html_unescape(re.search(r'hashlink=(http.*?)"', self.html).group(1))
def get_file_name(self):
@@ -51,7 +50,8 @@ class RedtubeCom(Hoster):
def file_exists(self):
- """ returns True or False
+ """
+ Returns True or False
"""
if not self.html:
self.download_html()