INTERACT FORUM

Windows => Third Party Plug-ins, Programs, and Skins => Topic started by: difool on January 10, 2022, 04:33:02 am

Title: Automate adding data to existing media file? (Spotify)
Post by: difool on January 10, 2022, 04:33:02 am
After finally accepting that there will never be a nice robust workflow to get my music collection synced to my iPhone via MC (no hard feelings, I fully understand why  ;D) I bit the bullet and committed to spotify for my on-the-go music "needs".

To facilitate this I cobbled together a python script which creates Spotify playlists from .m3u files via their web api. It was basically a lock-down project I started without much optimism but it actually works great even with big playlists. If there is enough interest I can open a thread but beware: it is definitely amateur-work-in-progress.

The script controls the search function from spotify and I retrieve spotify-ids for the tracks which then are fed into spotify playlists. Sometimes I have to manually adjust the search terms to get the correct version of the track. But at the end I have spotify ids for the tracks in the .m3u created by MC.

How could I get these back into MC so that the next time I want to create a spotify playlist I could just export a list with those ids to directly feed into the api without going through the spotify search?

I looked around in the COM automation part of the wiki but it didn't really click for me where to start...
Any suggestions?

Thanks!
Title: Re: Automate adding data to existing media file? (Spotify)
Post by: JimH on January 10, 2022, 07:26:23 am
On the DevZone page, take a look at the MCWS interface.  No idea if you can make it work.
Title: Re: Automate adding data to existing media file? (Spotify)
Post by: lepa on January 10, 2022, 11:32:34 am
https://yabb.jriver.com/interact/index.php/topic,123397.0.html
Title: Re: Automate adding data to existing media file? (Spotify)
Post by: difool on January 10, 2022, 01:58:01 pm
Thanks!

The Python wrapper would close the loop perfectly. Unfortunately I hit a roadblock getting it to run. Posted it in the corresponding thread.

Made some proof-of-concept progress calling MCWS directly so I am fairly optimistic that I will get it done this way or the other  ;D