Source

VPlayer / cli.py

Full commit
# -*- coding: utf-8 -*-

import sys
from track import Track
from length import Length
from Searcher import Searcher
from TrackList import TrackList
from LoginInfo import LoginInfo
from SearchResultParser import SearchResultParser

def main():
    login = LoginInfo('mytestmail@slopsbox.com','36187077', 'gfhjkm')
    parser = SearchResultParser(login, sys.argv[1], unique_names = True, only_one_artist = sys.argv[1])
    parser.parse_base_page()
    while len(parser.tracks) < 10:
        sleep(1)
        print 'loading next page...'
        parser.parse_next_page()
    for i in parser.tracks:
        print unicode(str(i), 'windows-1251'), i.url
main()