internet4000 / explorer-discogs Goto Github PK
View Code? Open in Web Editor NEWA work in progress to explore and play Discogs
Home Page: https://explorer.radio4000.com
A work in progress to explore and play Discogs
Home Page: https://explorer.radio4000.com
When you're browsing releases for an artist it renders wrong releases.
Example:
If you visit the API endpoint for the Malk de Koijn's releasess the "wrong releases" are not even there.
Not sure what is happening.
Goal is to be able to play any release? Or what is the right term in discogs-lingo?
For something simple, we could use the youtube iframe api directly and the loadPlaylist
method.
Sometimes on https://discogs.radio4000.com/artists/2408160 the members:hasMany:artist
relationship doesn't render all items properly. The list-item is there but the name is empty. If you refresh it'll either work or be different missing items. To be investigated.
In order to avoid reaching the Discogs API rate limits we should avoid more requests than necessary.
For instance, if you go to a release, then back to the homepage and finally visit the same release again, a second uneccesary GET request is made.
Another idea is to sync the the store
to a local database like pouchdb, localstorage or whatever they're called these days. That could be cool, too. First look in local db, is it there, yes return, otherwise fetch.
#nicetohave
We can keep this issue open with small ideas here and there…
<a>
linksentity_type_name
for companies
Your application must provide a User-Agent string that identifies itself
https://www.discogs.com/developers/#page:home,header:home-general-information
radio4000.com
when it should link to the ressource that is played (anywhere on the internet)radio4000.com/undefined/:trackId
See here radio4000-player
issue here internet4000/radio4000-player#104.
We can wait for a solution there, then implement it here
We can filter the Discogs search to something like "house releases from 2018" but there' currently no way to play all of them at once.
Since these search results only includes releases, we can find a way to put the buttons directly on the search page as well as a button.
Idea came from https://www.discogs.com/forum/thread/765954 & https://www.reddit.com/r/discogs/comments/8cg0z2/fetching_youtube_links_using_discogs_api/
Currently not possible.
http://localhost:4200/artists/287559
http://localhost:4200/artists/4393110
But we have releasesUrl: https://api.discogs.com/artists/287559/releases
from where we can hopefully extract the relationships. @hugurp?
let's set up some constraints. ideas
Let's try gather ideas to improve the layout for search results. Right now it's difficult to scan the different types.
make sure the search doesn't reach API limits too fast
We should create a video
model. It's a relationship on the release
model. Possibly others, too. The data looks like this:
videos": [
{
"duration": 489,
"description": "Nirvana - Come as you are (Andy Caldwell remix)",
"embed": true,
"uri": "https://www.youtube.com/watch?v=rPHGAO4LOLk",
"title": "Nirvana - Come as you are (Andy Caldwell remix)"
},
{
"duration": 498,
"description": "Nirvana - Come As You Are (Dirty Funker Remix)",
"embed": true,
"uri": "https://www.youtube.com/watch?v=fm8F9GikQdM",
"title": "Nirvana - Come As You Are (Dirty Funker Remix)"
},
{
"duration": 226,
"description": "Nirvana - Come As You Are",
"embed": true,
"uri": "https://www.youtube.com/watch?v=vabnZ9-ex7o",
"title": "Nirvana - Come As You Are"
}
],
How does a master relate to a release?
At the moment it's blank https://explorer-discogs.netlify.com/masters/74177
Here https://explorer.radio4000.com/artists/6397969 the results on the releases, and their videos are not the same as on Discogs.
Should investigate why.
So the redis on IBM cloud is not free. But it is on redislabs.
A label like Universal http://localhost:4200/labels/22532 currently has 25k releases. So we need to paginate. Can we copy/paste from search?
https://api.discogs.com/labels/22532/releases
There are probably more places that need pagination but for now we can do this one.
using netlify
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.