Linux TIDAL2 Addon not working
#1
TIDAL2 Kodi Addon does not work properly.

When tryong to play Tidal-music, I got an error  "Tidal2 error 401, user does not have a valid session".
Tidal Android app works without problems.

See log file:
Code:
2019-09-30 19:00:10.670 T:140012100253440   ERROR: [TIDAL2] tidalapi: https://api.tidal.com/v1/tracks/11414430...tryCode=AT
2019-09-30 19:00:10.673 T:140012100253440   ERROR: [TIDAL2] tidalapi: User does not have a valid session
2019-09-30 19:00:10.673 T:140012100253440   ERROR: Traceback (most recent call last):
2019-09-30 19:00:10.673 T:140012100253440   ERROR:   File "/home/walter/.kodi/addons/plugin.audio.tidal2/addon.py", line 803, in <module>
2019-09-30 19:00:10.674 T:1400122019100253440   ERROR:     plugin.run(argv=newargv)
2019-09-30 19:00:10.674 T:140012100253440   ERROR:   File "/home/walter/.kodi/addons/script.module.routing/lib/routing.py", line 130, in run
2019-09-30 19:00:10.677 T:140012100253440   ERROR:     self._dispatch(self.path)
2019-09-30 19:00:10.677 T:140012100253440   ERROR:   File "/home/walter/.kodi/addons/script.module.routing/lib/routing.py", line 141, in _dispatch
2019-09-30 19:00:10.678 T:140012100253440   ERROR:     view_func(**kwargs)
2019-09-30 19:00:10.678 T:140012100253440   ERROR:   File "/home/walter/.kodi/addons/plugin.audio.tidal2/addon.py", line 737, in play_track
2019-09-30 19:00:10.678 T:140012100253440   ERROR:     media_url = session.get_media_url(track_id, album_id=album_id)
2019-09-30 19:00:10.678 T:140012100253440   ERROR:   File "/home/walter/.kodi/addons/plugin.audio.tidal2/resources/lib/koditidal2.py", line 270, in get_media_url
2019-09-30 19:00:10.679 T:140012100253440   ERROR:     media = self.get_track_url(track_id, quality=soundQuality, cut_id=cut_id)
2019-09-30 19:00:10.679 T:140012100253440   ERROR:   File "/home/walter/.kodi/addons/plugin.audio.tidal2/resources/lib/koditidal.py", line 1166, in get_track_url
2019-09-30 19:00:10.681 T:140012100253440   ERROR:     media = Session.get_track_url(self, track_id, quality=soundQuality, cut_id=cut_id)
2019-09-30 19:00:10.682 T:140012100253440   ERROR:   File "/home/walter/.kodi/addons/plugin.audio.tidal2/resources/lib/tidalapi/__init__.py", line 443, in get_track_url
2019-09-30 19:00:10.683 T:140012100253440   ERROR:     return self._map_request(url,  params=params, ret='track_url')
2019-09-30 19:00:10.683 T:140012100253440   ERROR:   File "/home/walter/.kodi/addons/plugin.audio.tidal2/resources/lib/tidalapi/__init__.py", line 367, in _map_request
2019-09-30 19:00:10.683 T:140012100253440   ERROR:     r = self.request(method, url, params=params, data=data, headers=headers)
2019-09-30 19:00:10.683 T:140012100253440   ERROR:   File "/home/walter/.kodi/addons/plugin.audio.tidal2/resources/lib/tidalapi/__init__.py", line 165, in request
2019-09-30 19:00:10.683 T:140012100253440   ERROR:     r.raise_for_status()
2019-09-30 19:00:10.683 T:140012100253440   ERROR:   File "/home/walter/.kodi/addons/script.module.requests/lib/requests/models.py", line 940, in raise_for_status
2019-09-30 19:00:10.684 T:140012100253440   ERROR:     raise HTTPError(http_error_msg, response=self)
2019-09-30 19:00:10.684 T:140012100253440   ERROR: HTTPError: 401 Client Error: Unauthorized for url: https://api.tidal.com/v1/tracks/11414430...tryCode=AT
2019-09-30 19:00:10.845 T:140013636555520   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.audio.tidal2/play_track/114144302/114144297]
2019-09-30 19:00:12.679 T:140012392195840   ERROR: [TIDAL2] tidalapi: https://api.tidal.com/v1/tracks/11414433...tryCode=AT
2019-09-30 19:00:12.680 T:140012392195840   ERROR: [TIDAL2] tidalapi: User does not have a valid session
Reply
#2
Hi @arneson
I kindly ask you to help

