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 - wrayan - 2015-01-24

Gave a4 a try. The error in composers view is gone but the other two I reported in #181 (type error when manually updating library via context menu and the unicode problem in search) are still present.

I took a closer look at that type error. If I replace handle1 with int(sys.argv[1]) in line 92 of GoogleMusicNavigation.py, the error is gone and I'm just getting a warning "invalid handle -1" instead. I really don't understand why that change should make any difference though.


RE: Experimental Google Music Addon - corpgator - 2015-01-24

Yeah, not a search error as I'm getting it in other places. I'll throw up a full log this weekend.


RE: Experimental Google Music Addon - foreverguest - 2015-01-24

Ok, I can see the type error, but no unicode problem. Which search string are you using?


RE: Experimental Google Music Addon - wrayan - 2015-01-24

@foreverguest yeah the unicode problem is very rare. I only saw it with the search string 'toto' as mentioned in #181 so far, though I performed _lots_ of other queries including artists and titles containing various non-ascii characters.


RE: Experimental Google Music Addon - corpgator - 2015-01-24

Ok, pastebin is here.

http://pastebin.com/mndmFyR5

I'm getting the first error you see when I try to clear my cookie. The others are when I'm navigating around the add-on. Half the albums I search for show up empty. Others that used to be in my library are empty too. Another case you see is Charles Mingus Tijuana Moods. There are two versions of the album, the original and a newer one with supplemental material. Both show the supplemental track listing, though.


RE: Experimental Google Music Addon - foreverguest - 2015-01-25

Hope this one fix all your problems:

plugin.audio.googlemusic.exp-1.3alpha5


RE: Experimental Google Music Addon - corpgator - 2015-01-25

Better this time. Was able to clear cookie and cache. All my albums have songs again and stuff showed up that hadn't for months, but still getting errors and search returning lots of empty albums.

http://pastebin.com/uNc3P32E

Thanks for the quick response and hard work!


RE: Experimental Google Music Addon - dunny_ - 2015-01-25

Thanks very much for all the effort so far, the app keeps getting better and better.

One thing or 'bug' ive noticed is when i search an artist and it gives me the albums. When i click on the album it displays the album tracks plus lots of songs that are similar to the album name.

So i search Knife Party
It displays Knife Party - Abandon Ship
I click on Abandon Ship and am shown the album tracks plus Abandon Ship by Less Than Jake.

Im not sure whether this is intentional or a bug.



If i could request a feature it would be to add the option to 'Play next track' if that is possible?

Thankyou for the hard work!


RE: Experimental Google Music Addon - wrayan - 2015-01-25

@foreverguest both errors are still there Sad

Regarding the search query error with string 'toto' - I added some debugging output and exception handling for UnicodeDecodeError to the result['albums'] loop to see what exactly is causing the problem. Here's the result:

