Release - TIDAL music (former WiMP)

  Thread Rating:
  • 6 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
r4star Offline
Junior Member
Posts: 2
Joined: Apr 2017
Reputation: 0
Post: #286
Thanks Arneson,

Your streaming quality comment made me check overall streaming and I noticed it was doing the same thing with music on my NAS. Turns out it was a recent tweak to advanced settings that was causing the issue. Perhaps a buffering setting causing it to skip songs. All good now!

(2017-05-02 10:07)arneson Wrote:  Hi r4star and r0mn,

you can change the streaming quality options in the Addon Settings.

@r4star: If you have problems with HTTP streaming in HIGH Quality (320kbps) you can try the Music Streaming Option "RTMP Protocol for HIGH/LOW Quality". This Protocol uses different streaming servers. Sometime the "normal" HTTP streaming servers are overloaded.

I hope that could resolve your problems.

arneson
find quote
r0mn Offline
Junior Member
Posts: 3
Joined: Apr 2017
Reputation: 0
Post: #287
Thanks Arneson for your reply.

It should be trivial, but I just cannot find the Addon Settings on OSMC Raspberry. What an UI! ;>
I was trying to do this by modifying setting files but was still unsuccessful in switching to HiFi/lossless Tidal2 playback..

Could someone please point me to where the Tidal2 Addon Settings are? Thanks in advance.
find quote
arneson Offline
Junior Member
Posts: 45
Joined: Aug 2016
Reputation: 13
Post: #288
(2017-05-03 07:24)r0mn Wrote:  Thanks Arneson for your reply.

It should be trivial, but I just cannot find the Addon Settings on OSMC Raspberry. What an UI! ;>
I was trying to do this by modifying setting files but was still unsuccessful in switching to HiFi/lossless Tidal2 playback..

Could someone please point me to where the Tidal2 Addon Settings are? Thanks in advance.

Hi r0mn,

you can reach the Settings with the context menue on the selected TDAL2 Icon. Key 'c' on the keyboard.

Or you select the Addon in the Kodi Settings where all Addons can be installed and removed. This depends on the Skin you use.

arneson
find quote
r0mn Offline
Junior Member
Posts: 3
Joined: Apr 2017
Reputation: 0
Post: #289
The key 'c' on the keyboard worked perfectly. Thanks a lot, arneson!
Now I'm enjoying high fidelity sound using Tidal2 addon from my Rapberry PI with DAC.

If I may make a suggestion on the addon then I would use a default color of the font, not the bright blue. Does not look good on OSMC.
It also appears on a remote control app (Official Kodi Remote for iOS, for example) as [COLOR blue] <text> [/COLOR] in plain text instead of the actual color.
find quote
fedey Offline
Junior Member
Posts: 1
Joined: May 2017
Reputation: 0
Post: #290
Hi,

yesterday I installed the newest OSMC on Raspberry Pi 3. I can log in to TIDAL account, I can navigate through menu items, but when I try to play a song, I get a "sad face" on the screen and the interface restarts in the main menu.

I checked if it happens only in Estuary skin - it turns out it behaves like that also in the old skin, too.

I installed the TIDAL plugin from repository. Any ideas what can I do to fix this?
find quote
nambuco Offline
Junior Member
Posts: 2
Joined: May 2017
Reputation: 0
Post: #291
(2017-05-11 10:01)fedey Wrote:  Hi,

yesterday I installed the newest OSMC on Raspberry Pi 3. I can log in to TIDAL account, I can navigate through menu items, but when I try to play a song, I get a "sad face" on the screen and the interface restarts in the main menu.

I checked if it happens only in Estuary skin - it turns out it behaves like that also in the old skin, too.

I installed the TIDAL plugin from repository. Any ideas what can I do to fix this?
Same issue here, new OSMC installation 2017.04-1 on Raspi 3.

