answered
2015-03-16 13:14:04 +0200
I know that this is not a good solution for this problem, but works. I usually at home mount my nfs share on my jolla and play the music on console using the following command.
find /home/nemo/remote/licaon/media/audio/electronic/ -type f -name "*.mp3" | shuf |while read line;do echo Playing "$line"; gst-launch-0.10 playbin uri=file://"$line" > /dev/null; done
This can be put in a script easyly as its shown. Also notice shuf command. This is used for creating a random order "playlist". If you dont like playing on random order, take it out from the command line.
#!/bin/bash
usage() { echo "Usage: $0 [-s <0|1>] [-f <play folder>]" 1>&2; exit 1;}
########
#defaults
playFolder="/home/nemo/remote/licaon"
shuf=1
########
#chech arguments
while getopts ":s:f:" o; do
case "${o}" in
s)
shuf=${OPTARG}
((shuf == 0 || shuf == 1 )) || usage
;;
f)
playFolder=${OPTARG}
;;
*)
usage
;;
esac
done
if [ ! -d "${playFolder}" ]; then
usage
fi
echo "Playing folder: ${playFolder}"
if [ ${shuf} -eq "0" ]; then
find ${playFolder} -type f -name "*.mp3" -or -name "*.ogg" -or -name "*.ogm" -or -name "*.fla" |while read line;do echo Playing "$line"; gst-launch-0.10 playbin uri=file://"$line" > /dev/null; done
else
find ${playFolder} -type f -name "*.mp3" -or -name "*.ogg" -or -name "*.ogm" -or -name "*.fla" | shuf |while read line;do echo Playing "$line"; gst-launch-0.10 playbin uri=file://"$line" > /dev/null; done
fi
Usage:
[nemo@Jolla tmp]$ playFolder.sh -s 0 -f /media/sdcard/e336005d-4154-4f73-a0d0-cd17939f04a3/Music/jazz/
Playing files on: /media/sdcard/e336005d-4154-4f73-a0d0-cd17939f04a3/Music/jazz/
Playing /media/sdcard/e336005d-4154-4f73-a0d0-cd17939f04a3/Music/jazz/Diana Krall - Discografia/Love Scenes/08 - You're Getting To Be A Habit With Me.mp3
I'd like to have it too. In N900 I use "necrolong" music player just because the default one doesn't let me manage my music as I want. I just want to add files and folders recursively. My music collection of 100Gb is perfectly ordered (and mostly tagged). For me tags are good just for information.
Malkavian ( 2013-12-29 03:16:25 +0200 )editAbsolutely agree: In the media player we should be able to select one or more folders that we know to contain sound files. I don't like it when a program tries to do it all automatically (the option may be there, but I want to turn it off). Indexing and searching for sound files takes a long time, eats battery and the result can include unwanted files.
Of course it is very important that the media player can also access directories on the external MicroSD card.
StaticNoiseLog ( 2013-12-31 00:26:12 +0200 )editDefinitely an important feature. Even more because my tagged music wasn't recognized properly.
johas ( 2014-01-02 11:06:46 +0200 )editI can't even find my music properly with the given options, "by folder" option would be very appreciated.
Vipa ( 2014-01-02 18:42:13 +0200 )editWhy not have best of both worlds - a special folder where music is navigated by file structure and then what the database-based approach we currently have!
kylihars ( 2014-01-03 21:56:13 +0200 )edit