From 5060e4c6374a5116d0d8b02528f910f8c5f8bcf9 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 15 Jul 2014 16:25:41 +0200 Subject: Fix code indentation, some bad whitespaces and missing authors + use 'not' instead 'is None' + replace __pattern__'s r" with r' + other minor cosmetics --- module/plugins/Hoster.py | 1 + 1 file changed, 1 insertion(+) (limited to 'module/plugins/Hoster.py') diff --git a/module/plugins/Hoster.py b/module/plugins/Hoster.py index 4979d383b..67692a94f 100644 --- a/module/plugins/Hoster.py +++ b/module/plugins/Hoster.py @@ -23,6 +23,7 @@ def getInfo(self): #result = [ .. (name, size, status, url) .. ] return + class Hoster(Plugin): __name__ = "Hoster" __version__ = "0.1" -- cgit v1.2.3 From ba916633f2bedb04c7358000b91aed69f52e8e43 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 1 Aug 2014 19:35:59 +0200 Subject: Remove trailing whitespaces + remove license headers + import urllib methods directly + sort and fix key attributes + use save_join instead join + sort some import declarations + other minor code cosmetics --- module/plugins/Hoster.py | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) (limited to 'module/plugins/Hoster.py') diff --git a/module/plugins/Hoster.py b/module/plugins/Hoster.py index 67692a94f..bedfce129 100644 --- a/module/plugins/Hoster.py +++ b/module/plugins/Hoster.py @@ -1,24 +1,8 @@ # -*- coding: utf-8 -*- -""" - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, - or (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, see . - - @author: mkaay -""" - from module.plugins.Plugin import Plugin + def getInfo(self): #result = [ .. (name, size, status, url) .. ] return @@ -26,9 +10,11 @@ def getInfo(self): class Hoster(Plugin): __name__ = "Hoster" + __type__ = "hoster" __version__ = "0.1" + __pattern__ = None - __type__ = "hoster" + __description__ = """Base hoster plugin""" __author_name__ = "mkaay" __author_mail__ = "mkaay@mkaay.de" -- cgit v1.2.3 From b0868ae6446078bacf1635dde5e4ab316b4a94cb Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 7 Oct 2014 18:57:59 +0200 Subject: New __authors__ key replaces __author_name__ and __author_mail__ + Whitespaces and EOF fixup --- module/plugins/Hoster.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'module/plugins/Hoster.py') diff --git a/module/plugins/Hoster.py b/module/plugins/Hoster.py index bedfce129..be05aaf32 100644 --- a/module/plugins/Hoster.py +++ b/module/plugins/Hoster.py @@ -16,5 +16,4 @@ class Hoster(Plugin): __pattern__ = None __description__ = """Base hoster plugin""" - __author_name__ = "mkaay" - __author_mail__ = "mkaay@mkaay.de" + __authors__ = [("mkaay", "mkaay@mkaay.de")] -- cgit v1.2.3 From ae7a7e66981456e5bbe2b54006d79b6f907be7a4 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Wed, 8 Oct 2014 20:18:13 +0200 Subject: Add __license__ key attribute to plugins --- module/plugins/Hoster.py | 1 + 1 file changed, 1 insertion(+) (limited to 'module/plugins/Hoster.py') diff --git a/module/plugins/Hoster.py b/module/plugins/Hoster.py index be05aaf32..535d7e3f2 100644 --- a/module/plugins/Hoster.py +++ b/module/plugins/Hoster.py @@ -16,4 +16,5 @@ class Hoster(Plugin): __pattern__ = None __description__ = """Base hoster plugin""" + __license__ = "GPLv3" __authors__ = [("mkaay", "mkaay@mkaay.de")] -- cgit v1.2.3 From aa0751bcfd995e308bcd586a6965c75e68b1274b Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 27 Oct 2014 23:05:13 +0100 Subject: Code cosmetics --- module/plugins/Hoster.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'module/plugins/Hoster.py') diff --git a/module/plugins/Hoster.py b/module/plugins/Hoster.py index 535d7e3f2..0768391e5 100644 --- a/module/plugins/Hoster.py +++ b/module/plugins/Hoster.py @@ -9,12 +9,13 @@ def getInfo(self): class Hoster(Plugin): - __name__ = "Hoster" - __type__ = "hoster" + __name__ = "Hoster" + __type__ = "hoster" __version__ = "0.1" __pattern__ = None + __config__ = [] #: [("name", "type", "desc", "default")] __description__ = """Base hoster plugin""" - __license__ = "GPLv3" - __authors__ = [("mkaay", "mkaay@mkaay.de")] + __license__ = "GPLv3" + __authors__ = [("mkaay", "mkaay@mkaay.de")] -- cgit v1.2.3 From 8e921a978e79d93da3036ce3bdc1fb176c74fabb Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 3 Nov 2014 12:09:04 +0100 Subject: Spare code cosmetics --- module/plugins/Hoster.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'module/plugins/Hoster.py') diff --git a/module/plugins/Hoster.py b/module/plugins/Hoster.py index 0768391e5..22e8dbfcb 100644 --- a/module/plugins/Hoster.py +++ b/module/plugins/Hoster.py @@ -11,7 +11,7 @@ def getInfo(self): class Hoster(Plugin): __name__ = "Hoster" __type__ = "hoster" - __version__ = "0.1" + __version__ = "0.02" __pattern__ = None __config__ = [] #: [("name", "type", "desc", "default")] @@ -19,3 +19,6 @@ class Hoster(Plugin): __description__ = """Base hoster plugin""" __license__ = "GPLv3" __authors__ = [("mkaay", "mkaay@mkaay.de")] + + + html = None -- cgit v1.2.3 From 03f3b86f500c495932fd118b54569d92f700847c Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 3 Nov 2014 16:57:55 +0100 Subject: Code cosmetics about file_info and other stuff --- module/plugins/Hoster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/plugins/Hoster.py') diff --git a/module/plugins/Hoster.py b/module/plugins/Hoster.py index 22e8dbfcb..86e26dfae 100644 --- a/module/plugins/Hoster.py +++ b/module/plugins/Hoster.py @@ -21,4 +21,4 @@ class Hoster(Plugin): __authors__ = [("mkaay", "mkaay@mkaay.de")] - html = None + html = None #: last html loaded -- cgit v1.2.3 From 59f72bfc5ed721c80c821bd0ca1bc8daf0d49880 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sun, 9 Nov 2014 03:12:41 +0100 Subject: Code cosmetics --- module/plugins/Hoster.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'module/plugins/Hoster.py') diff --git a/module/plugins/Hoster.py b/module/plugins/Hoster.py index 86e26dfae..be7d75bb9 100644 --- a/module/plugins/Hoster.py +++ b/module/plugins/Hoster.py @@ -19,6 +19,3 @@ class Hoster(Plugin): __description__ = """Base hoster plugin""" __license__ = "GPLv3" __authors__ = [("mkaay", "mkaay@mkaay.de")] - - - html = None #: last html loaded -- cgit v1.2.3 From ef4bc4b73756565e40c7453f6b71bc1021735033 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sat, 22 Nov 2014 19:38:25 +0100 Subject: Revert plugins to stable --- module/plugins/Hoster.py | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) (limited to 'module/plugins/Hoster.py') diff --git a/module/plugins/Hoster.py b/module/plugins/Hoster.py index be7d75bb9..814a70949 100644 --- a/module/plugins/Hoster.py +++ b/module/plugins/Hoster.py @@ -1,21 +1,33 @@ # -*- coding: utf-8 -*- -from module.plugins.Plugin import Plugin +""" + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, + or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU General Public License for more details. + You should have received a copy of the GNU General Public License + along with this program; if not, see . + + @author: mkaay +""" + +from module.plugins.Plugin import Plugin def getInfo(self): #result = [ .. (name, size, status, url) .. ] return - class Hoster(Plugin): - __name__ = "Hoster" - __type__ = "hoster" - __version__ = "0.02" - + __name__ = "Hoster" + __version__ = "0.1" __pattern__ = None - __config__ = [] #: [("name", "type", "desc", "default")] - + __type__ = "hoster" __description__ = """Base hoster plugin""" - __license__ = "GPLv3" - __authors__ = [("mkaay", "mkaay@mkaay.de")] + __author_name__ = ("mkaay") + __author_mail__ = ("mkaay@mkaay.de") -- cgit v1.2.3