Skip to content

Instantly share code, notes, and snippets.

@ntd251
Last active April 4, 2017 02:27
Show Gist options
  • Save ntd251/aa0c86e72c517f4f96502ef7ea3f723b to your computer and use it in GitHub Desktop.
Save ntd251/aa0c86e72c517f4f96502ef7ea3f723b to your computer and use it in GitHub Desktop.
MOVIE_TYPE = 493
EPISODE_TYPE = 494
SERIES_TYPE = 496
# Suits series id
channel_id = '310401'
filter = Kaltura::KalturaSearchAssetFilter.new
# Comma separated list of EPG channel ids to search within.
filter.id_in = channel_id
# Comma separated list of asset types to search within.
# Possible values: 0 – EPG linear programs entries; 1 - Recordings; Any media type ID (according to media type IDs defined dynamically in the system).
# If omitted – all types should be included.
filter.type_in = EPISODE_TYPE.to_s
# KalturaClient definition: https://gist.github.com/ntd251/49d3bce363906aeac343261da54b5e16
KalturaClient.asset_service.list filter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment