Play song just from Path-Info??

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

Begges
Posts: 20
Joined: Fri Apr 28, 2006 3:52 pm
Location: Germany

Play song just from Path-Info??

Post by Begges »

Hi,

i m just scripting around a bit and have now the following problem:
- i am importing some paths from mp3-files via a txt.file without adding these songs to the db
- is it now possible just to play a mp3 with this path information (something like sdb.player.play ("C:\Test.mp3"))???

Thanks for your help!

Begges
DiddeLeeDoo
Posts: 1017
Joined: Wed Mar 01, 2006 1:09 am
Location: In a jungle down under
Contact:

Post by DiddeLeeDoo »

Believe these can be used.

1. Use MediaMonkey.exe with options like
MediaMonkey.exe Song.mp3
MediaMonkey.exe /Next Song.mp3
MediaMonkey.exe /Add Song.mp3

There are other ways too, but I believe you then need to use SDB.NewSongData or SDB.NewSongList and add the tracks that way, and then use SDB.PlaylistAddTrack(SDB.NewSongData.Path="Song.mp3") for example

Untested guess the last one, but I know I've done that before, but can't recall exactly what I used. Is not in any of the scripts I currently have here.
Image
DiddeLeeDoo
Posts: 1017
Joined: Wed Mar 01, 2006 1:09 am
Location: In a jungle down under
Contact:

Post by DiddeLeeDoo »

That guess was a bit too short, but this is valid
Set Song=SDB.NewSongData
Song.Path="C:\Somewhere\Or There\01 Song.mp3"
SDB.Player.PlaylistAddTrack(Song)
Image
Begges
Posts: 20
Joined: Fri Apr 28, 2006 3:52 pm
Location: Germany

Thanks

Post by Begges »

Thanks DiddeLeeDoo, i will try this.

Great work you are doing here in this forum! And thanks also for naming me the "Pioneer of the lyrics panel" :D

Begges
DiddeLeeDoo
Posts: 1017
Joined: Wed Mar 01, 2006 1:09 am
Location: In a jungle down under
Contact:

Post by DiddeLeeDoo »

Great to see you back here, and that you set off some time to script a bit again... been awhile.

I haven't tried it yet, but it might be possible to just call the .txt file a .m3u file and load it like that too. Guess there's many ways to do what you try to do.

Glad you feel ok by there being more than one .html lyrics viewer. I feel as long as it is not modified copies it's alright to have a selection scripts here. I know I in no way at all appreciated when a script I had spent many weeks on making were copied 1-1 and modified to not work anymore. Not at all a fun experience. I now make sure I mark those scipts that takes forever to do with some sort of copy right to avoid getting annoyed like that again.
Image
Begges
Posts: 20
Joined: Fri Apr 28, 2006 3:52 pm
Location: Germany

Post by Begges »

Don't worry!
You are now one oft the most active members here - in my case I am proud about the thing, that my idea has inspired you to be creative. And that my scripts maybe have infected you with the MediaMonkey-Virus :D

Begges
Last edited by Begges on Sun Sep 10, 2006 4:09 am, edited 1 time in total.
DiddeLeeDoo
Posts: 1017
Joined: Wed Mar 01, 2006 1:09 am
Location: In a jungle down under
Contact:

Post by DiddeLeeDoo »

You sure are a positive inspiration :)
Image
Begges
Posts: 20
Joined: Fri Apr 28, 2006 3:52 pm
Location: Germany

Post by Begges »

:D you gave your answer, while i was editing the original post :D

that is fast work..!!
Post Reply