Class: IML::TVSeries

Inherits:
Base
  • Object
show all
Defined in:
lib/iml/tvseries.rb

Overview

TV Series media file type class

Constant Summary collapse

PLACEHOLDERS =

Formatting placeholders for TV Series

{
  '%T' => :title,
  '%E' => :episode,
  '%S' => :season,
  '%f' => :extension,
  '%e' => :episode_i,
  '%s' => :season_i,
  '%t' => :episode_title,
  '%a' => :audio,
  '%v' => :codec,
  '%q' => :quality,
  '%g' => :group,
  '%z' => :source
}.freeze
DEFAULT_FORMAT =

Default formatting sting

'%T/Season %s/%T - S%SE%E.%f'

Instance Attribute Summary

Attributes inherited from Base

#format_string, #prefix, #pretend

Instance Method Summary collapse

Methods inherited from Base

#basename, #create_dir, #dirname, #initialize, #move, #pathname, #present

Constructor Details

This class inherits a constructor from IML::Base

Instance Method Details

#episode_iInteger

Returns episode number in Integer.

Returns:

  • (Integer)

    episode number in Integer


35
36
37
# File 'lib/iml/tvseries.rb', line 35

def episode_i
  episode.to_i
end

#season_iInteger

Returns Season number in Integer.

Returns:

  • (Integer)

    Season number in Integer


30
31
32
# File 'lib/iml/tvseries.rb', line 30

def season_i
  season.to_i
end

#tv?Boolean

Returns always true for IML::TVSeries.

Returns:

  • (Boolean)

    always true for IML::TVSeries


25
26
27
# File 'lib/iml/tvseries.rb', line 25

def tv?
  true
end