From fcead1870013b6a970eca7878a66dbe783c80ea3 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 16 Feb 2015 03:40:45 +0100 Subject: Partially revert acc46fc3497a66a427b795b4a22c6e71d69185a1 --- pyload/plugin/hoster/SoundcloudCom.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'pyload/plugin/hoster/SoundcloudCom.py') diff --git a/pyload/plugin/hoster/SoundcloudCom.py b/pyload/plugin/hoster/SoundcloudCom.py index 48a5b465c..cfb07b35d 100644 --- a/pyload/plugin/hoster/SoundcloudCom.py +++ b/pyload/plugin/hoster/SoundcloudCom.py @@ -7,15 +7,15 @@ from pyload.plugin.Hoster import Hoster class SoundcloudCom(Hoster): - __name = "SoundcloudCom" - __type = "hoster" - __version = "0.10" + __name__ = "SoundcloudCom" + __type__ = "hoster" + __version__ = "0.10" - __pattern = r'https?://(?:www\.)?soundcloud\.com/(?P.*?)/(?P.*)' + __pattern__ = r'https?://(?:www\.)?soundcloud\.com/(?P.*?)/(?P.*)' - __description = """SoundCloud.com hoster plugin""" - __license = "GPLv3" - __authors = [("Peekayy", "peekayy.dev@gmail.com")] + __description__ = """SoundCloud.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("Peekayy", "peekayy.dev@gmail.com")] def process(self, pyfile): @@ -41,7 +41,7 @@ class SoundcloudCom(Hoster): if m: pyfile.name = m.group("TITLE") + ".mp3" else: - pyfile.name = re.match(self.__pattern, pyfile.url).group("SID") + ".mp3" + pyfile.name = re.match(self.__pattern__, pyfile.url).group("SID") + ".mp3" # url to retrieve the actual song url page = self.load("https://api.sndcdn.com/i1/tracks/%s/streams" % songId, get={"client_id": clientId}) -- cgit v1.2.3