summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hoster
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins/hoster')
-rw-r--r--pyload/plugins/hoster/AlldebridCom.py2
-rw-r--r--pyload/plugins/hoster/BayfilesCom.py2
-rw-r--r--pyload/plugins/hoster/DailymotionCom.py4
-rw-r--r--pyload/plugins/hoster/DlFreeFr.py2
-rw-r--r--pyload/plugins/hoster/ExtabitCom.py2
-rw-r--r--pyload/plugins/hoster/FastixRu.py2
-rw-r--r--pyload/plugins/hoster/FilecloudIo.py2
-rw-r--r--pyload/plugins/hoster/FilepostCom.py2
-rw-r--r--pyload/plugins/hoster/FileserveCom.py2
-rw-r--r--pyload/plugins/hoster/IfileIt.py2
-rw-r--r--pyload/plugins/hoster/LetitbitNet.py2
-rw-r--r--pyload/plugins/hoster/LinksnappyCom.py2
-rw-r--r--pyload/plugins/hoster/MegaDebridEu.py2
-rw-r--r--pyload/plugins/hoster/MegaNz.py2
-rw-r--r--pyload/plugins/hoster/MegacrypterCom.py2
-rw-r--r--pyload/plugins/hoster/MultiDebridCom.py2
-rw-r--r--pyload/plugins/hoster/MyvideoDe.py4
-rw-r--r--pyload/plugins/hoster/OboomCom.py2
-rw-r--r--pyload/plugins/hoster/OverLoadMe.py2
-rw-r--r--pyload/plugins/hoster/PremiumizeMe.py2
-rw-r--r--pyload/plugins/hoster/RPNetBiz.py2
-rw-r--r--pyload/plugins/hoster/RapidgatorNet.py2
-rw-r--r--pyload/plugins/hoster/RealdebridCom.py2
-rw-r--r--pyload/plugins/hoster/RedtubeCom.py4
-rw-r--r--pyload/plugins/hoster/UlozTo.py2
-rw-r--r--pyload/plugins/hoster/UnrestrictLi.py2
-rw-r--r--pyload/plugins/hoster/UploadingCom.py2
-rw-r--r--pyload/plugins/hoster/XHamsterCom.py2
-rw-r--r--pyload/plugins/hoster/YibaishiwuCom.py2
29 files changed, 32 insertions, 32 deletions
diff --git a/pyload/plugins/hoster/AlldebridCom.py b/pyload/plugins/hoster/AlldebridCom.py
index 1b115f19e..bdb5b1599 100644
--- a/pyload/plugins/hoster/AlldebridCom.py
+++ b/pyload/plugins/hoster/AlldebridCom.py
@@ -5,7 +5,7 @@ import re
from random import randrange
from urllib import unquote
-from pyload.common.json_layer import json_loads
+from pyload.utils import json_loads
from pyload.plugins.Hoster import Hoster
from pyload.utils import parseFileSize
diff --git a/pyload/plugins/hoster/BayfilesCom.py b/pyload/plugins/hoster/BayfilesCom.py
index ea4bd3ca5..5906ade75 100644
--- a/pyload/plugins/hoster/BayfilesCom.py
+++ b/pyload/plugins/hoster/BayfilesCom.py
@@ -4,7 +4,7 @@ import re
from time import time
-from pyload.common.json_layer import json_loads
+from pyload.utils import json_loads
from pyload.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
diff --git a/pyload/plugins/hoster/DailymotionCom.py b/pyload/plugins/hoster/DailymotionCom.py
index 0ae4c697b..5692fa652 100644
--- a/pyload/plugins/hoster/DailymotionCom.py
+++ b/pyload/plugins/hoster/DailymotionCom.py
@@ -2,8 +2,8 @@
import re
-from pyload.PyFile import statusMap
-from pyload.common.json_layer import json_loads
+from pyload.datatypes.PyFile import statusMap
+from pyload.utils import json_loads
from pyload.network.RequestFactory import getURL
from pyload.plugins.Hoster import Hoster
diff --git a/pyload/plugins/hoster/DlFreeFr.py b/pyload/plugins/hoster/DlFreeFr.py
index 387e11efc..0365754bc 100644
--- a/pyload/plugins/hoster/DlFreeFr.py
+++ b/pyload/plugins/hoster/DlFreeFr.py
@@ -3,7 +3,7 @@
import pycurl
import re
-from pyload.common.json_layer import json_loads
+from pyload.utils import json_loads
from pyload.network.Browser import Browser
from pyload.network.CookieJar import CookieJar
from pyload.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo, replace_patterns
diff --git a/pyload/plugins/hoster/ExtabitCom.py b/pyload/plugins/hoster/ExtabitCom.py
index 38479410e..78172ef02 100644
--- a/pyload/plugins/hoster/ExtabitCom.py
+++ b/pyload/plugins/hoster/ExtabitCom.py
@@ -2,7 +2,7 @@
import re
-from pyload.common.json_layer import json_loads
+from pyload.utils import json_loads
from pyload.plugins.hoster.UnrestrictLi import secondsToMidnight
from pyload.plugins.internal.CaptchaService import ReCaptcha
diff --git a/pyload/plugins/hoster/FastixRu.py b/pyload/plugins/hoster/FastixRu.py
index e031e3e55..aa1794047 100644
--- a/pyload/plugins/hoster/FastixRu.py
+++ b/pyload/plugins/hoster/FastixRu.py
@@ -5,7 +5,7 @@ import re
from random import randrange
from urllib import unquote
-from pyload.common.json_layer import json_loads
+from pyload.utils import json_loads
from pyload.plugins.Hoster import Hoster
diff --git a/pyload/plugins/hoster/FilecloudIo.py b/pyload/plugins/hoster/FilecloudIo.py
index 05753a67e..9cf9306d1 100644
--- a/pyload/plugins/hoster/FilecloudIo.py
+++ b/pyload/plugins/hoster/FilecloudIo.py
@@ -2,7 +2,7 @@
import re
-from pyload.common.json_layer import json_loads
+from pyload.utils import json_loads
from pyload.plugins.internal.CaptchaService import ReCaptcha
from pyload.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
diff --git a/pyload/plugins/hoster/FilepostCom.py b/pyload/plugins/hoster/FilepostCom.py
index ac2ae4845..382971c61 100644
--- a/pyload/plugins/hoster/FilepostCom.py
+++ b/pyload/plugins/hoster/FilepostCom.py
@@ -4,7 +4,7 @@ import re
from time import time
-from pyload.common.json_layer import json_loads
+from pyload.utils import json_loads
from pyload.plugins.internal.CaptchaService import ReCaptcha
from pyload.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
diff --git a/pyload/plugins/hoster/FileserveCom.py b/pyload/plugins/hoster/FileserveCom.py
index 15830b759..5892cd96a 100644
--- a/pyload/plugins/hoster/FileserveCom.py
+++ b/pyload/plugins/hoster/FileserveCom.py
@@ -2,7 +2,7 @@
import re
-from pyload.common.json_layer import json_loads
+from pyload.utils import json_loads
from pyload.network.RequestFactory import getURL
from pyload.plugins.Hoster import Hoster
from pyload.plugins.Plugin import chunks
diff --git a/pyload/plugins/hoster/IfileIt.py b/pyload/plugins/hoster/IfileIt.py
index 2707edd5a..fc26e2f23 100644
--- a/pyload/plugins/hoster/IfileIt.py
+++ b/pyload/plugins/hoster/IfileIt.py
@@ -2,7 +2,7 @@
import re
-from pyload.common.json_layer import json_loads
+from pyload.utils import json_loads
from pyload.plugins.internal.CaptchaService import ReCaptcha
from pyload.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
diff --git a/pyload/plugins/hoster/LetitbitNet.py b/pyload/plugins/hoster/LetitbitNet.py
index 3a8e28a90..a28f06571 100644
--- a/pyload/plugins/hoster/LetitbitNet.py
+++ b/pyload/plugins/hoster/LetitbitNet.py
@@ -10,7 +10,7 @@ import re
from urllib import urlencode, urlopen
-from pyload.common.json_layer import json_loads, json_dumps
+from pyload.utils import json_loads, json_dumps
from pyload.plugins.hoster.UnrestrictLi import secondsToMidnight
from pyload.plugins.internal.CaptchaService import ReCaptcha
from pyload.plugins.internal.SimpleHoster import SimpleHoster
diff --git a/pyload/plugins/hoster/LinksnappyCom.py b/pyload/plugins/hoster/LinksnappyCom.py
index aed74d09b..e7cc61391 100644
--- a/pyload/plugins/hoster/LinksnappyCom.py
+++ b/pyload/plugins/hoster/LinksnappyCom.py
@@ -4,7 +4,7 @@ import re
from urlparse import urlsplit
-from pyload.common.json_layer import json_loads, json_dumps
+from pyload.utils import json_loads, json_dumps
from pyload.plugins.Hoster import Hoster
diff --git a/pyload/plugins/hoster/MegaDebridEu.py b/pyload/plugins/hoster/MegaDebridEu.py
index 6c980009e..ed3747aed 100644
--- a/pyload/plugins/hoster/MegaDebridEu.py
+++ b/pyload/plugins/hoster/MegaDebridEu.py
@@ -4,7 +4,7 @@ import re
from urllib import unquote_plus
-from pyload.common.json_layer import json_loads
+from pyload.utils import json_loads
from pyload.plugins.Hoster import Hoster
diff --git a/pyload/plugins/hoster/MegaNz.py b/pyload/plugins/hoster/MegaNz.py
index 801df9c9d..2e70b5dc6 100644
--- a/pyload/plugins/hoster/MegaNz.py
+++ b/pyload/plugins/hoster/MegaNz.py
@@ -9,7 +9,7 @@ from array import array
from base64 import standard_b64decode
from os import remove
-from pyload.common.json_layer import json_loads, json_dumps
+from pyload.utils import json_loads, json_dumps
from pyload.plugins.Hoster import Hoster
diff --git a/pyload/plugins/hoster/MegacrypterCom.py b/pyload/plugins/hoster/MegacrypterCom.py
index 0cc17bfe3..cdc019fdf 100644
--- a/pyload/plugins/hoster/MegacrypterCom.py
+++ b/pyload/plugins/hoster/MegacrypterCom.py
@@ -2,7 +2,7 @@
import re
-from pyload.common.json_layer import json_loads, json_dumps
+from pyload.utils import json_loads, json_dumps
from pyload.plugins.hoster.MegaNz import MegaNz
diff --git a/pyload/plugins/hoster/MultiDebridCom.py b/pyload/plugins/hoster/MultiDebridCom.py
index 765022eef..bd7d9460c 100644
--- a/pyload/plugins/hoster/MultiDebridCom.py
+++ b/pyload/plugins/hoster/MultiDebridCom.py
@@ -2,7 +2,7 @@
import re
-from pyload.common.json_layer import json_loads
+from pyload.utils import json_loads
from pyload.plugins.Hoster import Hoster
diff --git a/pyload/plugins/hoster/MyvideoDe.py b/pyload/plugins/hoster/MyvideoDe.py
index 4ce75b4a2..06cfb9c63 100644
--- a/pyload/plugins/hoster/MyvideoDe.py
+++ b/pyload/plugins/hoster/MyvideoDe.py
@@ -3,7 +3,7 @@
import re
from pyload.plugins.Hoster import Hoster
-from pyload.unescape import unescape
+from pyload.utils import html_unescape
class MyvideoDe(Hoster):
@@ -35,7 +35,7 @@ class MyvideoDe(Hoster):
def get_file_name(self):
file_name_pattern = r"<h1 class='globalHd'>(.*)</h1>"
- return unescape(re.search(file_name_pattern, self.html).group(1).replace("/", "") + '.flv')
+ return html_unescape(re.search(file_name_pattern, self.html).group(1).replace("/", "") + '.flv')
def file_exists(self):
self.download_html()
diff --git a/pyload/plugins/hoster/OboomCom.py b/pyload/plugins/hoster/OboomCom.py
index 04efa31b7..8c0d9d760 100644
--- a/pyload/plugins/hoster/OboomCom.py
+++ b/pyload/plugins/hoster/OboomCom.py
@@ -5,7 +5,7 @@
import re
-from pyload.common.json_layer import json_loads
+from pyload.utils import json_loads
from pyload.plugins.Hoster import Hoster
from pyload.plugins.internal.CaptchaService import ReCaptcha
diff --git a/pyload/plugins/hoster/OverLoadMe.py b/pyload/plugins/hoster/OverLoadMe.py
index 8061b2e1d..e27972fc2 100644
--- a/pyload/plugins/hoster/OverLoadMe.py
+++ b/pyload/plugins/hoster/OverLoadMe.py
@@ -5,7 +5,7 @@ import re
from random import randrange
from urllib import unquote
-from pyload.common.json_layer import json_loads
+from pyload.utils import json_loads
from pyload.plugins.Hoster import Hoster
from pyload.utils import parseFileSize
diff --git a/pyload/plugins/hoster/PremiumizeMe.py b/pyload/plugins/hoster/PremiumizeMe.py
index 16649f492..45c011084 100644
--- a/pyload/plugins/hoster/PremiumizeMe.py
+++ b/pyload/plugins/hoster/PremiumizeMe.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
-from pyload.common.json_layer import json_loads
+from pyload.utils import json_loads
from pyload.plugins.Hoster import Hoster
diff --git a/pyload/plugins/hoster/RPNetBiz.py b/pyload/plugins/hoster/RPNetBiz.py
index e305c35ce..8a7bec097 100644
--- a/pyload/plugins/hoster/RPNetBiz.py
+++ b/pyload/plugins/hoster/RPNetBiz.py
@@ -3,7 +3,7 @@
import re
from pyload.plugins.Hoster import Hoster
-from pyload.common.json_layer import json_loads
+from pyload.utils import json_loads
class RPNetBiz(Hoster):
diff --git a/pyload/plugins/hoster/RapidgatorNet.py b/pyload/plugins/hoster/RapidgatorNet.py
index 46fe285b7..cc13f7097 100644
--- a/pyload/plugins/hoster/RapidgatorNet.py
+++ b/pyload/plugins/hoster/RapidgatorNet.py
@@ -4,7 +4,7 @@ import re
from pycurl import HTTPHEADER
-from pyload.common.json_layer import json_loads
+from pyload.utils import json_loads
from pyload.network.HTTPRequest import BadHeader
from pyload.plugins.hoster.UnrestrictLi import secondsToMidnight
from pyload.plugins.internal.CaptchaService import AdsCaptcha, ReCaptcha, SolveMedia
diff --git a/pyload/plugins/hoster/RealdebridCom.py b/pyload/plugins/hoster/RealdebridCom.py
index a458cc5d0..08f7b9329 100644
--- a/pyload/plugins/hoster/RealdebridCom.py
+++ b/pyload/plugins/hoster/RealdebridCom.py
@@ -6,7 +6,7 @@ from random import randrange
from urllib import quote, unquote
from time import time
-from pyload.common.json_layer import json_loads
+from pyload.utils import json_loads
from pyload.plugins.Hoster import Hoster
from pyload.utils import parseFileSize
diff --git a/pyload/plugins/hoster/RedtubeCom.py b/pyload/plugins/hoster/RedtubeCom.py
index 42c24628e..9f5d2d0d9 100644
--- a/pyload/plugins/hoster/RedtubeCom.py
+++ b/pyload/plugins/hoster/RedtubeCom.py
@@ -3,7 +3,7 @@
import re
from pyload.plugins.Hoster import Hoster
-from pyload.unescape import unescape
+from pyload.utils import html_unescape
class RedtubeCom(Hoster):
@@ -36,7 +36,7 @@ class RedtubeCom(Hoster):
if not self.html:
self.download_html()
- file_url = unescape(re.search(r'hashlink=(http.*?)"', self.html).group(1))
+ file_url = html_unescape(re.search(r'hashlink=(http.*?)"', self.html).group(1))
return file_url
diff --git a/pyload/plugins/hoster/UlozTo.py b/pyload/plugins/hoster/UlozTo.py
index 2f1fdc595..c3957aaa0 100644
--- a/pyload/plugins/hoster/UlozTo.py
+++ b/pyload/plugins/hoster/UlozTo.py
@@ -3,7 +3,7 @@
import re
import time
-from pyload.common.json_layer import json_loads
+from pyload.utils import json_loads
from pyload.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
diff --git a/pyload/plugins/hoster/UnrestrictLi.py b/pyload/plugins/hoster/UnrestrictLi.py
index 2cad6616f..c0c1e3965 100644
--- a/pyload/plugins/hoster/UnrestrictLi.py
+++ b/pyload/plugins/hoster/UnrestrictLi.py
@@ -4,7 +4,7 @@ import re
from datetime import datetime, timedelta
-from pyload.common.json_layer import json_loads
+from pyload.utils import json_loads
from pyload.plugins.Hoster import Hoster
diff --git a/pyload/plugins/hoster/UploadingCom.py b/pyload/plugins/hoster/UploadingCom.py
index a7c328eec..882cb863f 100644
--- a/pyload/plugins/hoster/UploadingCom.py
+++ b/pyload/plugins/hoster/UploadingCom.py
@@ -4,7 +4,7 @@ import re
from pycurl import HTTPHEADER
-from pyload.common.json_layer import json_loads
+from pyload.utils import json_loads
from pyload.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo, timestamp
diff --git a/pyload/plugins/hoster/XHamsterCom.py b/pyload/plugins/hoster/XHamsterCom.py
index 0afb94b74..aa406cc45 100644
--- a/pyload/plugins/hoster/XHamsterCom.py
+++ b/pyload/plugins/hoster/XHamsterCom.py
@@ -4,7 +4,7 @@ import re
from urllib import unquote
-from pyload.common.json_layer import json_loads
+from pyload.utils import json_loads
from pyload.plugins.Hoster import Hoster
diff --git a/pyload/plugins/hoster/YibaishiwuCom.py b/pyload/plugins/hoster/YibaishiwuCom.py
index b6d06d234..24cd0e9fc 100644
--- a/pyload/plugins/hoster/YibaishiwuCom.py
+++ b/pyload/plugins/hoster/YibaishiwuCom.py
@@ -2,7 +2,7 @@
import re
-from pyload.common.json_layer import json_loads
+from pyload.utils import json_loads
from pyload.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo