Exemplo n.º 1
0
def get_tfiles_map(filenames):
    files = [f for f in filenames if os.path.isfile(f)]
    tfiles = find_tfiles(files, Config().get_torrentfilesdir())
    return {f: t for f, t in zip(files, tfiles)}
Exemplo n.º 2
0
def _get_results(targets, tfilesdir):
    tfilesdir = expanduser(tfilesdir)
    return [i for i in find_tfiles(targets, tfilesdir) if i is not None]