Class: SVT::Recorder::Rapport

Inherits:
Base
  • Object
show all
Defined in:
lib/svt/recorder/rapport.rb

Overview

Recorder for SVT Play Rapport Takes an URL for svt.se and returns the download URL in the same format as SVT Play class.

Usage is the same as for SVT::Recorder::Play.

Instance Attribute Summary

Attributes inherited from Base

#base_url, #bitrate, #title

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#all_parts, #bitrates, #get_streams, #last_part, #part_urls, #parts, #parts?

Constructor Details

#initialize(url) ⇒ Rapport

Returns a new instance of Rapport.



17
18
19
20
21
# File 'lib/svt/recorder/rapport.rb', line 17

def initialize(url)
  video = SVT::Recorder.fetch_playlist(url, '.svtplayer')

  super(video)
end

Class Method Details

.record(url) ⇒ Object



23
24
25
26
# File 'lib/svt/recorder/rapport.rb', line 23

def self.record(url)
  recorder = SVT::Recorder::Rapport.new(url)
  recorder.part_urls
end