Tidal App discussion

I think I am too stupid. I was trying to build the app myself, but I don’t get it where to put the tidalapi. If I just install it regularly on my computer I get something like this (leading output removed):

+ mkdir /home/deploy/installroot/usr/share/harbour-tidalplayer/python
+ cp -r python/tidalapi /home/deploy/installroot/usr/share/harbour-tidalplayer/python/tidalapi
cp: cannot stat 'python/tidalapi': No such file or directory


RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.UF51tV (%install)
    Bad exit status from /var/tmp/rpm-tmp.UF51tV (%install)
05:36:58: The process "/home/XXX/SailfishOS/bin/sfdk" exited with code 1.
Error while building/deploying project harbour-tidalplayer (kit: SailfishOS-4.5.0.18-i486 (in Sailfish SDK Build Engine))
When executing step "RPM Build"

What am I doing wrong? What do I have to do with the tidalapi to be available?

It should be in python/tidalapi under your build directory.

Thanks for the answer. I already tried it, but maybe I made a mistake. By build directory you mean something like /home/XXX/SFOS-devel/harbour-tidalplayer on the hosting system where I put the files of the project (of course depending on the real path), right?

That would be your source directory. Which might be also your build directory as well. If you are using sfdk for building, the build directory is the one you are running the build command from.

If you use the IDE for building, it will by default create a separate build directory. This behaviour can be controlled in the project settings, it’s called “shadow build”.

2 Likes

Well I just had not added the tidalapi project to my github project.

I might have today some minutes to do so.

1 Like

Switched to tidal yesterday and btw logitech media server aka squeezeserver does have a tidal plugin :slight_smile:

so can listed to tidal using squeeze-remote on my squeezeboxes !

Hi there,
Happy new year.

I have managed to make a rpm package on github:

Many things are of course WIP and I will not focus to much on app development, but at least as much as I need it, it will make progress.

Since there is something like an official API coming, things might get even more interesting:

5 Likes

Thank you so much, what a nice surprise! Best surprise around Christmas time for me this time :slight_smile:

however, it fails installing, complaining about missing python3-dateutil. Ignoring it’s complaints leads to an installed App, but when I go to the login, I can’t because it only jumps to SailfishOS’s website. Is this intended and login is still dysfunctional and I have to put my login credentials into a file or something like this? Or is this some issue in the release?

You should try to get that missing package via storeman. Have a lool there and add that repository.

The python package is essential for OAuth.

2 Likes

That did work, thanks a lot :slight_smile:

1 Like

Thanks for the app !
The arch64 package failed to install completely on my vollaphone

All dependencies were meet during installation? Are there any errors which you can post?

1 Like

Maybe i did miss it and it is somewhere, else a readme would be great.

Install from cmd line using :
devel-su rpm -i ./harbour…rpm

Add the missing dependencies using storeman …
python3-future
python3-requests
python3-dateutil

Thanks again, one less android app!

2 Likes

It’s a bit strange that it doesn’t pull the Requires. In the spec we have:

Requires:   python3-requests
Requires:   python3-future
Requires:   python3-dateutil
Requires:   python3-six

I think the issue was using rpm? maybe pkcon local install or zypper local install would have picked them up?

2 Likes

Well the repos that would contain them were not added at first.
Wouldnt that be then an natural result ?

Those are available from the jolla repos so they should not need any other repos. I’m just speculating but it was rpm. I don’t really know since I always use either zypper or pkcon. However, I do know that I had been building requests manually (python3-requests) and after I noticed that it was available for jolla, I removed it (and mutagen and python3-urllib or the like), added the Requires to the spec and install (via pkcon) worked fine.

i have a squeezebox at home and the tidal plugin has a quite clean structure.

click on search:

click on artist:

available results

click on albums, found albums

one album

once you play it and are in player, you can swipe back to where you came from.
from main, you can always go to now-playing

the code, which will be pretty generic, should be part of squeeze-remote. i did not check it yet.

3 Likes

Ah! I think donnie (mlna?) was clean in this regard too. Thanks for the reminder!

2 Likes

by the way, where is the tidal app repo ?
would like to check the code to see how it is structured

Here it is:

It was mentioned in one of the first posts in this thread :wink:

2 Likes