internet4000 / media-now Goto Github PK
View Code? Open in Web Editor NEWGet media information from YouTube and Vimeo videos, Spotify tracks and Discogs releases.
Get media information from YouTube and Vimeo videos, Spotify tracks and Discogs releases.
For kicks, I'd like to be able to do
/provider/YyI52_FEYgY
/provider/121814744
and it will tell you which provider it is. Now, it could be tricky to guess but both Vimeo and YouTube follow strict id conventions which some regex should be able to find.
When making a query to the providers api, if there is an error, return those error messages as the media api response.
Should it it be the pure "provider' error message, or should it be a "unified" message thought every providers available?
I am thinking maybe both with something like that:
{
error: {
code: '404',
message: 'content not found',
providerError: { // raw provider error}
}
}
What error to return?
Make sure to tag and release and what not so we don't break applications using media now. Like v1, v2 etc.
Zeit/Now killed their v1 hosting so this project is no longer online on media.now.sh.
Unfortunately strrr.tv depends on this and it doesn't seem easy to deploy on now v2 aka Vercel…
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.