After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 761695 - [lastfm] last fm registers itself with the account name and key
[lastfm] last fm registers itself with the account name and key
Status: RESOLVED OBSOLETE
Product: grilo
Classification: Other
Component: lua
git master
Other Linux
: Normal normal
: ---
Assigned To: grilo-maint
grilo-maint
Depends on:
Blocks:
 
 
Reported: 2016-02-08 00:40 UTC by Marinus Schraal
Modified: 2018-09-24 09:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
allow glob matching of GRL_PLUGIN_RANKS (1007 bytes, patch)
2016-02-19 16:12 UTC, Marinus Schraal
none Details | Review
registry: Glob pattern matching for plugin ranks (1.63 KB, patch)
2016-06-17 10:52 UTC, Marinus Schraal
none Details | Review

Description Marinus Schraal 2016-02-08 00:40:42 UTC
I noticed the lua lastfm plugin registers itself as grl-lastfm-cover-account_<snip>_0-music , depending on the personal key of the user.

This makes it hard to elevate the plugin rank, because the environment var GRL_PLUGIN_RANKS doesn't work with matching : grl-lastfm-cover*:4 .

eg. gnome-music hardcodes plugin ranks currently and this makes that impossible it seems.
Comment 1 Marinus Schraal 2016-02-11 10:03:41 UTC
I assume this is with GOA enabled only by the way.
Comment 2 Marinus Schraal 2016-02-19 16:12:42 UTC
Created attachment 321670 [details] [review]
allow glob matching of GRL_PLUGIN_RANKS

Patch allows for glob pattern matching for GRL_PLUGIN_RANKS. Eg "grl-lastfm-cover*:4"
Comment 3 Victor Toso 2016-06-16 13:39:29 UTC
Review of attachment 321670 [details] [review]:

Please include a commit message about the patch.

Looks okay to me.

::: src/grl-registry.c
@@ +392,3 @@
+    g_hash_table_iter_init(&iter, registry->priv->ranks);
+
+    const gchar *key = NULL;

Declare/assgin it before g_hash_table_iter_init
Comment 4 Marinus Schraal 2016-06-17 10:52:40 UTC
Created attachment 329940 [details] [review]
registry: Glob pattern matching for plugin ranks

Source names can be constructed partially with unique identifiers,
making it difficult to match directly to the static identifiers in
GRL_PLUGIN_RANKS. This patch introduces glob pattern matching for
GRL_PLUGIN_RANKS, which allows for example
GRL_PLUGIN_RANKS="grl-lastfm-cover*:3".


As mentioned in chat, this will do a glob match for every plugin that is 
not already directly a 1-on-1 full match with an entry in 
GRL_PLUGIN_RANKS. Effectively that's gonna be most plugins in most 
cases I think, because  GRL_PLUGIN_RANKS is not always used or only 
lists those plugins with non-default ranks.
Comment 5 GNOME Infrastructure Team 2018-09-24 09:40:40 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/grilo/issues/78.