예제 #1
0
def test_get_similar_playlist():
    info = {
        'title': 'buonanotte fiorellino',
        'artist': 'francesco de gregori',
        'timestamp': int(time.time())
    }
    lastfm_user = {'username': '******', 'password': '******'}
    from mediamanager.scrobble import get_similar
    from mediamanager import MediaManager
    ret_l = get_similar(info, lastfm_user)
    uid_l = [MediaManager.lyrics_uuid(
        {'artist': a, 'title': t}) for (a, t) in ret_l]
    playlist = []
    for x in uid_l:
        assert iposonic.get
예제 #2
0
def test_get_similar_playlist():
    info = {
        'title': 'buonanotte fiorellino',
        'artist': 'francesco de gregori',
        'timestamp': int(time.time())
    }
    lastfm_user = {'username': '******', 'password': '******'}
    from mediamanager.scrobble import get_similar
    from mediamanager import MediaManager
    ret_l = get_similar(info, lastfm_user)
    uid_l = [
        MediaManager.lyrics_uuid({
            'artist': a,
            'title': t
        }) for (a, t) in ret_l
    ]
    playlist = []
    for x in uid_l:
        assert iposonic.get
예제 #3
0
def test_get_similar_playlist():
    info = {
        'title': 'buonanotte fiorellino',
        'artist': 'francesco de gregori',
        'timestamp': int(time.time())
    }
    lastfm_user = {'username': '******', 'password': '******'}
    ret_l = get_similar(info, lastfm_user)
    uid_l = [
        MediaManager.lyrics_uuid({
            'artist': a,
            'title': t
        }) for (a, t) in ret_l
    ]
    playlist = []
    for x in uid_l:
        try:
            info = iposonic.db.get_songs(query={'scrobbleId': x})
            assert info
            print "found song: %s" % x
        except:
            print "not found: %s" % x