python-plexapi icon indicating copy to clipboard operation
python-plexapi copied to clipboard

plexapi tidal integration

Open 62274677 opened this issue 4 years ago • 6 comments

Does the plexapi include/are there plans to include tidal support? I am looking to write a script that syncs a playqueue between youtube and plex/plexamp. If I can only find the currently playing songs and up next from plex, that is alright, but it would be wonderful if I could also add tidal songs to the playqueue programmatically. I am new to the plexapi, so if this exists already I apologize; I couldn't find any reference to tidal other than a single command in the docs.

62274677 avatar Feb 20 '21 23:02 62274677

I was going to try this, but my head is swimming looking through the Plex logs trying to figure out the relevant APIs.

Does the attached log file assist in any way? Amongst allt he noise, it has me:

  1. creating a new playlist named SomePlaylistName
  2. adding a Tidal song to my Library (Jericho by Celldweller)
  3. adding that song to the playlist SomePlaylistName
  4. playing that song

partial_log.txt

darovic avatar Feb 16 '22 06:02 darovic

@darovic Opening your browser Inspect tool and checking the Network traffic/calls is where you should start to find the API calls for the actions you perform from TIDAL. Logs won't really help you.

@62274677 Right now there is only the ability to view the hubs from TIDAL . The rest of the actions and data gathering will need to be added. I'd assume we can reuse some code for actions but the data and endpoints need to be mapped out first.

blacktwin avatar Mar 02 '22 14:03 blacktwin

@blacktwin The calls are being made by the plexamp desktop application, not a web application. The connections are encrypted so capturing the traffic wasn't helpful either. Tidal itself doesn't provide an interface to interact with a PMS.

darovic avatar Mar 11 '22 14:03 darovic

@darovic have you tried with the extra header suggestion from #905?

jjlawren avatar Mar 11 '22 14:03 jjlawren

It seems to me all of the endpoints used by Tidal don't work unless you have special permissions. I tried, even with the external-media header, and got:

{ "Error": { "error": "Forbidden", "message": "'{user_id}' is NOT permitted to access restricted endpoint '/hubs/promoted' on '{app_name}/?': Feature not permitted! Missing feature(s): podcasts", "statusCode": 403 } }

This was for the podcasts endpoints but I received the same errors for Tidal.

spauldhaliwal avatar Mar 24 '22 19:03 spauldhaliwal