GithubHelp home page GithubHelp logo

List history of tracks played about amazon-music HOT 10 OPEN

jaffa avatar jaffa commented on June 25, 2024
List history of tracks played

from amazon-music.

Comments (10)

Jaffa avatar Jaffa commented on June 25, 2024 1

The homepage's Recently Played uses com.amazon.musicensembleservice.MusicEnsembleService.getHome with the standard parameters, plus:

options=populateRecentlyPlayed,requestShowContent
requestContent=PRIME

This returns a set of blocks for the homepage. [2] is a VerticalTileGroup containing sub-blocks for recently played. Not tracks, unfortunately, but albums/stations/playlists (and individual tracks, maybe)? It does include a timestamp of when it was played, though:

{
	"__type": "VerticalTile:http://internal.amazon.com/coral/com.amazon.layout.music.model/",
	"blockRef": "1|T|0|1|Q3A1166NJA4M7X48VP51|0|0|0|B01JNQ7KTA|-1|null",
	"hint": {
		"__type": "AlbumHint:http://internal.amazon.com/coral/com.amazon.layout.music.model/",
		"albumArtImageUrl": "https://m.media-amazon.com/images/I/91UGw8AzU5L.jpg",
		"artistAsin": "B001E77YC0",
		"artistName": "Green Day",
		"asin": "B01JNQ7KTA",
		"isInLibrary": null,
		"isMusicSubscription": true,
		"isPrime": true,
		"isRecommended": null,
		"languagesOfPerformance": null,
		"recentlyPlayedEntityType": "ALBUM",
		"timeStamp": 1531232643930,
		"title": "Revolution Radio"
	},
	"image": "https://m.media-amazon.com/images/I/91UGw8AzU5L.jpg",
	"playbackTarget": "https://music.amazon.co.uk/home?do=play&albumAsin=B01JNQ7KTA",
	"subTitle": "Green Day",
	"subTitleTarget": "https://music.amazon.co.uk/artists/B001E77YC0",
	"text": "",
	"tileTarget": "https://music.amazon.co.uk/albums/B01JNQ7KTA",
	"title": "Revolution Radio",
	"titleTarget": "https://music.amazon.co.uk/albums/B01JNQ7KTA"
}

There is a page giving Recently Played Tracks too. Just need to find out what's underpinning it.

from amazon-music.

danieldaeschle avatar danieldaeschle commented on June 25, 2024 1

Green Day yeah! ;D

from amazon-music.

danieldaeschle avatar danieldaeschle commented on June 25, 2024

No it doesn't. It can only work if the amazon API support this.

from amazon-music.

dufferzafar avatar dufferzafar commented on June 25, 2024

Do you know if the Amazon API supports this? If it does then maybe support could be added here too.

from amazon-music.

danieldaeschle avatar danieldaeschle commented on June 25, 2024

I don't know it. @Jaffa is very busy and i'm not a reverse engineering pro. Maybe you could create a PR?

from amazon-music.

Jaffa avatar Jaffa commented on June 25, 2024

I may have some time tomorrow to look into it. @dufferzafar - if you can find a way of looking at your history in the web client, that may give us a starting point. When you log in, I think there's a "Recently played", which might help.

When you say "along with their time stamps", do you mean durations, or the exact time you played them?

from amazon-music.

dufferzafar avatar dufferzafar commented on June 25, 2024

from amazon-music.

danieldaeschle avatar danieldaeschle commented on June 25, 2024

The datetime when it was played.

from amazon-music.

dufferzafar avatar dufferzafar commented on June 25, 2024

Hey, any updates on this? I'm relatively free now, if there's some help you need, please let me know.

All I want to build is a Python script that would use requests to fetch all recently played tracks and dump them into a text file.

from amazon-music.

Jaffa avatar Jaffa commented on June 25, 2024

from amazon-music.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.