예제 #1
0
파일: _common.py 프로젝트: encukou/beets
def iconfig(lib, **kwargs):
    config = importer.ImportConfig(
        lib=lib,
        paths=None,
        resume=False,
        logfile=None,
        color=False,
        quiet=True,
        quiet_fallback=importer.action.SKIP,
        copy=True,
        move=False,
        write=False,
        art=False,
        delete=False,
        choose_match_func=lambda x, y: importer.action.SKIP,
        should_resume_func=lambda _: False,
        threaded=False,
        autot=True,
        singletons=False,
        choose_item_func=lambda x, y: importer.action.SKIP,
        timid=False,
        query=None,
        incremental=False,
        ignore=[],
        resolve_duplicate_func=lambda x, y: None,
        per_disc_numbering=False,
    )
    for k, v in kwargs.items():
        setattr(config, k, v)
    return config
예제 #2
0
def iconfig(lib, **kwargs):
    config = importer.ImportConfig(
        lib=lib,
        paths=None,
        resume=False,
        logfile=None,
        color=False,
        quiet=True,
        quiet_fallback=importer.action.SKIP,
        copy=True,
        write=False,
        art=False,
        delete=False,
        choose_match_func=lambda x, y: importer.action.SKIP,
        should_resume_func=lambda _: False,
        threaded=False,
        autot=True,
        singletons=False,
        choose_item_func=lambda x, y: importer.action.SKIP,
    )
    for k, v in kwargs.items():
        setattr(config, k, v)
    return config