playdar-core icon indicating copy to clipboard operation
playdar-core copied to clipboard

Let resolve API call accept a URL

Open jwheare opened this issue 15 years ago • 5 comments

If we're resolving from an XSPF or podcast, there should be a way to seed playdar with any URLs included in the XSPF. This will then be returned in the results with the source as the domain, a perfect score, but maybe a lower pref than locally resolved tracks.

playdar.js can already send this in resolve calls:

http://github.com/jwheare/playdar.js/commit/760842b55bb07cdd40cb69878d6d67bd12f33a4b

jwheare avatar Oct 20 '09 14:10 jwheare

Regarding notes in http://github.com/RJ/playdar-core/commit/2c5c71a65db255739accea0aeb0a458c560110c6, I'm happy for the client to pass in the URL, metadata and source name (domain of the URL) as a result object, but the daemon should add score, sid, and preference values I think.

Bitrate, size and duration may not be available I guess but that's OK.

jwheare avatar Oct 30 '09 08:10 jwheare

yep thats fine, we already autoadd score (soon) and sids etc to results from scripts, so that'll just work. How will the http call look?

RJ avatar Oct 30 '09 17:10 RJ

some sort of urlencoded JSON object I suppose.

jwheare avatar Oct 30 '09 18:10 jwheare

Checkit! http://github.com/jwheare/playdar.js/issues/closed#issue/7

jwheare avatar Nov 18 '09 03:11 jwheare

This gives compatibility with the huge installed base of XSPF files that are basically just M3U, including most of the Musicplayer playlists.

lucasgonze avatar Nov 19 '09 00:11 lucasgonze