We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 87b6a91e authored by Daniel Watkins's avatar Daniel Watkins

Make libre.fm server default for import.py.

parent ef42b706
......@@ -6,21 +6,21 @@ sys.path.append(os.path.join(sys.path[0], '../scripts'))
from datetime import datetime
import getpass
from gobble import GobbleServer, GobbleTrack
from optparse import OptionParser
from gobble import get_parser, GobbleServer, GobbleTrack
import time
from urllib import urlencode
from urllib2 import urlopen
if __name__ == '__main__':
parser = OptionParser(usage=usage)
usage = "%prog [-s <SERVER>] <USERNAME> <SCROBBLE DUMP>"
parser = get_parser(usage=usage)
opts,args = parser.parse_args()
if len(args) != 3:
if len(args) != 2:
parser.error("All arguments are required.")
username,server,data = args
username,data = args
server = opts.server
password = getpass.getpass()
gobbler = GobbleServer(server, username, password)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment