brambonne / lastfmplaycount Goto Github PK
View Code? Open in Web Editor NEWImport the playcount of your currently playing track from Last.fm into Rhythmbox
Import the playcount of your currently playing track from Last.fm into Rhythmbox
When I click the 'Synchronize the entire collection' button and then try to play a song, Rhythmbox crashes.
Here's the output:
(rhythmbox:30747): libpeas-CRITICAL *_: show_configure_cb: assertion GTK_IS_WIDGET (conf_widget)' failed /usr/lib/python2.7/dist-packages/gi/types.py:43: Warning: g_value_get_uint: assertion
G_VALUE_HOLDS_UINT (value)' failed
return info.invoke(_args, *kwargs)
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
*
ERROR:/build/buildd/pygobject-3.0.0/gi/_gobject/pygobject.c:929:pygobject_new_full: assertion failed: (tp != NULL)
Aborted
Using Rhythmbox 2.95 / Ubuntu 11.10.
I installed all four files in /usr/lib/rhythmbox/plugins/lastfmplaycount and the plugin appears in Rhythmbox's "Configure Plugins", however when I click to enable it the plugin reports that it failed to load. Note that I do have the last.fm plugin enabled and am using Ubuntu 11.10 amd64 with Rhythmbox 2.90.1. I'm not sure how to show any more detailed information.
$ rhythmbox -D lastfmplaycount
/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
import gobject._gobject
(15:09:44) [0xa6b0c0] [Config._parse_username] /home/deepcyan/.local/share/rhythmbox/plugins/lastfmplaycount/lastfmplaycountconfig.py:267: Parsed Last.fm username: deepcyan
(15:09:44) [0xa6b0c0] [Config.set_run_update_all] /home/deepcyan/.local/share/rhythmbox/plugins/lastfmplaycount/lastfmplaycountconfig.py:231: Run_update False
(15:09:44) [0xa6b0c0] [LastfmPlaycountPlugin.do_activate] /home/deepcyan/.local/share/rhythmbox/plugins/lastfmplaycount/lastfmplaycount.py:113: Activation finished
Segmentation fault (core dumped)
Any ideas?
What a nice plugin!
Can we expect to see it mass updating playcount/loved tracks in future?
keep the good job!
Tried to run this 2 times against my library. It goes ok but after a while it returns this is error:
(12:09:29) [0x7faa98113ae0] [LastfmPlaycountPlugin.update_entry] .local/share/rhythmbox/plugins/lastfmplaycount/lastfmplaycount.py:244: Setting playcount of "The John Butler Trio - Used to Get High" to 4
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 505, in run
self.__target(_self.__args, *_self.__kwargs)
File "/home/xand/.local/share/rhythmbox/plugins/lastfmplaycount/lastfmplaycount.py", line 95, in _update_all_unthreaded
self.update_entry(self.db.entry_lookup_by_id(id))
File "/home/xand/.local/share/rhythmbox/plugins/lastfmplaycount/lastfmplaycount.py", line 126, in update_entry
playcount, lovedtrack = self.get_lastfm_info(artist, title)
File "/home/xand/.local/share/rhythmbox/plugins/lastfmplaycount/lastfmplaycount.py", line 144, in get_lastfm_info
response = minidom.parse(urlopen("http://ws.audioscrobbler.com/2.0/?%s" % params))
File "/usr/lib/python2.7/urllib.py", line 84, in urlopen
return opener.open(url)
File "/usr/lib/python2.7/urllib.py", line 205, in open
return getattr(self, name)(url)
File "/usr/lib/python2.7/urllib.py", line 349, in open_http
'got a bad status line', None)
IOError: ('http protocol error', 0, 'got a bad status line', None)
What about a simple install script? Anyway, you should add -p flag to the mkdir command in readme file as plugins dir is quite unlikely to exist by default.
p.s. and thanks for a nice plugin, I missed it :)
When I hit "Update Last FM Playcount", nothing happens. Rhythmbox also doesn't crash or something.
Here is my rhythmbox -D lastfmplaycount output:
(rhythmbox:5770): Gtk-CRITICAL **: gtk_css_provider_load_from_path: assertion 'path != NULL' failed
(rhythmbox:5770): GLib-GObject-CRITICAL **: object SoupServer 0x1f4f4e0 finalized while still in-construction
(rhythmbox:5770): GLib-GObject-CRITICAL **: Custom constructor for class SoupServer returned NULL (which is invalid). Please use GInitable instead.
(21:07:44) [0x7f5ca4006060] [Config._parse_username] /usr/lib/rhythmbox/plugins/lastfmplaycount/lastfmplaycountconfig.py:181: Parsed Last.fm username: rearlight
(21:07:44) [0x7f5ca4006060] [LastfmPlaycountPlugin._init_ui] /usr/lib/rhythmbox/plugins/lastfmplaycount/lastfmplaycount.py:192: Extending the UI with our own actions
(21:07:44) [0x7f5ca4006060] [LastfmPlaycountPlugin.do_activate] /usr/lib/rhythmbox/plugins/lastfmplaycount/lastfmplaycount.py:116: Activation finished
Unable to open ~/.mtpz-data for reading, MTPZ disabled.(21:08:00) [0x7f5c901e1cd0] [LastfmPlaycountPlugin._update_all_unthreaded] /usr/lib/rhythmbox/plugins/lastfmplaycount/lastfmplaycount.py:257: Starting update of entire collection
TypeError: _update_entry_slowly() missing 1 required positional argument: 'entry'
TypeError: _update_entry_slowly() missing 1 required positional argument: 'entry'
TypeError: _update_entry_slowly() missing 1 required positional argument: 'entry'
TypeError: _update_entry_slowly() missing 1 required positional argument: 'entry'
TypeError: _update_entry_slowly() missing 1 required positional argument: 'entry'
TypeError: _update_entry_slowly() missing 1 required positional argument: 'entry'
TypeError: _update_entry_slowly() missing 1 required positional argument: 'entry'
[and than this error on and on]
I hope you can fix this or help me, I'm really hyped about that plugin! =D
Best wishes,
rearlight
When I click the 'Preferences' button in plugins for LastfmPlaycount, Rhythmbox crashes.
sus@seventysix:~$ rhythmbox -D lastfmplaycount
/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
import gobject._gobject
(13:01:37) [0x1b380c0] [Config._parse_username] /usr/lib/rhythmbox/plugins/lastfmplaycount/lastfmplaycountconfig.py:267: Parsed Last.fm username: sarcozona
(13:01:37) [0x1b380c0] [Config.set_run_update_all] /usr/lib/rhythmbox/plugins/lastfmplaycount/lastfmplaycountconfig.py:231: Run_update False
(13:01:37) [0x1b380c0] [LastfmPlaycountPlugin.do_activate] /usr/lib/rhythmbox/plugins/lastfmplaycount/lastfmplaycount.py:109: Activation finished
(rhythmbox:2324): Rhythmbox-DEBUG: Received SaveYourself(SmSaveLocal, !Shutdown, SmInteractStyleNone, !Fast) in state idle
(rhythmbox:2324): Rhythmbox-DEBUG: Setting initial properties
(rhythmbox:2324): Rhythmbox-DEBUG: Sending SaveYourselfDone(True) for initial SaveYourself
(rhythmbox:2324): Rhythmbox-DEBUG: Received SaveComplete message in state save-yourself-done
(13:02:09) [0x2f2b9b0] [LastfmPlaycountPlugin.update_entry] /usr/lib/rhythmbox/plugins/lastfmplaycount/lastfmplaycount.py:249: Playcount for 'tUnE-yArDs' - 'Doorstep' remained the same. Not updating
(13:02:28) [0x2b44aa0] [LastfmPlaycountPlugin.update_entry] /usr/lib/rhythmbox/plugins/lastfmplaycount/lastfmplaycount.py:244: Setting playcount of "'listenlisten' - 'Watchman'" to 2
(13:03:11) [0x1b380c0] [Config._parse_username] /usr/lib/rhythmbox/plugins/lastfmplaycount/lastfmplaycountconfig.py:267: Parsed Last.fm username: sarcozona
(13:03:11) [0x1b380c0] [Config.set_run_update_all] /usr/lib/rhythmbox/plugins/lastfmplaycount/lastfmplaycountconfig.py:231: Run_update False
(13:03:11) [0x1b380c0] [Config.do_create_configure_widget] /usr/lib/rhythmbox/plugins/lastfmplaycount/lastfmplaycountconfig.py:90: Creating configuration dialog
Traceback (most recent call last):
File "/usr/lib/rhythmbox/plugins/lastfmplaycount/lastfmplaycountconfig.py", line 49, in do_create_configure_widget
builder.add_from_file(rb.find_plugin_file(self, "lastfmplaycount-prefs.ui"))
File "/usr/lib/python2.7/dist-packages/gi/types.py", line 43, in function
return info.invoke(_args, *_kwargs)
TypeError: Argument 1 does not allow None as a value
Segmentation fault
After install, clicking on "Configure" in the plugins menu the following is thrown
Traceback (most recent call last):
File "/usr/lib/rhythmbox/plugins/lastfmplaycount/lastfmplaycountconfig.py", line 26, in do_create_configure_widget
builder.add_from_file(rb.find_plugin_file(self, "lastfmplaycount-prefs.ui"))
TypeError: Argument 1 does not allow None as a value
(rhythmbox:25120): libpeas-CRITICAL **: show_configure_cb: assertion 'GTK_IS_WIDGET (conf_widget)' failed
Is this plugin still maintained? I seem to have an issue enabling it under the most recent build of Rhythmbox.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.