Code:
14:51:32 T:140393001666304  NOTICE: [GoogleMusicEXP-1.3alpha5] API search results: tracks 363 albums 55 artists 50
14:51:32 T:140393001666304  NOTICE: debug
14:51:32 T:140393001666304  NOTICE: debug - entry: 0
14:51:32 T:140393001666304  NOTICE: debug - album[0] <type 'str'> value: Milestones - Toto
14:51:32 T:140393001666304  NOTICE: debug - album[1] <type 'str'> value: Toto
14:51:32 T:140393001666304  NOTICE: debug - album[2] <type 'str'> value: http://lh6.ggpht.com/no0CCAXoJdqA5VioGAhBsrxA0slQJiAGmzeUYspuW4gJ11KBITmLGztK7Xshs7Ipps5oz5-i
14:51:32 T:140393001666304  NOTICE: debug
14:51:32 T:140393001666304  NOTICE: debug - entry: 1
14:51:32 T:140393001666304  NOTICE: debug - album[0] <type 'str'> value: Steel Box Collection: Toto Greatest Hits
14:51:32 T:140393001666304  NOTICE: debug - album[1] <type 'str'> value: Toto
14:51:32 T:140393001666304  NOTICE: debug - album[2] <type 'str'> value: http://lh6.ggpht.com/q9RSNBWXGXYTZlMChkBTuMBzXdzfdNA--mbb7X8aN_Y1g_51wjuVV7teaR1uapItvBKGurQPqtg
14:51:32 T:140393001666304  NOTICE: debug
14:51:32 T:140393001666304  NOTICE: debug - entry: 2
14:51:32 T:140393001666304  NOTICE: debug - album[0] <type 'str'> value: The Essential Toto
14:51:32 T:140393001666304  NOTICE: debug - album[1] <type 'str'> value: Toto
14:51:32 T:140393001666304  NOTICE: debug - album[2] <type 'str'> value: http://lh6.ggpht.com/yZOgxZkXt5RNAc11znRfTbrDvGI-i3zY95S069ACrUJznBAkGRSxCtecFN9BFtzzn1n8L4bCfg
14:51:32 T:140393001666304  NOTICE: debug
14:51:32 T:140393001666304  NOTICE: debug - entry: 3
14:51:32 T:140393001666304  NOTICE: debug - album[0] <type 'str'> value: Toto IV
14:51:32 T:140393001666304  NOTICE: debug - album[1] <type 'str'> value: Toto
14:51:32 T:140393001666304  NOTICE: debug - album[2] <type 'str'> value: http://lh6.ggpht.com/rcsNPBz7ooVg6N7bfl2wNNgBqrSX7J8kuMR3ywhVs4GszHK28iMqW1t7NSdaJrc4cdH4bCA
14:51:32 T:140393001666304  NOTICE: debug
14:51:32 T:140393001666304  NOTICE: debug - entry: 4
14:51:32 T:140393001666304  NOTICE: debug - album[0].encode('utf8') error: 'ascii' codec can't decode byte 0xc3 in position 16: ordinal not in range(128)
14:51:32 T:140393001666304  NOTICE: debug - album[0] <type 'str'> value: Toto IV (Alben für die Ewigkeit)
14:51:32 T:140393001666304  NOTICE: debug - album[1] <type 'str'> value: Toto
14:51:32 T:140393001666304  NOTICE: debug - album[2] <type 'str'> value: http://lh6.ggpht.com/mXRvMRW4pJScY_o_hYqCf8ykl3fWwSDMIBd4BNfEu1GDVE2Fa4_PYTotAcZvoI7-Up6-AbOwLw
14:51:32 T:140393001666304  NOTICE: debug
14:51:32 T:140393001666304  NOTICE: debug - entry: 5
14:51:32 T:140393001666304  NOTICE: debug - album[0] <type 'unicode'> value: Toto IV
14:51:32 T:140393001666304  NOTICE: debug - album[1] <type 'unicode'> value: Toto
14:51:32 T:140393001666304  NOTICE: debug - album[2] <type 'unicode'> value: http://lh3.ggpht.com/vnjueJsQizrrJXuAPsCujT_UB6YbDaoVWvYOvh15JDjMIDTWYJrVrZ_YCexPBVzTLCzvN7V7Qw
14:51:32 T:140393001666304  NOTICE: debug
14:51:32 T:140393001666304  NOTICE: debug - entry: 6
14:51:32 T:140393001666304  NOTICE: debug - album[0] <type 'unicode'> value: The Essential Toto
14:51:32 T:140393001666304  NOTICE: debug - album[1] <type 'unicode'> value: Toto
14:51:32 T:140393001666304  NOTICE: debug - album[2] <type 'unicode'> value: http://lh4.ggpht.com/oLRpne1cg0puZpwbkGsxFjVt57fFkWZeeK1cKIlZNPgFTqaCz21LDyE0gxkNwSHWzRbeRTv2
14:51:32 T:140393001666304  NOTICE: debug
14:51:32 T:140393001666304  NOTICE: debug - entry: 7
14:51:32 T:140393001666304  NOTICE: debug - album[0] <type 'unicode'> value: 35th Anniversary Tour – Live in Poland
14:51:32 T:140393001666304  NOTICE: debug - album[1] <type 'unicode'> value: Toto
14:51:32 T:140393001666304  NOTICE: debug - album[2] <type 'unicode'> value: http://lh5.ggpht.com/9W3IwBtKNtB6tG2xh17821fiVfKX0TJv37ah-sAV9f4r6tj1V90qQQ5fsxxPjX-C3KUa0srS
14:51:32 T:140393001666304  NOTICE: debug
14:51:32 T:140393001666304  NOTICE: debug - entry: 8
14:51:32 T:140393001666304  NOTICE: debug - album[0] <type 'unicode'> value: The Seventh One
14:51:32 T:140393001666304  NOTICE: debug - album[1] <type 'unicode'> value: Toto
14:51:32 T:140393001666304  NOTICE: debug - album[2] <type 'unicode'> value: http://lh4.ggpht.com/mShkDZnoDqiGDNndbOEW8CQ53LO2ObGV5B2C-yGEiSeou2CL0uuj5Q1wOlB7d6itbHjld5SQCg
14:51:32 T:140393001666304  NOTICE: debug
14:51:32 T:140393001666304  NOTICE: debug - entry: 9
14:51:32 T:140393001666304  NOTICE: debug - album[0] <type 'unicode'> value: Dune
14:51:32 T:140393001666304  NOTICE: debug - album[1] <type 'unicode'> value: Toto
14:51:32 T:140393001666304  NOTICE: debug - album[2] <type 'unicode'> value: http://lh3.ggpht.com/YzK3Pxx5oeHH2u0RTaEzvgTqWKI_SlOjTo0EDLHdiJFJD7wqsx-_4iV-yJ8b8murNpMETvZTFQ

