Closed (fixed)
Project:
Views Datasource
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
3 Jun 2012 at 17:41 UTC
Updated:
18 Jun 2012 at 00:01 UTC
This is what I currently get as output for the video field, using JSON:
"video" : "\n \n \n \n \n \n \n \n",
Comments
Comment #1
alexander allen commentedCredit goes to dawehner (http://drupal.org/user/99340), who kindly pointed me where to look at in Views to solve this issue.
Initially I'll support returning just the video URL to get this solved. We can then create a separate feature request or task for returning properly escaped embed codes inside JSON and XML. That will involve adding an option to the Video field per se that allows the user in what format he wants the Video returned.
Comment #2
alexander allen commentedFixed in commit 18c4ec2: implement hook_views_pre_render to extract the video URL.
- This commit adds support for returning the Video URL only.
- Full (escaped) embed codes could be added in a separate feature request, where we could better discuss the strategy to do that.