class AppleTvConverter::Metadata::Info

Attributes

artwork_filename[RW]
codirector[RW]
description[RW]
director[RW]
genre[RW]
name[RW]
release_date[RW]
screenwriters[RW]
tv_network[RW]
tv_show[RW]
tv_show_episode[RW]
tv_show_season[RW]

Public Class Methods

new(media) click to toggle source
# File lib/apple_tv_converter/metadata/info.rb, line 9
def initialize(media)
  @media = media
end

Public Instance Methods

artwork() click to toggle source
# File lib/apple_tv_converter/metadata/info.rb, line 13
def artwork ; @media.artwork_filename ; end
artwork=(value) click to toggle source
# File lib/apple_tv_converter/metadata/info.rb, line 14
def artwork=(value) ; AppleTvConverter.copy value, @media.artwork_filename ; end
sort_album() click to toggle source
# File lib/apple_tv_converter/metadata/info.rb, line 17
def sort_album ; return tv_show ; end
sort_album_artist() click to toggle source
# File lib/apple_tv_converter/metadata/info.rb, line 18
def sort_album_artist ; return tv_show ; end
sort_composer() click to toggle source
# File lib/apple_tv_converter/metadata/info.rb, line 19
def sort_composer ; return tv_show ; end
sort_name() click to toggle source
# File lib/apple_tv_converter/metadata/info.rb, line 16
def sort_name ; return @media.is_tv_show_episode? ? "#{tv_show} S#{tv_show_season.to_s.rjust(2, '0')}E#{tv_show_episode.to_s.rjust(2, '0')}" : name ; end
sort_show() click to toggle source
# File lib/apple_tv_converter/metadata/info.rb, line 20
def sort_show ; return "#{tv_show} Season #{tv_show_season.to_s.rjust(2, '0')}" ; end