muh6mm3d / pylast

Automatically exported from code.google.com/p/pylast
Apache License 2.0
0 stars 0 forks source link

ws_server for LibreFMNetwork should be alpha.libre.fm, not alpha.dev.libre.fm #78

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Please type example code that produces the issue:

network = pylast.LibreFMNetowkr(password_hash = password_hash, username = 
username)
print network.get_top_tags()

What is the expected output? What do you see instead?

The expected output (which is returned when manually creating a new _Network 
object with alpha.libre.fm as the ws_server) is:

[TopItem(item=pylast.Tag(u'electronic', <pylast._Network object at 0x916906c>), 
weight=34584), TopItem(item=pylast.Tag(u'Electronic', <pylast._Network object 
at 0x916906c>), weight=32004), TopItem(item=pylast.Tag(u'Blues', 
<pylast._Network object at 0x916906c>), weight=22210), 
TopItem(item=pylast.Tag(u'rock', <pylast._Network object at 0x916906c>), 
weight=17354), TopItem(item=pylast.Tag(u'experimental', <pylast._Network object 
at 0x916906c>), weight=17003), TopItem(item=pylast.Tag(u'pop', <pylast._Network 
object at 0x916906c>), weight=14437), TopItem(item=pylast.Tag(u'electro', 
<pylast._Network object at 0x916906c>), weight=11182), 
TopItem(item=pylast.Tag(u'instrumental', <pylast._Network object at 
0x916906c>), weight=11001), TopItem(item=pylast.Tag(u'idm', <pylast._Network 
object at 0x916906c>), weight=9984), TopItem(item=pylast.Tag(u'ambient', 
<pylast._Network object at 0x916906c>), weight=9709)]

Instead, when using the LibreFMNetwork object, I receive:

pylast.NetworkError: NetworkError: [Errno -2] Name or service not known

What versions of Pylast and Python are you using?

Pylast 0.5 & Python 2.7.3 (Ubuntu 12.04)

Please provide any additional information below.

Original issue reported on code.google.com by bdunnette on 29 May 2012 at 4:56

GoogleCodeExporter commented 9 years ago
Fixed in my fork: https://github.com/hugovk/pylast/issues/79

Original comment by hugovk@gmail.com on 1 Mar 2014 at 10:26