7myml - essa/7m GitHub Wiki

Summary

How to edit playlist of 7mServer video http://www.youtube.com/watch?v=QBI9HHaFHig

The config file of 7mServer is located ~/Library/Application\ Support/7mServer/7m.yml.

This file is generated on the first start up and you can edit it in config tab of 7mServer or your favarite editor.

The format of it is YAML.

So be careful about indentation on editting it.

Sample

This is my config file for daily use. All sources are smart playlist tuned to special purpose.

loglevel: DEBUG
logfile: /tmp/7m.log
sox_opt: -b 200000 -m -c 2
remixed playlists:
  - name: taku1
    m3u:
      minimum_tracks: 5
      minimum_duration: 60
    frames:
    - name: rate4
      source: rate4  # muscics rated 4 or 5 
      max_track: 3
      duration: 180-420
    - name: podcasts1
      source: new_podcasts # English podcasts sorted by date
      max_track: 2
      duration: 120-420
    - name: music
      source: favarite_music # musics radomly selected
      max_track: 3
      duration: 120-420
    - name: podcastsj
      source: podcastj # Japanese podcasts
      max_track: 2
      duration: 420-600
    - name: music
      source: favarite_music
      max_track: 3
      duration: 420-600
      max_duration_per_track: 300
    - name: podcasts
      source: esl  # English as second language podcast
      max_track: 1
      duration: 300-420
    - name: longtracks
      source: longtracks # tracks duration is longer than 30 minutes
      max_track: 2
      duration: 420-600
    - name: audiobooks
      source: audiobooks_selection
      max_track: 1
      duration: 120-420
    - name: music
      source: favarite_music
      max_track: 3
      duration: 420-600
      max_duration_per_track: 300
    - name: podcasts2
      source: new_podcasts
      max_track: 1
      duration: 300
      max_duration_per_track: 300
    - name: request
      source: 7m_queue # Request Queue of 7mServer
      max_track: 1
      duration: 420-600

'favarite_music' is a very complicated smart playlist. It selects random musics acording to rateing. Higher the rate, more often selected by this smart list.

Structure of Remixed playlist

Most important attribute is 'remixed playlists' which is ....

  • an array of playlist entry which has many frames
  • frame maps to iTunes playlist by source attribute
  • frame has important attributes such as max_track, duration and max_duration_per_track

Root Attributes

name type/posible value meaning
loglevel DEBUG/INFO/WARN/ERROR/FATAL
logfile path path of log file
sox_opt string options for sox command
remixed playlists array

Remixed Playlists Attributes

name type/posible value meaning
m3u hash attributes for creating m3u playlist
name string
frames array

Frame Attributes

name type/posible value meaning
name string
source string name of iTunes playlist used for source of this frame
max_track integer stop slecting tracks to this frame after this number of tracks are selected
duration from-to duration range for this frame
max_duration_per_track integer playback will be stoped after playing this duration if the track is longer