INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Creating Playlists (Automatically?)  (Read 2044 times)

LonWar

  • Citizen of the Universe
  • *****
  • Posts: 2874
Creating Playlists (Automatically?)
« on: November 29, 2004, 02:40:44 pm »

Hello, Before I do this the old fashioned manual way...

Is there a way to create a Playlist automatically? I want to create 1 playlist per Artist.

Am I in luck, or do I have to do this one by one?



Thanks,
Logged
-

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20056
Re:Creating Playlists (Automatically?)
« Reply #1 on: November 29, 2004, 03:35:32 pm »

why would you want to?
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA

LonWar

  • Citizen of the Universe
  • *****
  • Posts: 2874
Re:Creating Playlists (Automatically?)
« Reply #2 on: November 29, 2004, 07:32:01 pm »

why would you want to?

I am starting to make cd's for my car. 1 cd 1 artist.

If I start with 1 playlist per artist,. it will help narrow the work down.
Logged
-

edbro

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 733
Re:Creating Playlists (Automatically?)
« Reply #3 on: November 29, 2004, 07:47:26 pm »

MP3 Folder Playlists will create unique playlists for each folder under a parent folder. Ex: I have all my albums in their own folder under group name, under "MyMusic". MP3 Folder Playlists will recursively go through each subdirectory and put a playlist in each folder of music.
http://kanjischool.com/mp3folders/

MP3Tag will also build a playlist for whatever is below the folder you are pointing at. Different than above. Ex: If I point it at the folder "The Beatles", it will build a single playlist for all my Beatles albums.
http://www.mp3tag.de/en/
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re:Creating Playlists (Automatically?)
« Reply #4 on: November 29, 2004, 09:38:47 pm »

Or you could just run
Code: [Select]
ls -R /music/foo/ > /music/foo/playlist.m3u
Oh wait.  The Windows (command line) shell is a piece of poo.   ;)

You could use Cygwin and then run this command though.  You could quite easily write a script that auto generates these for whatever directories you want and have it run once a day, on command, or every 10 minutes.

Check out http://www.cygwin.com/ it gives you *NIX-like shell functionality on windows (for free).
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re:Creating Playlists (Automatically?)
« Reply #5 on: November 30, 2004, 10:13:32 am »

Well, the Windows shell is still a piece of poo, but it turns out that you can do this from the command line.

Code: [Select]
xcopy /L c:\path\to\files\*.mp3 > c:\path\to\playlist.m3u
[sarcasm]Why ever wouldn't I have thought to use a copy command to list files?[/sarcasm]

It adds a total files count to the end of the file, but I bet that wont be a problem.  You could test it.

Oh yeah, and I realized that my "ls" command above won't work because it sorts the files into groups.  There is definately a way to do it with ls, I just don't remember the command right now (I've used it before).  If anyone needs it I'm sure I could remember (or look it up) if requested.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

Omni

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 827
Re:Creating Playlists (Automatically?)
« Reply #6 on: November 30, 2004, 10:44:50 am »

glynor, I'm a big fan of Cygwin, too, so don't take this to mean that I am endorsing the use of the DOS prompt, but still..

(linux)
Code: [Select]
ls -R /music/foo/ > /music/foo/playlist.m3u
equals

(dos)
Code: [Select]
dir /S d:\music\foo > d:\music\foo\playlist.m3u

Using xcopy is kind of overkill. ;)
Logged

Omni

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 827
Re:Creating Playlists (Automatically?)
« Reply #7 on: November 30, 2004, 10:50:31 am »

As an update in response to your "ls" comments, "dir /S" will not group things as long as you use the /b parameter:

(dos)
Code: [Select]
dir /S /B d:\music\foo > d:\music\foo\playlist.m3u

For linux, you would probably want to use find instead.
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re:Creating Playlists (Automatically?)
« Reply #8 on: November 30, 2004, 10:52:04 am »

Yeah, but ls -R (nor dir /S) doesn't work either, because it sorts the recursive listing in this format:

c:\path\to\folder\subfolder\:
file1
file2
file3
file4
etc.

This of course won't work for a m3u.  You need them listed in this format:
c:\path\to\folder\subfolder\file1
c:\path\to\folder\subfolder\file2
c:\path\to\folder\subfolder\file3
c:\path\to\folder\subfolder\file4
etc

Now I'm irritated because I know I figured this out once (to get a listing of all of my music files) on my linux server.  Erg.  I will figure it out again!!
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re:Creating Playlists (Automatically?)
« Reply #9 on: November 30, 2004, 11:09:54 am »

I figured it out.

Code: [Select]
find /path/to/files -name "*.mp3" -print > playlist.m3u
This does it perfectly without the listing of the number of files or doing the weirdness that ls -R does.  You can also modify the find to change the search order, limit it by modified dates, and all kinds of other cool stuff.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re:Creating Playlists (Automatically?)
« Reply #10 on: November 30, 2004, 11:26:03 am »

I was so determined to figure it out that I didn't see your second posting before I added mine (you must have typed faster).  Thanks Omni!
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/
Pages: [1]   Go Up