Sha256: 71782ee963777ac92fb4c557662b9bfcfba0b636f4f42adf884661452e5f3261

Contents?: true

Size: 1.04 KB

Versions: 3

Compression:

Stored size: 1.04 KB

Contents

module Tagomatic

  module Tags

    # Use these like this on the command line:
    # --format "%g/%a/%b (%y)/%n - %t.mp3"
    #
    # Or use them like this in folder-specific .format= file names:
    # touch ".format=%g|%a|%b (%y)|%n - %t.mp3"
    #
    # Some more examples showing what you can do:
    #
    # * Using %i (ignore) to swallow trash after album name:
    #   --format "%g/%a/%b - %i - %y/%n - %t.mp3"
    #
    # * Specifying text to be skipped:
    #   --format "%g/%a/%b - encoded by noone - %y/%n - %t.mp3"

    FORMAT_ID_ARTIST = 'a'
    FORMAT_ID_ALBUM = 'b'
    FORMAT_ID_DISC = 'd'
    FORMAT_ID_GENRE = 'g'
    FORMAT_ID_IGNORE = 'i'
    FORMAT_ID_TITLE = 't'
    FORMAT_ID_TRACKNUM = 'n'
    FORMAT_ID_YEAR = 'y'

    FORMAT_REGEXP_ARTIST = '([^\/]+)'
    FORMAT_REGEXP_ALBUM = '([^\/]+)'
    FORMAT_REGEXP_DISC = '\s*([0-9]+)\s*'
    FORMAT_REGEXP_GENRE = '([^\/]+)'
    FORMAT_REGEXP_IGNORE = '([^\/]+)'
    FORMAT_REGEXP_TITLE = '([^\/]+)'
    FORMAT_REGEXP_TRACKNUM = '\s*([0-9]+)\s*'
    FORMAT_REGEXP_YEAR = '\s*([0-9]+)\s*'

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tagomatic-0.1.5 lib/tagomatic/tags.rb
tagomatic-0.1.4 lib/tagomatic/tags.rb
tagomatic-0.1.3 lib/tagomatic/tags.rb