fix unused imports and version
This commit is contained in:
parent
a329bd3d1e
commit
129dfc181a
5 changed files with 6 additions and 12 deletions
0
scripts/galleroob
Normal file → Executable file
0
scripts/galleroob
Normal file → Executable file
|
|
@ -28,7 +28,7 @@ __all__ = ['Galleroob']
|
||||||
|
|
||||||
class Galleroob(ReplApplication):
|
class Galleroob(ReplApplication):
|
||||||
APPNAME = 'galleroob'
|
APPNAME = 'galleroob'
|
||||||
VERSION = '0.0'
|
VERSION = '0.8'
|
||||||
COPYTIGHT = 'Copyright(C) 2011 Noé Rubinstein'
|
COPYTIGHT = 'Copyright(C) 2011 Noé Rubinstein'
|
||||||
DESCRIPTION = 'galleroob browses and downloads web image galleries'
|
DESCRIPTION = 'galleroob browses and downloads web image galleries'
|
||||||
CAPS = ICapGallery
|
CAPS = ICapGallery
|
||||||
|
|
|
||||||
|
|
@ -19,13 +19,8 @@
|
||||||
|
|
||||||
from __future__ import with_statement
|
from __future__ import with_statement
|
||||||
|
|
||||||
import datetime
|
|
||||||
import re
|
|
||||||
import urllib
|
|
||||||
|
|
||||||
from weboob.capabilities.gallery import ICapGallery
|
from weboob.capabilities.gallery import ICapGallery
|
||||||
from weboob.tools.backend import BaseBackend
|
from weboob.tools.backend import BaseBackend
|
||||||
from weboob.tools.misc import to_unicode
|
|
||||||
from weboob.tools.value import Value, ValuesDict
|
from weboob.tools.value import Value, ValuesDict
|
||||||
|
|
||||||
from .browser import EHentaiBrowser
|
from .browser import EHentaiBrowser
|
||||||
|
|
@ -39,9 +34,9 @@ class EHentaiBackend(BaseBackend, ICapGallery):
|
||||||
NAME = 'ehentai'
|
NAME = 'ehentai'
|
||||||
MAINTAINER = 'Roger Philibert'
|
MAINTAINER = 'Roger Philibert'
|
||||||
EMAIL = 'roger.philibert@gmail.com'
|
EMAIL = 'roger.philibert@gmail.com'
|
||||||
VERSION = '0.7'
|
VERSION = '0.8'
|
||||||
DESCRIPTION = 'E-hentai galleries'
|
DESCRIPTION = 'E-hentai galleries'
|
||||||
LICENSE = 'GPLv3'
|
LICENSE = 'AGPLv3+'
|
||||||
BROWSER = EHentaiBrowser
|
BROWSER = EHentaiBrowser
|
||||||
CONFIG = ValuesDict(
|
CONFIG = ValuesDict(
|
||||||
Value('domain', label='Domain', default='g.e-hentai.org'),
|
Value('domain', label='Domain', default='g.e-hentai.org'),
|
||||||
|
|
|
||||||
|
|
@ -18,13 +18,12 @@
|
||||||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from weboob.tools.browser import BasePage
|
from weboob.tools.browser import BasePage
|
||||||
from weboob.tools.parsers.lxmlsoupparser import LxmlSoupParser
|
|
||||||
from weboob.tools.misc import html2text
|
from weboob.tools.misc import html2text
|
||||||
from weboob.capabilities.gallery import Thumbnail
|
from weboob.capabilities.gallery import Thumbnail
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from .gallery import EHentaiGallery, EHentaiImage
|
from .gallery import EHentaiGallery
|
||||||
|
|
||||||
__all__ = ['GalleryPage', 'ImagePage', 'IndexPage', 'HomePage', 'LoginPage']
|
__all__ = ['GalleryPage', 'ImagePage', 'IndexPage', 'HomePage', 'LoginPage']
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime
|
||||||
|
|
||||||
from .base import IBaseCap, CapBaseObject, NotLoaded
|
from .base import IBaseCap, CapBaseObject, NotLoaded
|
||||||
|
|
||||||
|
|
@ -73,7 +73,7 @@ class BaseGallery(CapBaseObject):
|
||||||
class BaseImage(CapBaseObject):
|
class BaseImage(CapBaseObject):
|
||||||
def __init__(self, _id, index=None, thumbnail=NotLoaded, url=NotLoaded, ext=NotLoaded):
|
def __init__(self, _id, index=None, thumbnail=NotLoaded, url=NotLoaded, ext=NotLoaded):
|
||||||
CapBaseObject.__init__(self, unicode(_id))
|
CapBaseObject.__init__(self, unicode(_id))
|
||||||
|
|
||||||
self.add_field('index', int, index) # usually page number
|
self.add_field('index', int, index) # usually page number
|
||||||
self.add_field('thumbnail', Thumbnail, thumbnail)
|
self.add_field('thumbnail', Thumbnail, thumbnail)
|
||||||
self.add_field('url', basestring, url)
|
self.add_field('url', basestring, url)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue