Closed bzerangue closed 11 years ago
Wooo man you're too fast! I just made a simple copy of the Twitter driver without testing anything.
But thanks to you, it's now clear that we have a problem: Embed.ly will now conflict with "native" driver since they will be able to handle all of their supported service. Driver detection is made based on the url given. This really is a pain in the ass.
I do not know how we will manage this... Any ideas ?
Two different ways...
On Fri, Sep 6, 2013 at 12:36 AM, Nicolas Brassard notifications@github.comwrote:
Wooo man you too fast! I just made a simple copy of the Twitter driver without testing anything.
But thanks to you, it's now clear that we have a problem: Embed.ly will now conflict with "native" driver since they will be able to handle all of their supported service. Driver detection is made based on the url given. This really is a pain in the ass.
I do not know how we will manage this... Any ideas ?
— Reply to this email directly or view it on GitHubhttps://github.com/Solutions-Nitriques/oembed_field/pull/38#issuecomment-23919848 .
Hummm, I am not quite sure I like your ideas...
You see the drivers are tested in asc
order given by this call https://github.com/Solutions-Nitriques/oembed_field/blob/master/lib/class.serviceDispatcher.php#L41
This did not cause troubles before, but it is now. I think I will add a priority property on the drivers. We could than sort them with that, and be able to wilcard embed.ly.
Actually, they maintain the list in their SERVICE API, http://embed.ly/docs/endpoints/1/service
Is there a way to pull in that list? that way it will always keep that populated...
On Fri, Sep 6, 2013 at 2:58 PM, Nicolas Brassard notifications@github.comwrote:
Hummm, I am not quite sure I like your ideas...
- Maintaining that list would be aweful.
- This is better, but It still does not fully solve the problem with the driver conflict.
You see the drivers are tested in asc order given by this call https://github.com/Solutions-Nitriques/oembed_field/blob/master/lib/class.serviceDispatcher.php#L41
This did not cause troubles before, but it is now. I think I will add a priority property on the drivers. We could than sort them with that, and be able to wilcard embed.ly.
— Reply to this email directly or view it on GitHubhttps://github.com/Solutions-Nitriques/oembed_field/pull/38#issuecomment-23965286 .
@bzerangue This should be fixed in the 1.7 release I am about to create! Thanks for your help.
FIXED typo on class name and changed it to serviceEmbedly; also found out that you have to list urls of service you use, since it oembed service and has service providers, so you have list the service providers in this file.