Module: SVT::Recorder

Defined in:
lib/svt/recorder.rb,
lib/svt/recorder/base.rb,
lib/svt/recorder/play.rb,
lib/svt/recorder/rapport.rb

Overview

Summary

This library will give you the URL:s for recording files from SVT Play and Play rapport.

Read the documentation for the Play class for how to use those classes directly.

Defined Under Namespace

Classes: Base, Play, Rapport

Constant Summary collapse

VERSION =
'0.9.6'

Class Method Summary collapse

Class Method Details

.record(url) ⇒ Object

To facilitate easy recordings you can use this method to easily instantiate the right class depending on the URL passed in.

If the URL matches playrapport.se it will use the Rapport class, else the Play class.

Returns an array consisting of: [base_url, [parts], bitrate, video_title]



28
29
30
31
32
33
34
# File 'lib/svt/recorder.rb', line 28

def self.record(url)
  if url.match(/playrapport.se/)
    SVT::Recorder::Rapport.record(url)
  else
    SVT::Recorder::Play.record(url)
  end
end