Class: Bookbinder::Transform::MP3Audiobook_Publisher

Inherits:
Bookbinder::Transform show all
Defined in:
lib/bookbinder/transform/mp3_audiobook/publisher.rb

Constant Summary collapse

TAG =
'TPUB'

Instance Method Summary collapse

Instance Method Details

#dependenciesObject



6
7
8
# File 'lib/bookbinder/transform/mp3_audiobook/publisher.rb', line 6

def dependencies
  [Bookbinder::Transform::]
end

#to_map(package) ⇒ Object



11
12
13
14
15
16
# File 'lib/bookbinder/transform/mp3_audiobook/publisher.rb', line 11

def to_map(package)
  return  unless md = package.map['metadata']
  return  unless md[TAG] &&  md[TAG].first
  package.map['publisher'] = md[TAG].first['@']
  md.delete(TAG)
end