lib/film_on/services/video_on_demand.rb
# vod_search: calls the vod/search and returns
# a list of movies filtered by the params and the number returned (total) and the total number for the search (total_found)
# i.e.
# film_on.vod_search(genre: "horror").movies => will return all horror movies
# film_on.vod_search(genre: "horror").total => will return the number of movies return from the feed
# film_on.vod_search(genre: "horror").total_found => will return the total number of movies available with the given params (useful for pagination)
#
## Params examples:
#
# term:
# Set this to the word or term to search the catalog for. The FilmOn VOD API searches the title and synopses of catalog titles for a match. This parameter is required.
#
# start_index:
# Set this to a zero-based offset into the list that results from the query. By using this with the max_results parameter, you can request successive pages of search results.
#
# max_results:
# Set this to the maximum number of results to return. This number cannot be greater than 100. If you do not specify max_results, the default value is 25.
#
# parent_id:
# search for episodes of specified series.
#
# order_by:
# Order search results by one of following strategies: "relevance" or "date"
#
# content_type:
# Filter and return search results only for specified content_type. Parameter value should be one of : "relevance" or "date"
#
# genre:
# Filter and search for movies only in specified genre. Parameter value should be a slug of corresponding genre, retrieved from /api/vod/genres resource.
calls the vod/search and returns
a list of movies filtered by the params and the number returned (total) and the total number for the search (total_found)
i.e.

Params examples.

Set this to the word or term to search the catalog for. The FilmOn VOD API searches the title and synopses of catalog titles for a match. This parameter is required.

Set this to a zero-based offset into the list that results from the query. By using this with the max_results parameter, you can request successive pages of search results.

Set this to the maximum number of results to return. This number cannot be greater than 100. If you do not specify max_results, the default value is 25.

search for episodes of specified series.

Order search results by one of following strategies: "relevance" or "date"

Filter and return search results only for specified content_type. Parameter value should be one of : "relevance" or "date"

Filter and search for movies only in specified genre. Parameter value should be a slug of corresponding genre, retrieved from /api/vod/genres resource.
calls the vod / search and returns a list of movies filtered by the params and the number returned ( total ) and the total number for the search ( total_found ) i . e . Params examples . Set this to the word or term to search the catalog for . The FilmOn VOD API searches the title and synopses of catalog titles for a match . This parameter is required . Set this to a zero - based offset into the list that results from the query . By using this with the max_results parameter you can request successive pages of search results . Set this to the maximum number of results to return . This number cannot be greater than 100 . If you do not specify max_results the default value is 25 . search for episodes of specified series . Order search results by one of following strategies : " relevance " or " date " Filter and return search results only for specified content_type . Parameter value should be one of : " relevance " or " date " Filter and search for movies only in specified genre . Parameter value should be a slug of corresponding genre retrieved from / api / vod / genres resource .
def vod_search(params={}, opts={})
        key = Digest::MD5.hexdigest(params.to_s)
        return @vod_search[key] if @vod_search[key] && !opts[:json]
        json = get_vod("search", params)
        if opts[:json]
          return json
        end
        @vod_search[key] = convert_vod_search(json)
      end
def vod_search ( params = { } , opts = { } ) key = Digest :: MD5 . hexdigest ( params . to_s ) return @vod_search [ key ] if @vod_search [ key ] && ! opts [ :json ] json = get_vod ( "search" , params ) if opts [ :json ] return json end @vod_search [ key ] = convert_vod_search ( json ) end
vod_search: calls the vod/search and returns
a list of movies filtered by the params and the number returned (total) and the total number for the search (total_found)
i.e.
vod_search : calls the vod / search and returns a list of movies filtered by the params and the number returned ( total ) and the total number for the search ( total_found ) i . e .
params
<not_specific>
opts
<not_specific>