Closed (fixed)
Project:
Ooyala
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Oct 2012 at 15:36 UTC
Updated:
11 Dec 2012 at 15:40 UTC
According to http://api.ooyala.com/docs/v2/query_api we need to use the where statement for queries.
e.g.
SELECT * WHERE embed_code IN ('g0YzBnMjoGiHUtGoWW4pFzzhTZpKLZUi',
'g1YzBnMjrEWdqX0gNdtKwTwQREhEkf9e')
/v2/assets?where=embed_code IN ('g0YzBnMjoGiHUtGoWW4pFzzhTZpKLZUi','g1YzBnMjrEWdqX0gNdtKwTwQREhEkf9e')
This is not being done currently. The below patch adds where and IN in the query string.
After adding this patch, things start working again when you for instance try to save a node with a particular embed code in the video field (it would give me an SQL error otherwise as it was not able to find out duration and status).
Also note the the use of embed_code instead of embedCode.
| Comment | File | Size | Author |
|---|---|---|---|
| 0001-fix-query-in-ooyala-api-video-load-multiple.patch | 1.07 KB | sidharth_k |
Comments
Comment #0.0
sidharth_k commentedlanguage improvements
Comment #0.1
sidharth_k commentedlanguage improvements
Comment #1
sidharth_k commentedFixed in http://drupalcode.org/project/ooyala.git/commit/d7c272e
Comment #1.0
sidharth_k commentedlanguage