Tidal App discussion

After commiting I managed to deploy to volla 22. Some packages are missing in the yml fike, so it would not work out of the box. But maybe tonight …

3 Likes

If I recall correctly, I tried it even with no version installed. But I am able to test the app on Volla 22 too so I don’t need to worry about the SDK.

With the latest commit, I think the first people find it even usefull to listen to specific songs.

So I suppose, a tidal app really is possible but for now I don’t know if the listend songs will be tracked in the statistic of tidal. At least not by resolving the track url.

As I am not really familiar with pyotherside, does anyone know if and how one can access python variables or function results from a qml file? Currently, I manage everything with handlers.

Have a look at Neliapila’s source code for an example: https://github.com/tabasku/harbour-neliapila/blob/master/qml/pages/ThreadsPage.qml, you 'setHandler’s waiting for python results and are able to process them then and ‘call’ functions straight from QML, not sure if there is less cluttered example out there, but python-qml part starts at line 352

1 Like

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.