Guest User

Untitled

a guest
Jul 17th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. search = Video::Search.new(Harbor::Locale.default, page, page_size, allowed_channels, channel_id, query, options)
  2. channel = Channel.get(channel_id) if channel_id
  3.  
  4. return response.render("videos/index", :search => search, :channel => channel) if search.videos.empty?
  5. video = Video.first(:uuid => search.videos.first.uuid)
Add Comment
Please, Sign In to add comment