wulkano / Plug

macOS app for Hype Machine
https://plugformac.com
MIT License
205 stars 7 forks source link

Mark as played (feature request) #18

Open qpwo opened 3 years ago

qpwo commented 3 years ago

After I play a song would be cool if the text was grey in the display

sindresorhus commented 3 years ago

Doesn't look like the Hype Machine API includes the play count. We could potentially save the IDs of played tracks locally, but then someone will complain that it's not synced.


API track payload:

[
    "posturl": https://wyved.com/2021/02/19/puma-blue-in-praise-of-shadows/,
    "spotify_uri": spotify:track:1SXvJZQu60PSonJscOqV4l,
    "itemid": 303qp,
    "loved_count": 4,
    "itunes_link": https://hypem.com/go/itunes_search/Puma%20Blue,
    "siteid": 17529,
    "stream_pub": https://hypem.com/serve/public/303qp,
    "thumb_url": https://static.hypem.com/items_images/f6/303qp_120.jpg,
    "title": Bath House,
    "dateposted": 1613700521,
    "postid": 3900268,
    "media_type": bandcamp,
    "rank": 50,
    "posted_count": 1,
    "description": British singer and producer Puma Blue recently released a new 14-track album entitled In Praise Of Shadows. We have featured our favorites below and we invite you to surf over to bandcamp to listen to the rest of her work. <a href="https://pumabluemusic.bandcamp.com/album/in-prai,
    "artist": Puma Blue,
    "time": 250,
    "sitename": wyved,
    "thumb_url_medium": https://static.hypem.com/items_images/f6/303qp_120.jpg,
    "thumb_url_large": https://static.hypem.com/items_images/f6/303qp_640.jpg
]
qpwo commented 3 years ago

Ah i won't tell you how to write your software but personally I just use the app and wouldn't mind it being desynced and you could turn it off in settings. Thanks for this great app.

sindresorhus commented 3 years ago

Yeah, I guess we can just save it locally and warn the user somehow that it's not synced.