# 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 <http://www.gnu.org/licenses/>. # ### import libraries from lib.settings import get_limit limit = get_limit() def filter(art_type, mediatype, artwork, downloaded_artwork, language, disctype = ''): data = {'art_type': art_type, 'mediatype': mediatype, 'artwork': artwork, 'downloaded_artwork': downloaded_artwork, 'language': language, 'disctype': disctype} if data.get('art_type') == 'fanart': return fanart(data) elif data.get('art_type') == 'extrafanart': return extrafanart(data)
from lib.provider.local import local from lib.report import create_report from lib.script_exceptions import * from lib.settings import get_limit, get, check from lib.utils import * from xml.parsers.expat import ExpatError arttype_list = arttype_list() cancelled = False download_arttypes = [] download_counter = {'Total Artwork': 0} download_list = [] download_succes = False failed_items = [] image_list = [] limit = get_limit() reportdata = '[B]Artwork Downloader:[/B]' setting = get() setting_limit = get_limit() startup = {'mediatype': False, 'dbid': False, 'mode': False, 'silent': False} class Main: def __init__(self): if not check(): # Check if there are some faulty combinations present sys.exit(1) if self.initialise(): global setting global startup
# it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 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 <http://www.gnu.org/licenses/>. # ### import libraries from lib.settings import get_limit limit = get_limit() def filter(art_type, mediatype, artwork, downloaded_artwork, language, disctype=''): data = { 'art_type': art_type, 'mediatype': mediatype, 'artwork': artwork, 'downloaded_artwork': downloaded_artwork, 'language': language,
from lib.provider.local import local from lib.report import create_report from lib.script_exceptions import * from lib.settings import get_limit, get, check from lib.utils import * from xml.parsers.expat import ExpatError arttype_list = arttype_list() cancelled = False download_arttypes = [] download_counter = {'Total Artwork': 0} download_list = [] download_succes = False failed_items = [] image_list = [] limit = get_limit() reportdata = '[B]Artwork Downloader:[/B]' setting = get() setting_limit = get_limit() startup = {'mediatype': False, 'dbid': False, 'mode': False, 'silent': False} class Main: def __init__(self): if not check(): # Check if there are some faulty combinations present sys.exit(1) if self.initialise(): global setting global startup providers = provider.get_providers() # Check for silent background mode