Tried to change TIDAL add-on settings to lossless, similar problem....
find quote
arneson Offline
Junior Member
Posts: 45
Joined: Aug 2016
Reputation: 13
Post: #292
(2017-05-17 03:39)nambuco Wrote:  
(2017-05-11 10:01)fedey Wrote:  Hi,

yesterday I installed the newest OSMC on Raspberry Pi 3. I can log in to TIDAL account, I can navigate through menu items, but when I try to play a song, I get a "sad face" on the screen and the interface restarts in the main menu.

I checked if it happens only in Estuary skin - it turns out it behaves like that also in the old skin, too.

I installed the TIDAL plugin from repository. Any ideas what can I do to fix this?
Same issue here, new OSMC installation 2017.04-1 on Raspi 3.

Tried to change TIDAL add-on settings to lossless, similar problem....

Hi nambuco and fedey,

the TIDAL addon in the official Kodi Repository has a problem with the login authorization because the API changes in October 2016.
You can try my TIDAL2 Addon from my repository here which can play everything, including Music Videos.

Alternatively you can patch the "API Token" in the original TIDAL Addon to get it working again.
You have to modify the file "wimpy.py" in the addon folder "plugin.audio.wimp\lib\wimpy".
The API Token should be set to 'BI218mwp9ERZ3PFI' and the Addon will work again (after Logout and Login of course).

Code:
class Config(object):
    def __init__(self, quality=Quality.high):
        self.quality = quality
        self.api_location = 'https://api.tidalhifi.com/v1/'
        #self.api_token = 'P5Xbeo5LFvESeDy6' if self.quality == \
        #    Quality.lossless else 'wdgaB1CilGA-S_s2',
        # This new Token works for LOW, HIGH and LOSSLESS quailty
        self.api_token = 'BI218mwp9ERZ3PFI'

I hope that takoi (the author of the TIDAL Addon) will change this in his next version of the Addon.

arneson
find quote
nambuco Offline
Junior Member
Posts: 2
Joined: May 2017
Reputation: 0
Post: #293
Many Thanks Arneson, I changed the "winpy.py" file and it works now !!!!
find quote
Legolover Offline
Junior Member
Posts: 21
Joined: Mar 2015
Reputation: 0
Post: #294
Hello @arneson.

I now get a Tidal2 Error 401 when I try to play any videos.
Music plays fine though.

Snippet from kodi.log:

