diff -ru pytone-2.1.0/src/config.py pytone-2.1.0.mine/src/config.py --- pytone-2.1.0/src/config.py 2004-07-28 22:04:37.000000000 +0200 +++ pytone-2.1.0.mine/src/config.py 2004-11-17 06:32:12.000000000 +0100 @@ -336,6 +336,8 @@ layout = configalternatives("twocolumn", ["onecolumn", "twocolumn"]) throttleoutput = configint("0") autoplaymode = configalternatives("off", ["off", "repeat", "random"]) + user = configstring('') + password = configstring('') class database(configsection): diff -ru pytone-2.1.0/src/pytone.py pytone-2.1.0.mine/src/pytone.py --- pytone-2.1.0/src/pytone.py 2004-07-19 19:58:07.000000000 +0200 +++ pytone-2.1.0.mine/src/pytone.py 2004-11-17 06:32:59.000000000 +0100 @@ -63,6 +63,7 @@ import services.songdb import services.player import services.timer +import services.scrobbler # Uncomment the next line, if you want to experience a little bit with # the number of bytecode instructions after which a context switch @@ -109,6 +110,10 @@ import network network.unixserver(os.path.expanduser(config.network.socketfile)).start() + # scrobbler service + services.scrobbler.Scrobbler(config.general.user, + config.general.password).start() + # Now that everything is setup, we can initialize the players. This has # to be done after all other services have been setup because # the players immediately start requesting a new song