thx wolde
Reply
#3
(2019-09-30, 21:24)wolde Wrote: Hi @arneson
I kindly ask you to help

thx wolde
Hello wolde,

please try to log out and log in again to get a new session ID.
Do you use the latest Version V2.0.0-beta19 ?

Look here: https://forum.kodi.tv/showthread.php?tid...pid2885173

Arneson
Reply
#4
(2019-10-01, 22:27)arneson Wrote: please try to log out and log in again to get a new session ID.
Do you use the latest Version V2.0.0-beta19 ?

Hello Arneson,
I'm still using V2.0.0-beta19

I did follow your suggestion, logged out and logged in again.
Works well now

Thank you very much for assistance.

Enjoy todays Tuesday

wolde
Reply
#5
Hi there!

This question is a long shot, and I'm not sure if this add-on is still developed.

But do you have any information if the new Tidal Connect function will be implemented in this TIDAL add-on, or any other? 
With this, it could completely replace my Librespot connect setup.

Thanks!
Reply
#6
Hello Arneson,

I have a question related to the format of the URL's you are using from Tidal. They appear to be in Apple Lossless MP4 format at 44.1khz, 16bit. This means that if I request an MQA album, I am getting 44.1khz, 16bit (lossless?) instead of the lossy MQA 48khz, 24bit. There are obviously a number of streams available for any given music file.

Do you use this MP4 stream because you feel it's preferable to the lossy MQA stream?

Thanks in advance

geoff
Reply
#7
(2020-12-03, 12:10)geofstro Wrote: Hello Arneson,

I have a question related to the format of the URL's you are using from Tidal. They appear to be in Apple Lossless MP4 format at 44.1khz, 16bit. This means that if I request an MQA album, I am getting 44.1khz, 16bit (lossless?) instead of the lossy MQA 48khz, 24bit. There are obviously a number of streams available for any given music file.

Do you use this MP4 stream because you feel it's preferable to the lossy MQA stream?

Thanks in advance

geoff
Hi geoff,

if a stream is marked as "Master Audio" by TIDAL, the lossless playback stream contains the MQA decoding informations to "unfold" the audio information with a capable DAC decoder.
If the stream is not marked as "Master Audio" the playback stream contains no MQA decoding informations at all.
The TIDAL2 addon requests a "LOSSLESS" playpack stream URL in both cases.
In most cases every MQA track and album is also available as a "Non MQA" version. If you play those streams you will get a 16 bit lossless audio stream.

arneson
Reply
#8
(2020-12-03, 14:11)arneson Wrote:
(2020-12-03, 12:10)geofstro Wrote: Hello Arneson,

I have a question related to the format of the URL's you are using from Tidal. They appear to be in Apple Lossless MP4 format at 44.1khz, 16bit. This means that if I request an MQA album, I am getting 44.1khz, 16bit (lossless?) instead of the lossy MQA 48khz, 24bit. There are obviously a number of streams available for any given music file.

Do you use this MP4 stream because you feel it's preferable to the lossy MQA stream?

Thanks in advance

geoff
Hi geoff,

if a stream is marked as "Master Audio" by TIDAL, the lossless playback stream contains the MQA decoding informations to "unfold" the audio information with a capable DAC decoder.
If the stream is not marked as "Master Audio" the playback stream contains no MQA decoding informations at all.
The TIDAL2 addon requests a "LOSSLESS" playpack stream URL in both cases.
In most cases every MQA track and album is also available as a "Non MQA" version. If you play those streams you will get a 16 bit lossless audio stream.

arneson
Thanks. I'm still a little confused though, because I requested to play the MQA track. On all other systems and apps, when I do this I get a 48khz/24bit file, which is in flac format. Strictly speaking this file is lossy, unless the first unfold is performed in software (Roon, Aurdirvana, Tidal Desktop; etc.) or it is sent to a DAC with an MQA decoder, as you said. After the first unfold is performed in software, the second unfold may be performed by an MQA Renderer.

I realise that in most cases the MQA tracks are also available in non-MQA versions; but it was the MQA version I requested for play in Tidal 2
Reply

Logout Mark Read Team Forum Stats Members Help
TIDAL2 Addon not working0