delay 'requests'-import
This commit is contained in:
@@ -17,7 +17,7 @@ __email__ = "mike_faehrmann@web.de"
|
||||
import os
|
||||
import sys
|
||||
import argparse
|
||||
from . import config, jobs
|
||||
from . import config, extractor, jobs
|
||||
|
||||
def build_cmdline_parser():
|
||||
parser = argparse.ArgumentParser(
|
||||
|
||||
@@ -12,18 +12,9 @@ import time
|
||||
import queue
|
||||
import requests
|
||||
import threading
|
||||
from .message import Message
|
||||
from .. import config
|
||||
|
||||
|
||||
class Message():
|
||||
|
||||
Version = 1
|
||||
Directory = 2
|
||||
Url = 3
|
||||
Headers = 4
|
||||
Cookies = 5
|
||||
|
||||
|
||||
class Extractor():
|
||||
|
||||
def __init__(self):
|
||||
|
||||
15
gallery_dl/extractor/message.py
Normal file
15
gallery_dl/extractor/message.py
Normal file
@@ -0,0 +1,15 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2015 Mike Fährmann
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License version 2 as
|
||||
# published by the Free Software Foundation.
|
||||
|
||||
class Message():
|
||||
|
||||
Version = 1
|
||||
Directory = 2
|
||||
Url = 3
|
||||
Headers = 4
|
||||
Cookies = 5
|
||||
@@ -9,7 +9,7 @@
|
||||
import os
|
||||
import sys
|
||||
from . import config, extractor, downloader, text
|
||||
from .extractor.common import Message
|
||||
from .extractor.message import Message
|
||||
|
||||
class DownloadJob():
|
||||
|
||||
|
||||
Reference in New Issue
Block a user