Old 2nd January 2013, 04:52   #1
mjbrown
Senior Member
 
Join Date: Aug 2001
Posts: 114
Can I keep the current playlist in sync with library?

This seems like something that should be pretty basic, but I've tried searching and didn't find exactly what I was looking for, so I'm asking here.

When I first set up the media library, the playlist window was automatically populated with the entire contents of the library. This happened to be exactly what I wanted, because I want to let Winamp play everything in the library in shuffle mode, broadcasting via the SHOUTcast DSP.

The library changes daily, so I've configured it to rescan every 1440 minutes. However, this doesn't affect the playlist. I want the playlist to stay in sync; everything in the library should be in the playlist. Is this possible? I don't see a way to automate it, but maybe I'm overlooking something.
mjbrown is offline   Reply With Quote
Old 2nd January 2013, 10:03   #2
DrO
 
Join Date: Sep 2003
Posts: 27,873
there's nothing natively in place which will do it. without a plug-in or native code changes, the library and main playlist editor are completely separate instances.

-daz
DrO is offline   Reply With Quote
Old 2nd January 2013, 21:30   #3
MrSinatra
Forum King
 
MrSinatra's Avatar
 
Join Date: Dec 2004
Location: WKPS, State College
Posts: 5,625
Send a message via AIM to MrSinatra
this is something i am also looking for.

whats really needed is a scheduler / dynamic shuffle play randomizer.

i described this more or less here:

http://forums.winamp.com/showthread.php?t=351953

PENN STATE Radio or http://www.LION-Radio.org/
--
BUG #1 = Winamp skips short tracks
Wish #1 = Multiple Column Sorting
Wish #2 = Add TCMP/Compilation editing
MrSinatra is offline   Reply With Quote
Old 2nd January 2013, 23:24   #4
mjbrown
Senior Member
 
Join Date: Aug 2001
Posts: 114
OK, thanks. I will rely on a script to generate the playlist separately, then.

Here is what I'm currently doing in a Windows command shell to generate a playlist of all the music files in a given folder tree:

code:
chcp 65001 && dir T:\music /b /s | findstr /e /l ".mp3 .flac .m4a .wav .wma .ogg .mp2" | findstr /e /l /v ".lnk" > playlist.m3u8


Of course, replace T:\music with the actual folder to scan (or list of folders, space-separated). You can omit any filename extensions that you don't want to look for.

Explanation:
chcp 65001 sets UTF-8 mode, which isn't well supported for displaying text in the command shell (you'll probably get bogus "out of memory" errors), but it works correctly when redirecting output to a file as we're doing here. If you need to keep working in the same window after this, run chcp again to change to your normal codepage (e.g. chcp 437 in the U.S.)

dir X /b /s recursively lists the contents of folder X, outputting one complete file path or folder path per line. Wrap X in double quotes if it contains spaces. You can specify multiple folders if you want, separated by spaces.

findstr /e /l "X Y Z" extracts just the lines which end (/e) with the literal string (/l) X, Y, or Z.

findstr /e /l /v "X" extracts the lines which don't (/v) end (/e) with the literal string (/l) X.

&& means do the next command if the previous one succeeded.

| means pipe the output of the last command to the next one.

> X means write the output of the last command to the file X instead of the console.
To automate the playlist generation in Windows Vista and up, open the Task Scheduler (just start typing task in the Start menu's search box) and create a new task with a 'Start a program' action. Enter any name and description you want. Set the trigger time so that it will run daily, just a couple minutes into the future so you can test it right away. Set the program to cmd.exe and the arguments to /C "foo" where foo is the command line as given above. "Start in" should be the path of the folder where you want playlist.m3u8 to be created (I use the path of my Desktop), or you can leave it blank and specify the full path in the arguments. If it works properly, you'll briefly see a command shell window open with the output of chcp (65001 is UTF-8), and then it will close once the playlist is generated. If all goes well, go back into the task's properties and change the trigger schedule to whatever you really want.
mjbrown is offline   Reply With Quote
Old 3rd January 2013, 14:46   #5
HuduGuru
Junior Member
 
Join Date: Jan 2013
Posts: 3
Sorry but will winamp automatically rescan changed playlist?
HuduGuru is offline   Reply With Quote
Old 3rd January 2013, 14:56   #6
Aminifu
Forum King
 
Aminifu's Avatar
 
Join Date: Aug 2011
Location: Phoenix, AZ
Posts: 4,658
Quote:
Originally Posted by HuduGuru View Post
Sorry but will winamp automatically rescan changed playlist?
Unfortunately, no.

Winamp Pro v5.666.3516 fully-patched - Komodo X Touchscreen v1.0 by Victhor skin
Windows 10 Home 64-bit v1809 desktop - Logitech Z906 5.1 speaker system
Aminifu is offline   Reply With Quote
Old 3rd January 2013, 19:11   #7
mjbrown
Senior Member
 
Join Date: Aug 2001
Posts: 114
Indeed, that would be a nice feature or plugin. Someone asked about it at least once before. I looked through all the playlist plugins on winamp.com, but no one has yet written something to do this.

As it stands, I keep the generated playlist, or a shortcut to it, on my desktop, so I can double-click it to force a reload.
mjbrown is offline   Reply With Quote
Old 15th January 2013, 08:49   #8
Martini63
Junior Member
 
Join Date: May 2009
Location: Germany
Posts: 5
I also need this automatic updated playlist. Winamp with some addon (Essential & Autoamp) is my solution since 2007 for background music in a fashion store.
Martini63 is offline   Reply With Quote
Old 14th February 2013, 17:09   #9
mjbrown
Senior Member
 
Join Date: Aug 2001
Posts: 114
I don't know why I didn't think of this before now. Can't see the forest for the trees, I guess.

I have M3U8 files configured to open in Winamp by default. So all I had to do to get the playlist to load after being rebuilt was add
code:
&& playlist.m3u8
to the end of the command line in my previous post. The only downside of this is that it takes effect immediately, interrupting whatever song is currently playing. Small price to pay, really, especially when your station has no listeners, like mine.
mjbrown is offline   Reply With Quote
Old 2nd March 2013, 15:03   #10
mjbrown
Senior Member
 
Join Date: Aug 2001
Posts: 114
Correction to my last post:
code:
&& start /b playlist.m3u8

(otherwise the window stays open).
mjbrown is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Winamp > Winamp Discussion

Tags
library, playlist, sync, synchronize

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump