示例#1
0
def check(args):
    # will print a warning if there is a problem
    print('Checking "songs" sections...')
    collectionsmanager.feed(force=True)
    for alias, collection in collectionsmanager.c.items():
        if "mpd_playlist" not in collection:
            print("Checking collection [{}]...".format(alias))
            parser.parse('"' + esc_quotes(alias) + '"')
示例#2
0
def check(args):
    # will print a warning if there's a problem
    print('Checking "songs" sections...')
    collectionsmanager.feed(force=True)
    for alias in collections:
        if 'mpd_playlist' not in collections[alias]:
            print('Checking collection [%s]...' % alias)
            parser.parse('"' + esc_quotes(alias) + '"')
示例#3
0
def update(args):
    mpd.update_cache()
    write_cache('playlists', mpd.get_stored_playlists_info())
    collectionsmanager.feed(force=True)
    collectionsmanager.update_cache()