Re: media_from_site API



On Fri, 2010-12-10 at 10:33 +0100, Iago Toral Quiroga wrote:
> The thing is that this "test" does not make sense for all the other
> cases. In the case of the URI I can check that in the youtube plugin I
> won't support URIs that don't belong to www.youtube.com for example,
> and
> then avoid any kind of network I/O, but if I know other keys like song
> title or artist name, then that won't help me at all, I would have to
> query the backend to know if they can match a specific song/video and
> I
> won't save any work.


I didn't mean that actually plugins needs to implement that function.
Rather, that they would need to use a similar idea.

For instance, in the case of URI, youtube plugin would not resolve it if
URI is not of www.youtube.com type. Each plugin that support URI
reverse-resolve would handle other uris. No need to do network I/O,
unless you're asking for more attributes that can't be get from the URI
itself.

For other kind of keys, I can't tell you for sure that plugins needs to
do network IO to know if they can resolve it or not. Plugins can always
decide not to implement this feature for keys that implies network IO.


	J.A.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]