Script to save Now Playing list in a new playlist?

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

pokeefe0001
Posts: 29
Joined: Thu Oct 11, 2018 4:48 pm

Script to save Now Playing list in a new playlist?

Post by pokeefe0001 »

Is there an existing script, or a set of scripts that can be cannibalized, that will save the Now Playing list to a new playlist?

I know it can be done manually, and it usually is done in our setting, but we need a more foolproof method. The best solution would be something automatically invoked at MM shutdown. We would want the playlist name to be automatically generated based on date.

Be forewarned that I don't know much about the internal structure of MM, don't know VBS at all, and (until a couple weeks ago) have done no object-oriented programming. There's a steep learning curve here and I'm the designated victim, Expect more questions.
Peke
Posts: 14379
Joined: Tue Jun 10, 2003 7:21 pm
Location: Serbia
Contact:

Re: Script to save Now Playing list in a new playlist?

Post by Peke »

Hi,
No need for addon.

Select all track in Now playing -> Right click on one -> Send to -> Playlist -> Create New Playlist.
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
How to add SCREENSHOTS to forum
pokeefe0001
Posts: 29
Joined: Thu Oct 11, 2018 4:48 pm

Re: Script to save Now Playing list in a new playlist?

Post by pokeefe0001 »

Peke wrote: Mon Jul 19, 2021 4:02 pm Hi,
No need for addon.

Select all track in Now playing -> Right click on one -> Send to -> Playlist -> Create New Playlist.
I know it can be done manually. I want a way that can be automated - hence, a script.

BTW, somehow this thread landed in the MMW5 forum, but I'm using MMW4.
Peke
Posts: 14379
Joined: Tue Jun 10, 2003 7:21 pm
Location: Serbia
Contact:

Re: Script to save Now Playing list in a new playlist?

Post by Peke »

Hi,
Maybe I am not regular user, but I do not see the point to save new playlist on each playlist change.

In MM5 I see that you can easily add new hotkey to create playlist that opens left of Now Playing and you can easily Drag and drop Selection. Not perfect, but better than in MM4.

Sure, script can be made, but as MM5 is out I really doubt that someone will make script for MM4 as in MM5 things are even easier because we use more common Java Script.

Anyway, I would like to see it made someday, so I added this for future MM versions. https://www.ventismedia.com/mantis/view.php?id=18155
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
How to add SCREENSHOTS to forum
pokeefe0001
Posts: 29
Joined: Thu Oct 11, 2018 4:48 pm

Re: Script to save Now Playing list in a new playlist?

Post by pokeefe0001 »

Peke wrote: Wed Jul 21, 2021 6:13 pm Hi,
Maybe I am not regular user, but I do not see the point to save new playlist on each playlist change.
...
Sure, script can be made, but as MM5 is out I really doubt that someone will make script for MM4 as in MM5 things are even easier because we use more common Java Script.
...
I don't want a playlist created on each playlist change; I want it created on MM shutdown. (I don't know if that is possible.) I'll settle for a script that can be mindlessly invoked that does not prompt for information. Yes, I know that doing this saving function manually is trivial, but it still is beyond some of our users.

The script would need to
  • Check for the existence of this year as a "folder" in the list of playlists and create it if it doesn't exist.
  • Select that folder as the destination of the playlist to be created.
  • Save the playlist with a name based on the date.
In any case, I'm not asking to have such a script written. I was asking if it already exists and I assume the answer is "No".

Now I'll start asking for the names of scripts I can cannibalize to create my own. I've never done object-oriented programming so this will be a challenge, but the language is not going to be the stumbling block. Its would be no easier for me in JavaScript than in VBS. I'm betting there is an object that is the Now Playing list (SDB.CurrentSongList?) and there is probably a new playlist object so it probably won't be too hard.
Lowlander
Posts: 50176
Joined: Sat Sep 06, 2003 5:53 pm
Location: MediaMonkey 5

Re: Script to save Now Playing list in a new playlist?

Post by Lowlander »

MediaMonkey 4 already saves the Now Playing as mediamonkey.m3u8 on shutdown (in MediaMonkey 5 it's updated as changes are made). You can find it where the ini is saved: https://www.mediamonkey.com/support/kno ... ini-files/
Lowlander (MediaMonkey user since 2003)
pokeefe0001
Posts: 29
Joined: Thu Oct 11, 2018 4:48 pm

Re: Script to save Now Playing list in a new playlist?

Post by pokeefe0001 »

Lowlander wrote: Wed Jul 21, 2021 7:53 pm MediaMonkey 4 already saves the Now Playing as mediamonkey.m3u8 on shutdown (in MediaMonkey 5 it's updated as changes are made). You can find it where the ini is saved: https://www.mediamonkey.com/support/kno ... ini-files/
Ah. I wondered what that was. Up until, well, about now, our group has been running MM 2.5. I'm bringing us up to MM 4.1 and am still learning.

However, what I'm interested in is a playlist in the MM database rather than an external m3u file. Is there any way to copy an m3u file into an MM internal playlist? I know giving the mu3 file to MM gets it into the Now Playing list, but that gets me back where I started.

The fact that "playlist" has two different meanings (or maybe two different implementations) in MediaMonkey can be confusing. (Having "now playing" being both a list and a single track is also confusing.)
Post Reply