I wish there was a good looping software that good take any song and cut the perfect infinite loop of it automatically.

  • @[email protected]
    link
    fedilink
    412 days ago

    Ok 6 lines (untested):

    while true; do
      album=$(ls albums | shuf -n 1)
      for song in $(ls albums/$album/*.mp3 | shuf); do
         mplayer $song
      done
    done
    
      • @[email protected]
        link
        fedilink
        312 days ago

        The first pipe to shuf chooses a random album and the second randomizes the order of the songs on that album. I thought that is what OP had asked for.

        • @[email protected]
          link
          fedilink
          English
          412 days ago

          I read it as play a random album straight through, first song to last song, but re-reading what they wrote, you may be right.