Class: PlexSymlinker::FileTypes::Mp3
- Defined in:
- lib/plex_symlinker/file_types/mp3.rb
Overview
"TDRC": "1968",
"TIT2": "Seite B",
"TKEY": "C",
"TBPM": "120",
"TPE1": "Winnetou",
"TALB": "Winnetou 3 - 3. Folge",
"TPE2": "alb-artist: Winnetou",
"TCON": "Hörspiel",
"APIC": "[image/jpeg]",
"TRCK": "2/2",
"TXXX": "[PERFORMER_NAME] PERFORMER_NAME a performer"
Instance Attribute Summary
Attributes inherited from AudioFile
Instance Method Summary collapse
Methods inherited from AudioFile
#album, #artist, from_path, #genre, #initialize, register_type, registered_types, #relative_symlink_dir, #relative_symlink_path, #symlink_file_name, tag_reader, #title, #track_number, #year
Constructor Details
This class inherits a constructor from PlexSymlinker::FileTypes::AudioFile
Instance Method Details
#album_artist ⇒ Object
30 31 32 |
# File 'lib/plex_symlinker/file_types/mp3.rb', line 30 def album_artist ["TPE2"] || artist end |
#tags ⇒ Object
24 25 26 27 28 |
# File 'lib/plex_symlinker/file_types/mp3.rb', line 24 def @tags ||= TagLib::MPEG::File.open(path) { |file| Hash[file.id3v2_tag.frame_list.map { |f| [f.frame_id, f.to_s] }] } end |