![]() |
Script to create M3U playlists for each folder in MyDocs/.sounds
I've created this script that makes a playlist for each folder in your music. This lets you play a folder at a time with the default media player.
Code:
cd ~/MyDocs/.soundsIncidently, git source control is a great way to manage projects on the N900 as you can easily sync to your PC or github.com. You can install git on the N900 with a simple Code:
apt-get install gitCode:
find "$i/" -type f -regex ".*\([mM][pP]3\|[wW][mM][aA]|[oO][oO][gG]\)" > "$i.m3u" |
Re: Script to create M3U playlists for each folder in MyDocs/.sounds
thanks dave1010, is there any way to expand the recently added playlist from 30 songs, or possibly to sort the songs in order of date added?
|
Re: Script to create M3U playlists for each folder in MyDocs/.sounds
now just pretty UI around it and people will love you instantly :)
|
Re: Script to create M3U playlists for each folder in MyDocs/.sounds
yep all my n900 stuff is in a github project too :)
Git rocks. |
Re: Script to create M3U playlists for each folder in MyDocs/.sounds
great stuff. tried it and it work fine. my questions is does it automatically make a playlist of any folder i add to the music folder from now on or do i have to run the code everytime i add new music/song/folder to the folder??
thanks. alot. |
Re: Script to create M3U playlists for each folder in MyDocs/.sounds
Quote:
|
Re: Script to create M3U playlists for each folder in MyDocs/.sounds
Quote:
Code:
cd ~/MyDocs/.soundsQuote:
Quote:
When I have some time I'll look into getting it to run automatically when the Media Player loads and/or a nice GUI. Alternatively, you could save it as a script and make it into a Queen BeeCon Widget quite easily. |
Re: Script to create M3U playlists for each folder in MyDocs/.sounds
What to do when I have those scripts in memory card? this script runs only for the internal memory rite
|
Re: Script to create M3U playlists for each folder in MyDocs/.sounds
What to do when I have those scripts in memory card? this script runs only for the internal memory rite
|
Re: Script to create M3U playlists for each folder in MyDocs/.sounds
Quote:
Code:
cd /media/mmc1Code:
cd /media/mmc1/music |
Re: Script to create M3U playlists for each folder in MyDocs/.sounds
All my music is on my 16 Gb SD card and it plays fine from there on my N900.
Question, all my songs are in m4a format so does m3u support this format.. thanks. I do not want to use mp3 going forward as well. |
Re: Script to create M3U playlists for each folder in MyDocs/.sounds
Quote:
If the playlist is in the same directory as the audio files, no path information is needed in the playlist. This also makes it easy to move directories around on a device or between devices. Code:
cd $1Code:
cd $1 |
Re: Script to create M3U playlists for each folder in MyDocs/.sounds
Quote:
Code:
find "$i/" -type f -iname "*.m4a" > "$i.m3u" |
Re: Script to create M3U playlists for each folder in MyDocs/.sounds
j.s, that's a great idea using ls instead of find. I keep most of my music in an Arist/Album/Track structure so it woudn't work so well some of the time. I'm experimenting with ls -R (recursive) but it's not getting the whole path.
|
Re: Script to create M3U playlists for each folder in MyDocs/.sounds
Quote:
|
Re: Script to create M3U playlists for each folder in MyDocs/.sounds
Quote:
|
Re: Script to create M3U playlists for each folder in MyDocs/.sounds
Hi.. M sure my question might sound lame! but m not aware of how one is supposed to use scripts!! Pls guide me on how i am supposed to install this script in my fone to be able to play my tracks by folders!! Thanks in advance!!
|
| All times are GMT. The time now is 00:02. |
vBulletin® Version 3.8.8