discord.py icon indicating copy to clipboard operation
discord.py copied to clipboard

[activity] add discord.Spotify.elapsed

Open quiprr opened this issue 3 years ago • 2 comments

Summary

Add a new property to discord.Spotify that reflects the elapsed time of the currently playing song.

Checklist

  • [x] If code changes were made then they have been tested.
    • [ ] I have updated the documentation to reflect the changes.
  • [ ] This PR fixes an issue.
  • [x] This PR adds something new (e.g. new method or parameters).
  • [ ] This PR is a breaking change (e.g. methods or parameters removed/renamed)
  • [ ] This PR is not a code change (e.g. documentation, README, ...)

quiprr avatar Jun 15 '21 19:06 quiprr

Not sure I get the usefulness of this one since it depends on system time. Not to mention this isn't operating on timezone aware instances due to a bug in the Spotify implementation.

Rapptz avatar Jun 28 '21 03:06 Rapptz

This isn't in the api and users can simply calculate it themselves, this also uses the datetime naive utcnow() with no timezone

ooliver1 avatar Mar 10 '22 07:03 ooliver1