22:35:34.521 T:10724 ERROR: [TIDAL2] lib.tidalapi: https://api.tidal.com/v1/videos/73214565...tryCode=NO
22:35:34.521 T:10724 ERROR: [TIDAL2] lib.tidalapi: Asset is not ready for playback
22:35:34.521 T:10724 ERROR: Traceback (most recent call last):
22:35:34.521 T:10724 ERROR: File "C:\Users\omr\AppData\Roaming\Kodi\addons\plugin.audio.tidal2\addon.py", line 592, in <module>
22:35:34.521 T:10724 ERROR: plugin.run()
22:35:34.521 T:10724 ERROR: File "C:\Users\omr\AppData\Roaming\Kodi\addons\script.module.routing\lib\routing.py", line 109, in run
22:35:34.522 T:10724 ERROR: self._dispatch(path)
22:35:34.522 T:10724 ERROR: File "C:\Users\omr\AppData\Roaming\Kodi\addons\script.module.routing\lib\routing.py", line 120, in _dispatch
22:35:34.522 T:10724 ERROR: view_func(**kwargs)
22:35:34.522 T:10724 ERROR: File "C:\Users\omr\AppData\Roaming\Kodi\addons\plugin.audio.tidal2\addon.py", line 578, in play_video
22:35:34.522 T:10724 ERROR: media_url = session.get_video_url(video_id)
22:35:34.522 T:10724 ERROR: File "C:\Users\omr\AppData\Roaming\Kodi\addons\plugin.audio.tidal2\lib\koditidal2.py", line 378, in get_video_url
22:35:34.522 T:10724 ERROR: url = TidalSession.get_video_url(self, video_id, maxHeight)
22:35:34.522 T:10724 ERROR: File "C:\Users\omr\AppData\Roaming\Kodi\addons\plugin.audio.tidal2\lib\koditidal.py", line 710, in get_video_url
22:35:34.522 T:10724 ERROR: url = Session.get_video_url(self, video_id)
22:35:34.522 T:10724 ERROR: File "C:\Users\omr\AppData\Roaming\Kodi\addons\plugin.audio.tidal2\lib\tidalapi\__init​__.py", line 425, in get_video_url
22:35:34.522 T:10724 ERROR: r = self.request('GET', 'videos/%s/streamUrl' % video_id)
22:35:34.522 T:10724 ERROR: File "C:\Users\omr\AppData\Roaming\Kodi\addons\plugin.audio.tidal2\lib\tidalapi\__init​__.py", line 164, in request
22:35:34.522 T:10724 ERROR: r.raise_for_status()
22:35:34.522 T:10724 ERROR: File "C:\Users\omr\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\mod​els.py", line 893, in raise_for_status
22:35:34.523 T:10724 ERROR: raise HTTPError(http_error_msg, response=self)
22:35:34.523 T:10724 ERROR: HTTPError: 401 Client Error: Unauthorized for url: https://api.tidal.com/v1/videos/73214565...tryCode=NO
22:35:34.550 T:3232 ERROR: Playlist Player: skipping unplayable item: 32, path [plugin://plugin.audio.tidal2/play_video/73214565]

Intel i5 4690, 16GB RAM, 250GB M.2 SSD(OS), 1x 1TB WD Green, 3x 2TB WD Green, 2x 3TB WD Green, intel HD4600
Windows 10 Pro 64Bit, DVBLink server 6.0.0 TVSource 6.0.0 , 4xDD DVBC tuners, Kodi 17.2RC1
find quote
arneson Offline
Junior Member
Posts: 45
Joined: Aug 2016
Reputation: 13
Post: #295
(2017-05-23 22:45)Legolover Wrote:  Hello @arneson.

I now get a Tidal2 Error 401 when I try to play any videos.
Music plays fine though.

Snippet from kodi.log:

22:35:34.521 T:10724 ERROR: [TIDAL2] lib.tidalapi: https://api.tidal.com/v1/videos/73214565...tryCode=NO
22:35:34.521 T:10724 ERROR: [TIDAL2] lib.tidalapi: Asset is not ready for playback
22:35:34.521 T:10724 ERROR: Traceback (most recent call last):
.......
22:35:34.523 T:10724 ERROR: HTTPError: 401 Client Error: Unauthorized for url: https://api.tidal.com/v1/videos/73214565...tryCode=NO
22:35:34.550 T:3232 ERROR: Playlist Player: skipping unplayable item: 32, path [plugin://plugin.audio.tidal2/play_video/73214565]

Hello Legolover,

Which streaming options do use in the Addon Settings ?
Do you get the same error for all videos ?

This can have several reasons, for instance:
  • Your session ID is too old and the TIDAL video servers dont't detect your session ID anymore
  • This Video is not available in your country
  • The TIDAL2 Addon is running on more than one Kodi-Box with your User profile and the TIDAL Server detects that you requested streams from multiple Sessions at the same time.

Please try to logout and login again to get fresh Session-IDs or try other streaming options.

arneson
find quote
Shadynas1y Offline
Junior Member
Posts: 2
Joined: Jun 2017
Reputation: 0
Post: #296
I had to reinstall Kodi the other day, using the uwp app causes you to lose all add-ons and data when you uninstall. All of my other add-ons work fine but the Tidal2 add on. When trying to do anything such as viewing favorite tracks to looking at music videos, causes my kodi to enter the never ending wheel then eventually crashing to my desktop.

some of the log is posted below, i only took a small chunk but the last lines just keep repeating until the crash or i force close it by task manager.

Code:
00:43:47.933 T:12144   ERROR: XFILE::CDirectory::GetDirectory - Error getting
00:43:55.345 T:10188   ERROR: Previous line repeats 3 times.
00:43:55.345 T:10188  SEVERE: [TIDAL2] tidalapi: GET https://api.tidal.com/v1/genres?countryCode=CA
00:44:00.457 T:10008  SEVERE: Previous line repeats 1 times.
00:44:00.457 T:10008  SEVERE: [TIDAL2] tidalapi: GET https://api.tidal.com/v1/genres/Hiphop/videos?limit=999&countryCode=CA
00:44:00.466 T:10008  SEVERE: [TIDAL2] tidalapi: NumberOfItems=326, 312 items in list
00:44:00.467 T:10008  NOTICE: [TIDAL2] Loaded 714 Favorites from disk.
00:44:00.834 T:10008  SEVERE: [TIDAL2] tidalapi: GET https://api.tidal.com/v1/users/41532817/playlists?limit=9999&countryCode=CA
00:44:00.844 T:10008  SEVERE: [TIDAL2] tidalapi: NumberOfItems=572, 572 items in list
00:44:01.176 T:10008  SEVERE: [TIDAL2] tidalapi: GET https://api.tidal.com/v1/playlists/b5783873-a0e4-4ed1-bdcf-cfea4495c84e/tracks?limit=9999&countryCode=CA
00:44:01.177 T:10008  SEVERE: [TIDAL2] tidalapi: NumberOfItems=46, 46 items in list
00:44:01.518 T:10008  SEVERE: [TIDAL2] tidalapi: GET https://api.tidal.com/v1/playlists/ca97a04e-7e7a-40a9-9e64-1f6ffa830a9e/tracks?limit=9999&countryCode=CA
00:44:01.521 T:10008  SEVERE: [TIDAL2] tidalapi: NumberOfItems=78, 78 items in list
00:44:01.980 T:10008  SEVERE: [TIDAL2] tidalapi: GET https://api.tidal.com/v1/playlists/17b31f31-5165-453d-98c3-034a7d72ad88/tracks?limit=9999&countryCode=CA
00:44:01.986 T:10008  SEVERE: [TIDAL2] tidalapi: NumberOfItems=190, 190 items in list
00:44:02.442 T:10008  SEVERE: [TIDAL2] tidalapi: GET https://api.tidal.com/v1/playlists/1fdfe50b-96e9-4839-8388-b447f35965b0/tracks?limit=9999&countryCode=CA
00:44:02.449 T:10008  SEVERE: [TIDAL2] tidalapi: NumberOfItems=194, 194 items in list
00:44:03.091 T:10008  SEVERE: [TIDAL2] tidalapi: GET https://api.tidal.com/v1/playlists/2aa036cb-9d3d-4ac2-ab12-b72152a1d02c/tracks?limit=9999&countryCode=CA
00:44:03.097 T:10008  SEVERE: [TIDAL2] tidalapi: NumberOfItems=186, 186 items in list
00:44:03.627 T:10008  SEVERE: [TIDAL2] tidalapi: GET https://api.tidal.com/v1/playlists/ea2d7f77-e6a7-42b2-bc49-bf1b9e3de085/tracks?limit=9999&countryCode=CA
00:44:03.636 T:10008  SEVERE: [TIDAL2] tidalapi: NumberOfItems=257, 257 items in list
00:44:04.015 T:10008  SEVERE: [TIDAL2] tidalapi: GET https://api.tidal.com/v1/playlists/c6e56530-9153-44ef-bc9f-809b1e617dd5/tracks?limit=9999&countryCode=CA
00:44:04.018 T:10008  SEVERE: [TIDAL2] tidalapi: NumberOfItems=64, 64 items in list
00:44:04.453 T:10008  SEVERE: [TIDAL2] tidalapi: GET https://api.tidal.com/v1/playlists/f7bc5fd5-1f6a-407e-91b0-56015121e245/tracks?limit=9999&countryCode=CA
00:44:04.458 T:10008  SEVERE: [TIDAL2] tidalapi: NumberOfItems=131, 131 items in list
00:44:04.824 T:10008  SEVERE: [TIDAL2] tidalapi: GET https://api.tidal.com/v1/playlists/1a8c39dc-93b2-4d80-af5a-ce08f3b7c22f/tracks?limit=9999&countryCode=CA
00:44:04.828 T:10008  SEVERE: [TIDAL2] tidalapi: NumberOfItems=115, 115 items in list
00:44:05.316 T:10008  SEVERE: [TIDAL2] tidalapi: GET https://api.tidal.com/v1/playlists/ad2da11c-02c3-4218-985a-9976e4d8db69/tracks?limit=9999&countryCode=CA
00:44:05.322 T:10008  SEVERE: [TIDAL2] tidalapi: NumberOfItems=158, 158 items in list
00:44:05.704 T:10008  SEVERE: [TIDAL2] tidalapi: GET https://api.tidal.com/v1/playlists/0d6514b5-3cc8-4aa5-8f05-19ccc00bd015/tracks?limit=9999&countryCode=CA
00:44:05.707 T:10008  SEVERE: [TIDAL2] tidalapi: NumberOfItems=65, 65 items in list
00:44:06.201 T:10008  SEVERE: [TIDAL2] tidalapi: GET https://api.tidal.com/v1/playlists/5234b9d5-b324-4814-842f-f087af6dc629/tracks?limit=9999&countryCode=CA
00:44:06.210 T:10008  SEVERE: [TIDAL2] tidalapi: NumberOfItems=238, 238 items in list
00:44:07.154 T:10008  SEVERE: [TIDAL2] tidalapi: GET https://api.tidal.com/v1/playlists/930c65da-73ff-404e-bec8-7a6dfa8b442a/tracks?limit=9999&countryCode=CA
00:44:07.175 T:10008  SEVERE: [TIDAL2] tidalapi: NumberOfItems=617, 617 items in list
00:44:07.614 T:5636  NOTICE: Storing total System Uptime
00:44:07.614 T:5636  NOTICE: Saving settings
00:44:07.619 T:5636  NOTICE: Saving skin settings
00:44:07.622 T:5636  NOTICE: stop all
00:44:07.928 T:10008  SEVERE: [TIDAL2] tidalapi: GET https://api.tidal.com/v1/playlists/6256a3a7-b9f4-4d78-810f-e9d975ac2cab/tracks?limit=9999&countryCode=CA
00:44:07.939 T:10008  SEVERE: [TIDAL2] tidalapi: NumberOfItems=312, 312 items in list
00:44:08.350 T:10008  SEVERE: [TIDAL2] tidalapi: GET https://api.tidal.com/v1/playlists/59952eb7-9fac-443a-a306-47e4a7fe9884/tracks?limit=9999&countryCode=CA
00:44:08.353 T:10008  SEVERE: [TIDAL2] tidalapi: NumberOfItems=80, 80 items in list
00:44:08.940 T:10008  SEVERE: [TIDAL2] tidalapi: GET https://api.tidal.com/v1/playlists/95ee4f1f-9a24-4f52-b25b-a38641f94f4a/tracks?limit=9999&countryCode=CA
00:44:08.951 T:10008  SEVERE: [TIDAL2] tidalapi: NumberOfItems=300, 300 items in list

Thanks for any help.
find quote
arneson Offline
Junior Member
Posts: 45
Joined: Aug 2016
Reputation: 13
Post: #297
(2017-06-19 05:54)Shadynas1y Wrote:  I had to reinstall Kodi the other day, using the uwp app causes you to lose all add-ons and data when you uninstall. All of my other add-ons work fine but the Tidal2 add on. When trying to do anything such as viewing favorite tracks to looking at music videos, causes my kodi to enter the never ending wheel then eventually crashing to my desktop.

some of the log is posted below, i only took a small chunk but the last lines just keep repeating until the crash or i force close it by task manager.
...

Thanks for any help.

Hello Shadynas1y,

Code:
00:44:00.834 T:10008  SEVERE: [TIDAL2] tidalapi: GET https://api.tidal.com/v1/users/41532817/playlists?limit=9999&countryCode=CA
00:44:00.844 T:10008  SEVERE: [TIDAL2] tidalapi: NumberOfItems=572, 572 items in list

Wow: This line says, that you have 572 !!! User-Playlists, is this correct ?

The TIDAL2 Addon creates a Cache file "playlists.cfg" for all User Playlist entries and saves it into the userdata folder
plugin.audio.tidal2 where the addon settings are saved too.

If you make a clean install of the TIDAL2 Addon there is no Cache File and the Addon rebuilds it automatically.
It can take a while to load all entries of your 572 Playlists. Maybe the python runtime runs out of memory because
the Addon has to read all Playlist items.

Why do you have so many playlists ? Do you have complete Albums in your Playlists ?

If you want to put complete Albums into your Playlists you can user my "Album-Playlist" feature. When you insert the word ALBUM
in the Playlist description this Playlist will be shown as an Album list. Then you only have to put 1 Track of each Album into the
playlist. This makes playlists shorter and you can make Playlsts with Album Collections which also reduce the number of Playlists.

Do you have a Backup of the Userdata folder plugin.audio.tidal2 ?
Then you can restore the playlist.cfg file. When the addon updates the cache file it will only read the playlists which have been changed.

I hope this can help.
Addidionally I will check my code for a memory leak when it updates the playlist cache file.

arneson
find quote
Shadynas1y Offline
Junior Member
Posts: 2
Joined: Jun 2017
Reputation: 0
Post: #298
I was signed up for spotify and imported the playlists to tidal when i switched. After deleting the playlists the app works fine now.

Thank you very much for the help!
find quote
Legolover Offline
Junior Member
Posts: 21
Joined: Mar 2015
Reputation: 0
Post: #299
(2017-05-24 17:13)arneson Wrote:  Please try to logout and login again to get fresh Session-IDs or try other streaming options.

arneson

Have logged off/on several times, even deleted the unique id.
Have tried all streaming options for both music and video.

All videos fail, all music plays OK. Premium account.
Same problem on several clients that used to work OK.

Maybe I could use Wire Shark and check what URL the desktop app opens?

Intel i5 4690, 16GB RAM, 250GB M.2 SSD(OS), 1x 1TB WD Green, 3x 2TB WD Green, 2x 3TB WD Green, intel HD4600
Windows 10 Pro 64Bit, DVBLink server 6.0.0 TVSource 6.0.0 , 4xDD DVBC tuners, Kodi 17.2RC1
(This post was last modified: 2017-06-22 20:16 by Legolover.)
find quote
arneson Offline
Junior Member
Posts: 45
Joined: Aug 2016
Reputation: 13
Post: #300
(2017-06-22 19:59)Legolover Wrote:  Have logged off/on several times, even deleted the unique id.
Have tried all streaming options for both music and video.

All videos fail, all music plays OK. Premium account.
Same problem on several clients that used to work OK.

Maybe I could use Wire Shark and check what URL the desktop app opens?

Hello Logolover,

I found out that TIDAL changes the query URL to retreive video stream URLs.
My next version contains the new query method.

Before I put this new version into my repository I would ask you to test this version
because I'm not sure if this version will work in your country.
Here in Germany both methods (old and new query URLs) work to get video streams.

Please test this version (V2.0.0-beta15) if the videos are working with it:
https://github.com/arnesongit/repository...beta15.zip

This is the changelog for Version 2.0.0-beta15:
  • TIDAL now returns a flag for MQA Master for each Track and Album
  • Changed method to retrieve the Video stream URL (TIDAL changed the query URL)
  • Inserted Track version into its title
  • Included Addon-Settings to main menu

I hope this will work ...

arneson
find quote
Post Reply