(...and so on, stripped results 10 to 54)

So, the problem occurs on entry 4 album[0] "Toto IV (Alben für die Ewigkeit)". I noticed that album[0] for the first five albums is of type string instead of unicode, which was never the case in any other search queries I performed, so this might be part of the problem. Anyway, that's as far as I can get with my limited python knowledge, hope it helps.


RE: Experimental Google Music Addon - corpgator - 2015-01-25

By the way, in the last few versions, something changed in the default order and now everything is jumbled randomly. I have to keep changing it to track order and sometimes that doesn't even work.


RE: Experimental Google Music Addon - foreverguest - 2015-01-26

plugin.audio.googlemusic.exp-1.3alpha6
- another try to fix unicode error in search
- better search result for album/artists, should prevent empty albums or extra tracks


RE: Experimental Google Music Addon - Lmpted - 2015-01-26

I've just started playing with these gmusic addons and tested the earlier 1.3alpha5 which works great on my raspberry pi (openelec testbuilds), fast and nice ui. Cheers!


RE: Experimental Google Music Addon - wrayan - 2015-01-26

@foreverguest yes, the encoding issue is gone, just getting a notice "ENCODING FAIL!!!@ utf8" in log as expected but there seem to be no usability side effects, I can browse and play all albums in search result.

The empty albums/extra tracks issue is still present however. If I got this correctly, when clicking on an album in the search result list, another query using the album title as search string is performed to get the tracks and that's part of the problem. If I do this in Google Music web interface, the same thing happens - search for the Album "Toto IV" there for example returns not only the tracks in that album but also the same unrelated albums and tracks I see when browsing the search results via the kodi addon. So, I'm wondering wether it's possible to search for the album contents using some unique album id instead of the album title - or, as the per-song album information is available in the search result (sort by album works fine...), I assume it may also be possible to filter search results and just show the songs belonging to this album.


RE: Experimental Google Music Addon - vojtishek - 2015-01-26

@Lmpted, I had a Openelec as well but plugin always freeze when loading albums or suddenly restart (with cross in the middle) when choose Artists. Only thing which is working for me are Playlists.
Could you please provide me version of your Openelec?

Any help is more than appreciated

Thank you


RE: Experimental Google Music Addon - Lmpted - 2015-01-26

(2015-01-26, 16:31)vojtishek Wrote: @Lmpted, I had a Openelec as well but plugin always freeze when loading albums or suddenly restart (with cross in the middle) when choose Artists. Only thing which is working for me are Playlists.
Could you please provide me version of your Openelec?

Any help is more than appreciated

Thank you


No worries, I'm currently running OpenELEC-RPi.arm-Milhouse-20141223210156-r19858-gc75631b.tar which can be found somewhere here. I haven't tested it thoroughly but works fine for me with playlists, I'm feeling lucky, and search. No freezing or restarts.

Plus I've overclocked to 1GHz and run Aeon Nox skin if that matters.