Skip to content

Instantly share code, notes, and snippets.

@deviantintegral
Created March 13, 2012 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deviantintegral/2031085 to your computer and use it in GitHub Desktop.
Save deviantintegral/2031085 to your computer and use it in GitHub Desktop.
SELECT kfm.id AS id,
IF(n.title IS NOT NULL, n.title, kfm.name) AS title,
Concat("Source_Video/", kvu.file_name) AS video,
IF(n.title IS NOT NULL, "/kaltura import",
"/kaltura_import,/no g365 node id")
AS labels,
kfm.id AS "metadata:kaltura_id"
FROM kaltura_full_metadata kfm
LEFT JOIN node_kaltura nk
ON kfm.id = nk.kaltura_entryid
LEFT JOIN node n
ON nk.nid = n.nid
LEFT JOIN kaltura_video_and_audio_urls kvu
ON kfm.id = kvu.entry_id
WHERE kfm.media_type = 1
AND kvu.is_original = true
ORDER BY video
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment