Kodi Community Forum
Release Experimental Google Music Addon - Printable Version

Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Music Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=148)
---- Thread: Release Experimental Google Music Addon (/showthread.php?tid=200640)



RE: Experimental Google Music Addon - foreverguest - 2015-07-20

(2015-07-19, 18:15)iceman9 Wrote: Hi,

I'm trying to install the latest version (1.4alpha4), and it fails installing. It says "Dependencies not met. Contact add-on author". I was able to install version 1.3 but this version doesn't work for me because I always get "invalid credentials" even though I'm using an app-specific password (I have 2-factor auth enabled). I read somewhere it might be due to the fact I pay for Google Play Music Unlimited and there's a problem with 1.3 related to that?

Are there any traces/logs I can give to help debug this, in case it's not a known problem? I'm running XBMC 13.2 on Debian (2:13.2+dfsg1-4 package).

Version 1.3 is not supported and will not work anymore due to changes in login.
Version 1.4alpha4 will not work with 2-factor auth enabled, but should install in XBMC 13.2. I just did a quick test and it installed without problems.
You can check errors in XBMC log (http://kodi.wiki/view/Log_file).


RE: Experimental Google Music Addon - foreverguest - 2015-07-20

(2015-07-20, 18:14)WealthyB Wrote:

Hi All

Firstly, massive kudos to everyone involved in the development of this addon; truly amazing work.

If I may suggest a feature request?

When I do a search via Artist Name it returns matches for "Artists" & "Songs (by that Artist)", but not "Albums (by that Artist)"?
Could this be added to the search results in a future release?
In it's current format, I don't know how to play an album from start to finish unless I actually search via Album Name

Or is there something obvious I'm missing here....
Thanks!

All the searches I do with artist name returns the artist Albums. Check the log for errors.


RE: Experimental Google Music Addon - WealthyB - 2015-07-21

(2015-07-20, 19:06)foreverguest Wrote: All the searches I do with artist name returns the artist Albums. Check the log for errors.

Here's what I think to be the relevant entries in the log? Sorry I've zero programming experience Sad
I've also included the entire log here http://pastebin.com/gYcjmK3J

Thanks in advance for any guidance you can offer!

PHP Code:
00:09:14 T:1876021464  NOTICE: [GoogleMusicEXP-1.4~alpha4API getsearchlagwagon
00
:09:14 T:1864328288   DEBUGwebserverrequest received for /jsonrpc
00
:09:15 T:1876021464   DEBUGPrevious line repeats 8 times.
00:09:15 T:1876021464  NOTICE: [GoogleMusicEXP-1.4~alpha4Loading auth from cache
00
:09:15 T:1876021464   ERROR: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.requests/lib/requests/packages/urllib3/util/ssl_.py:79InsecurePlatformWarningA true SSLContext object is not availableThis prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more informationsee https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
                                              
InsecurePlatformWarning
00
:09:15 T:1876021464   ERROR: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.requests/lib/requests/packages/urllib3/connectionpool.py:769InsecureRequestWarningUnverified HTTPS request is being madeAdding certificate verification is strongly advisedSeehttps://urllib3.readthedocs.org/en/latest/security.html
                                              
InsecureRequestWarning)
00:09:15 T:1876021464  NOTICE: [GoogleMusicEXP-1.4~alpha4] *** NO ALL ACCESS RESULT IN SEARCH *** CallFailure('404 Client Error: Not Found\n(requests kwargs: {\'url\': \'https://mclients.googleapis.com/sj/v1.11/query\', \'headers\': {\'Authorization\': \'<omitted>\'}, \'params\': {\'q\': \'lagwagon\', \'max-results\': 50}, \'method\': \'GET\'})\n(response was: \'{\\n "error": {\\n  "errors": [\\n   {\\n    "domain": "global",\\n    "reason": "notFound",\\n    "message": "Not Found"\\n   }\\n  ],\\n  "code": 404,\\n  "message": "Not Found"\\n }\\n}\\n\')',)
00:09:15 T:1881166432   DEBUGThread JobWorker 1881166432 terminating (autodelete)
00:09:15 T:1781392000   DEBUGbool XFILE::CPluginDirectory::WaitOnScriptResult(const string&, int, const string&, bool)- plugin returned successfully
00
:09:15 T:1876021464    INFOCPythonInvoker(19, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.audio.googlemusic.exp/default.py): script successfully run
00
:09:15 T:1781392000   DEBUGSaving fileitems [plugin://plugin.audio.googlemusic.exp/?path=search]
00:09:15 T:1781392000   DEBUG:   -- items154sort method0ascendingfalse
00
:09:15 T:1878586232  NOTICEThread BackgroundLoader startauto deletefalse
00
:09:15 T:1878586232   DEBUGThread BackgroundLoader 1878586232 terminating
00
:09:15 T:1781392000   DEBUGRetrieveMusicInfo() took 73 msec
00
:09:15 T:1859978360  NOTICEThread BackgroundLoader startauto deletefalse
00
:09:15 T:1859978360   DEBUGThread BackgroundLoader 1859978360 terminating
00
:09:16 T:1969015752  NOTICE: [GoogleMusicEXP-1.4~alpha4API getsearchlagwagon
00
:09:16 T:1876021464    INFOPython script stopped
00
:09:16 T:1876021464   DEBUGThread LanguageInvoker 1876021464 terminating
00
:09:16 T:1864328288   DEBUGwebserverrequest received for /jsonrpc
00
:09:16 T:1969015752  NOTICE: [GoogleMusicEXP-1.4~alpha4Loading auth from cache
00
:09:17 T:1969015752   ERROR: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.requests/lib/requests/packages/urllib3/util/ssl_.py:79InsecurePlatformWarningA true SSLContext object is not availableThis prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more informationsee https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
                                              
InsecurePlatformWarning
00
:09:17 T:1969015752   ERROR: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.requests/lib/requests/packages/urllib3/connectionpool.py:769InsecureRequestWarningUnverified HTTPS request is being madeAdding certificate verification is strongly advisedSeehttps://urllib3.readthedocs.org/en/latest/security.html
                                              
InsecureRequestWarning)
00:09:17 T:1969015752  NOTICE: [GoogleMusicEXP-1.4~alpha4] *** NO ALL ACCESS RESULT IN SEARCH *** CallFailure('404 Client Error: Not Found\n(requests kwargs: {\'url\': \'https://mclients.googleapis.com/sj/v1.11/query\', \'headers\': {\'Authorization\': \'<omitted>\'}, \'params\': {\'q\': \'lagwagon\', \'max-results\': 50}, \'method\': \'GET\'})\n(response was: \'{\\n "error": {\\n  "errors": [\\n   {\\n    "domain": "global",\\n    "reason": "notFound",\\n    "message": "Not Found"\\n   }\\n  ],\\n  "code": 404,\\n  "message": "Not Found"\\n }\\n}\\n\')',)
00:09:17 T:1969015752    INFOCPythonInvoker(18, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.audio.googlemusic.exp/default.py): script successfully run
00
:09:17 T:1781392000   DEBUGbool XFILE::CPluginDirectory::WaitOnScriptResult(const string&, int, const string&, bool)- plugin returned successfully
00
:09:17 T:1781392000   DEBUGSaving fileitems [plugin://plugin.audio.googlemusic.exp/?path=search]
00:09:17 T:1781392000   DEBUG:   -- items154sort method0ascendingfalse
00
:09:17 T:1859973456  NOTICEThread BackgroundLoader startauto deletefalse
00
:09:17 T:1859973456   DEBUGThread BackgroundLoader 1859973456 terminating
00
:09:17 T:1781392000   DEBUGRetrieveMusicInfo() took 81 msec
00
:09:17 T:1969015752    INFOPython script stopped
00
:09:17 T:1969015752   DEBUGThread LanguageInvoker 1969015752 terminating
00
:09:17 T:2017787472  NOTICEThread BackgroundLoader startauto deletefalse
00
:09:17 T:2017787472   DEBUGThread BackgroundLoader 2017787472 terminating 



RE: Experimental Google Music Addon - foreverguest - 2015-07-21

Do you have an All Access account? Or you just have uploaded songs?


RE: Experimental Google Music Addon - MKANET - 2015-07-21

The feature is already there. The first results in a search for an group/artist produces ***Albums*** ffirst.. then, followed by [Album Names]. A search for, "Journey" produces:

*** ALBUMS ***
[Journey] Greatest Hits
[Journey] Escape
[Journey] Frontiers
...
.

Selecting the album name will play all the songs on the album.


(2015-07-20, 18:14)WealthyB Wrote:

Hi All

Firstly, massive kudos to everyone involved in the development of this addon; truly amazing work.

If I may suggest a feature request?

When I do a search via Artist Name it returns matches for "Artists" & "Songs (by that Artist)", but not "Albums (by that Artist)"?
Could this be added to the search results in a future release?
In it's current format, I don't know how to play an album from start to finish unless I actually search via Album Name

Or is there something obvious I'm missing here....
Thanks!



RE: Experimental Google Music Addon - WealthyB - 2015-07-21

(2015-07-21, 04:01)foreverguest Wrote: Do you have an All Access account? Or you just have uploaded songs?

I don't have All Access, these are uploaded songs only.

Two things of note:
1. My library contains 12796 songs, over 1135 Albums & 560 Artists
2. I just replicated this issue with a completely new build of Kodi 15.0 RC2 on a Nexus 6 Device.

Image
*Edit - where you see the songs duplicated in the above these are 2 x different files. (Studio Version & Live Version)

I've included log file for the Nexus 6 for comparison http://pastebin.com/syYAJPnM


RE: Experimental Google Music Addon - foreverguest - 2015-07-22

Ok, found the problem, it's just in uploaded songs search.
Please try version below:
plugin.audio.googlemusic.exp-1.4~alpha5


RE: Experimental Google Music Addon - WealthyB - 2015-07-22

(2015-07-22, 20:48)foreverguest Wrote: Ok, found the problem, it's just in uploaded songs search.
Please try version below:
plugin.audio.googlemusic.exp-1.4~alpha5

It works!! Just did 2 searches on my 15.0 build and I can now see Albums. Out of curiosity can I ask what the issue was, and how come I was affected but other users weren't?

And a heartfelt thank you again, for taking the time out to troubleshoot this and resolve for me Big Grin


RE: Experimental Google Music Addon - foreverguest - 2015-07-22

I guess most people here has an All Access account, where the query is submitted to Google and the addon just shows the result. With uploaded songs the search is done in the local cache and a query for album artists was missing.

Thanks for reporting the bug!


RE: Experimental Google Music Addon - MKANET - 2015-07-26

foreverguest, I really appreciate your support for this this irriplacable Kodi addon. I use it all the time. I'm curious is there any way I can configure this addon so it will automatically update my local music library after I add a Google Music to my library? Currently, I have to manually update my library via this addon's Context menu under My Library for me to start using what I previously just added.

I have my Kodi Watchdog service set to automatically detect and add music/video media. However, it seems to only work with physical media files.


RE: Experimental Google Music Addon - foreverguest - 2015-07-27

In the addon settings you have an option 'Auto update library' where you can update on scheduled frequency.


RE: Experimental Google Music Addon - MKANET - 2015-07-27

Thanks, but, I already have it set for hourly intervals. I was looking for a way to auto-update my music library for real.. similar to how my TV shows, Movies, and Music media get imported via the watchdog service. Is there any way for me to get the watchdog service (or another 3rd party addon) to update my library automatically.

EDIT: ...Or, please consider adding an option to update library immediately (or as soon as possible)? I'd really appreciate it.


RE: Experimental Google Music Addon - foreverguest - 2015-07-27

For now you can create a script to manually remove the file 'googlemusic.db' from .kodi/userdata/Database. Next time you run the addon it will reload all your library.

I'll check if it's possible to add an external call in the the addon to reload the library.


RE: Experimental Google Music Addon - foreverguest - 2015-07-27

News:

Repository:
The addon will be automatically updated when using this repository.

Donations:
I'm accepting donations so I can maintain a subscription to an All Access account and keep coding new features, thanks in advance!
Donations for this addon gratefully accepted.

New version: releasing this version as stable so we can focus work in new features
plugin.audio.googlemusic.exp-1.4
- added Spanish translation by petemir


RE: Experimental Google Music Addon - MKANET - 2015-07-29

Since yesterday, I'm not able to access any of the Google Music submenu items. I tried clearing cache/cookies and deleting the database. No matter what I select in the Google Music menus, it's just ignored. I did also install the Emby addon yesterday; so, maybe, that inadvertently broke this addon? Disabling the Emby addon or re-installing the Google Music addon has no effect.

PS: I GLADLY donated!


I have debug enabled; but, there's very little information in the Kodi log:

Code:
19:06:32 T:1088  NOTICE: [GoogleMusicEXP-1.4~alpha4]  ARGV: ['plugin://plugin.audio.googlemusic.exp/', '1', '']
19:06:32 T:6716   ERROR: CImageLoader::DoWork - Direct texture file loading failed for special://skin/backgrounds/default.jpg
19:06:32 T:1088  NOTICE: [GoogleMusicEXP-1.4~alpha4] Loading auth from cache
19:08:10 T:8936  NOTICE: [GoogleMusicEXP-1.4~alpha4]  ARGV: ['plugin://plugin.audio.googlemusic.exp/', '2', '']
19:08:10 T:7552   ERROR: Control 51 in window 10502 has been asked to focus, but it can't
19:08:10 T:8936  NOTICE: [GoogleMusicEXP-1.4~alpha4] Loading auth from cache
19:08:10 T:8728  NOTICE: Thread BackgroundLoader start, auto delete: false



This forum uses Lukasz Tkacz MyBB addons.