Closed andreapavoni closed 2 months ago
I'm not sure; it's a dupe of https://github.com/oSumAtrIX/DownOnSpot/issues/53, but that should've been resolved. Maybe you are missing the shared libraries.
@oSumAtrIX yes, you're right! It's a duplicate of the #53 followed that thread, it works like a charm!
Also, if you want, I can open a PR with those small changes I mentioned above.
I have some confidence with Rust, but almost zero experience with these libraries (I've used some spotify rust library in the past, but only for APIs), I'd be glad to help anyway.
Can you please mention what exactly fixed your issue?
Also, if you want, I can open a PR with those small changes I mentioned above.
What kind of changes are you referring to?
I did the following changes to the code:
env_logger
from Cargo.toml
dependencies, and the initialization on main.rs
. This one gave me some headaches with compilationlibrespot
v0.4.2compiled with Rust v1.77.2
EDIT: my issue with getting it working has been fixed by using a "cleaned" URL, for example:
from:
https://open.spotify.com/intl-it/track/1rXWi5LOQTes7AHv4JiP1f?si=4191f9f4bff94d4f
to:
https://open.spotify.com/track/1rXWi5LOQTes7AHv4JiP1f
Why would env_logger need to be removed? If there's any issue with the crate on MacOS, probably opening an issue here would make more sense.
In regards to the link, parsing should indeed be fixed.
@oSumAtrIX
Why would env_logger need to be removed? If there's any issue with the crate on MacOS, probably opening an issue here would make more sense.
I had problems with dependencies, I've got some weird errors with the wrong versioning, but I wasn't able to figure out why. I know that package because I've used it in other projects, but I don't know why it gave errors with dependencies. I can only guess it's related to the dependency tree with other libraries used in this project.
In regards to the link, parsing should indeed be fixed.
I can try to figure out how to parse the URL properly:
?si=XXXXXXXXX
) should be easy/XXXX-YY/
from the URL might be more tricky, I don't know if it always follows the pattern of <4 chars>-<2 chars>
, in that case it should be easy as wellI think its as easy as first parsing the string to an URL,, then extracting the segment from the path that comes after the track segment. Should work universally for all track URls regardless of query parameters.
Describe the bug I've built
DownOnSpot
on my MacOS (intel) and tried to build it from source. I had to editCargo.toml
by removing thelogger_env
from dependencies (and frommain.rs
) and used the officiallibrespot
library, according to what I've seen in issue #73I did the first run to generate
settings.json
, edited it with credentials and the app keys.For context, I have a premium account.
When running the binary, this is what I get:
Then nothing else.
To Reproduce Steps to reproduce the behavior:
DownOnSpot
binary from sourceExpected behavior I expected the track or album to be downloaded