Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPRIS/rescrobbled: track position and end of playlist are not properly implemented #97

Closed
raaffaaeell opened this issue Feb 24, 2021 · 8 comments · Fixed by #102
Closed
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@raaffaaeell
Copy link

Hello there, first of all, really nice project, and I'm looking forward for the development.

When using rescrobbled I noticed it was not scrobbling the songs, it did recognize the track but when I debugged rescrobbled I noticed that it was always getting 0 from the track length, I dont know the specifics of the crate (mpris = "2.0.0-rc2") but getting the length_as_micro works. Any idea why ?

When using the official spotify client it seems to get correctly the track length, but with spot only that other method works

@xou816
Copy link
Owner

xou816 commented Feb 24, 2021

Hi!
The current MPRIS implementation is fairly incomplete, so thank you for your report, it helps me to know which elements to prioritize in the implementation :)
I assume rescrobbled expects a proper implementation of the track duration and current position, but the position is hardcoded right now. The track duration should be fine however!

@xou816 xou816 added bug Something isn't working good first issue Good for newcomers labels Feb 24, 2021
@raaffaaeell
Copy link
Author

I didnt notice that code you posted, what's really funny, is that despite that, rescrobbled is working because it's doing it's own thing to calculate the amount of time played for the current song lmao

Another minor thing I noticed, when an album ends, the playback doesnt stop (no pause or stop signal is sent), wouldnt be an issue if it didnt matter that much for this particular scrobbler because when I checked my lastfm, it had like 15+ scrobbles of the same song lol

If you want I can create another issue so you might be able to track it better

@xou816
Copy link
Owner

xou816 commented Feb 24, 2021

Oh, good catch! I don't mind using this one issue to track both things. I'll have a look when possible!

@xou816 xou816 changed the title Question to make it work with rescrobbled MPRIS/rescrobbled: track position and end of playlist are not properly implemented Feb 24, 2021
@xou816
Copy link
Owner

xou816 commented Feb 25, 2021

Hi again @raaffaaeell , would you mind trying this build to see if it helps with your issues? https://github.com/xou816/spot/suites/2125492563/artifacts/43370055

@raaffaaeell
Copy link
Author

Hello there, I'll see if I can test it later, at most tomorrow night hehe, thank you very much

@xou816 xou816 linked a pull request Feb 25, 2021 that will close this issue
@xou816
Copy link
Owner

xou816 commented Feb 25, 2021

Sure no worries :) thanks!

@raaffaaeell
Copy link
Author

Hello there, I was a bit idle here and got around installing from that flatpak (I'm not that familiar with it), but now both cases seems to be working fine.

Thank you for your time and quick responses, keep up the good work

@xou816
Copy link
Owner

xou816 commented Feb 26, 2021

Ahah that was fast, great then, thanks for testing! This will be in the next release :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants