diff options
author | Bastien Nocera <hadess@hadess.net> | 2015-07-26 19:11:41 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2015-08-07 20:04:42 +0200 |
commit | 4dbb4f0f892f20c4fc411920bf74c503d1df22e5 (patch) | |
tree | 2cd7525ba0d2e10b47d2a8971a94c1f5e5b01274 /src | |
parent | e1a233da573b6c2b120fc874268327ae44b2d371 (diff) | |
download | grilo-plugins-4dbb4f0f892f20c4fc411920bf74c503d1df22e5.tar.gz |
lua-factory: Re-add "Music" GOA support
Now that it's been merged into gnome-online-accounts.
This reverts commit ba242009e67638d5139a54a7c49eb6eaa6926bd9.
https://bugzilla.gnome.org/show_bug.cgi?id=752899
Diffstat (limited to 'src')
-rw-r--r-- | src/lua-factory/grl-lua-factory.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lua-factory/grl-lua-factory.c b/src/lua-factory/grl-lua-factory.c index 675e85f..f3b1e16 100644 --- a/src/lua-factory/grl-lua-factory.c +++ b/src/lua-factory/grl-lua-factory.c @@ -664,6 +664,15 @@ enable_goa_source (GrlLuaGoaData *lua_data, if (goa_account_get_photos_disabled (acc) && g_hash_table_contains (lua_data->sources, *source_id_suffix)) return GOA_REMOVE; + } else if (g_strcmp0 (feature, "music") == 0) { + if (!goa_object_peek_music (object)) + return GOA_NOTHING; + if (!goa_account_get_music_disabled (acc) && + !g_hash_table_contains (lua_data->sources, *source_id_suffix)) + return GOA_ADD; + if (goa_account_get_music_disabled (acc) && + g_hash_table_contains (lua_data->sources, *source_id_suffix)) + return GOA_REMOVE; } else if (g_strcmp0 (feature, "read-later") == 0) { if (!goa_object_peek_read_later (object)) return GOA_NOTHING; @@ -882,6 +891,7 @@ validate_account_feature (const char *lua_account_feature) const char const *features[] = { "photos", "read-later", + "music", NULL }; |