Menu

Home

sposkpat

Welcome to your wiki!

This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: [SamplePage].

The wiki uses Markdown syntax.

Project Members:


Discussion

  • sposkpat

    sposkpat - 2014-01-24

    "fav2dir: copy mpd favorite songs (or any playlist) to DEST:"
    "###### START:"
    "Seperator (Internal Field Separator)"
    IFS='
    '
    "###### PARAMETER:"
    PLAYLIST="/home/user/MyPlaylists/Favorites.m3u"
    MPDMUSICDIR="/home/user/MyMusic/"
    DEST="/home/user/MyFavoriteSongs/"
    "###### COMMANDS:"
    mkdir --parents $DEST$MPDMUSICDIR

    for TITLE in $(cat $PLAYLIST) ; do
    cp -a --parents -u -v "$MPDMUSICDIR$TITLE" "$DEST"
    done
    "###### END"

     

    Last edit: sposkpat 2014-01-27
  • sposkpat

    sposkpat - 2014-01-25

    Usage:

    1. Edit fav2dir.sh: set the 3 PARAMETER in fav2dir for your system.
      (For speed reason it could be wise to have DEST on another disk as MPDMUSICDIR)

    2. make fav2dir.sh executable

    3. Run fav2dir.sh.

    4a. Move/copy your favorite music in DEST to your mounted mp3player, and/or
    4b. Move/copy your favorite songs in DEST to a backup medium.

    1. When you have added songs to your favorites list just run fav2dir again.
      The songs already in DEST will not be overwritten.
     

    Last edit: sposkpat 2014-02-20

Log in to post a comment.