diff options
-rw-r--r-- | pyload/datatypes/PyFile.py | 1 | ||||
-rw-r--r-- | pyload/plugins/Addon.py | 2 | ||||
-rw-r--r-- | pyload/plugins/ContentProvider.py | 34 | ||||
-rw-r--r-- | pyload/plugins/Hoster.py | 2 | ||||
-rw-r--r-- | pyload/plugins/network/CurlChunk.py | 2 |
5 files changed, 36 insertions, 5 deletions
diff --git a/pyload/datatypes/PyFile.py b/pyload/datatypes/PyFile.py index 28ede5f8f..2cc28fa24 100644 --- a/pyload/datatypes/PyFile.py +++ b/pyload/datatypes/PyFile.py @@ -129,7 +129,6 @@ class PyFile(object): self.media = guess_type(name) self._name = name - name = property(getName, setName) def __repr__(self): diff --git a/pyload/plugins/Addon.py b/pyload/plugins/Addon.py index 940339bfb..ee8cbe62c 100644 --- a/pyload/plugins/Addon.py +++ b/pyload/plugins/Addon.py @@ -20,7 +20,7 @@ from traceback import print_exc #from functools import wraps -from module.utils import has_method, to_list +from pyload.utils import has_method, to_list from Base import Base diff --git a/pyload/plugins/ContentProvider.py b/pyload/plugins/ContentProvider.py new file mode 100644 index 000000000..c30186376 --- /dev/null +++ b/pyload/plugins/ContentProvider.py @@ -0,0 +1,34 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +############################################################################### +# Copyright(c) 2008-2013 pyLoad Team +# http://www.pyload.org +# +# This file is part of pyLoad. +# pyLoad is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# Subjected to the terms and conditions in LICENSE +# +# @author: RaNaN +############################################################################### + + +from Base import Base + +class ContentProvider(Base): + """ + Base class to implement services that enables the user to search for content and add it for downloading. + """ + + def newest(self): + """ TODO """ + + def search(self, query): + """ TODO """ + + def suggest(self, query): + """ TODO """ diff --git a/pyload/plugins/Hoster.py b/pyload/plugins/Hoster.py index fde5de63a..bc1e4f9d0 100644 --- a/pyload/plugins/Hoster.py +++ b/pyload/plugins/Hoster.py @@ -194,7 +194,6 @@ class Hoster(Base): return True, 10 - def setWait(self, seconds, reconnect=False): """Set a specific wait time later used with `wait` @@ -250,7 +249,6 @@ class Hoster(Base): raise Retry(reason) - def download(self, url, get={}, post={}, ref=True, cookies=True, disposition=False): """Downloads the content at url to download folder diff --git a/pyload/plugins/network/CurlChunk.py b/pyload/plugins/network/CurlChunk.py index f5a19eb0d..871cf7f39 100644 --- a/pyload/plugins/network/CurlChunk.py +++ b/pyload/plugins/network/CurlChunk.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- ############################################################################### -# Copyright(c) 2008-2012 pyLoad Team +# Copyright(c) 2008-2013 pyLoad Team # http://www.pyload.org # # This file is part of pyLoad. |