IPB

Welcome Guest ( Log In | Register )

2 Pages V   1 2 >  
Reply to this topicStart new topic
Primitive SoundCloud integration, vbscript
romor
post Sep 15 2012, 16:01
Post #1





Group: Members
Posts: 716
Joined: 16-January 09
Member No.: 65630



The script: view download

Can be used with foo_run or foo_uie_biography or both. Usage is simple:

1. foo_run action command:
CODE
wscript soundcloud.vbs


it will create playlist and open it with default application set to handle PLS format, hopefully foobar wink.gif

2. foo_uie_biography run external script command:
CODE
cscript soundcloud.vbs "%path%"


As other scripts parsing XML, it's fast and I guess it would be most useful to electronic music fans
Streams are seekable

Cheers


--------------------
scripts: http://goo.gl/M1qVLQ
Go to the top of the page
+Quote Post
MDMA
post Sep 15 2012, 17:38
Post #2





Group: Members
Posts: 75
Joined: 23-May 10
Member No.: 80861



Thanks going to give this a try now
Go to the top of the page
+Quote Post
k8o
post Sep 16 2012, 10:06
Post #3





Group: Members
Posts: 8
Joined: 20-November 11
Member No.: 95296



Awesome work, using it now, will be interesting to see if you develop it further, thanks for sharing smile.gif
Go to the top of the page
+Quote Post
romor
post Apr 5 2013, 06:19
Post #4





Group: Members
Posts: 716
Joined: 16-January 09
Member No.: 65630



Added some new options: https://gist.github.com/4d06d0994c1b8ae61ef5

1. it's possible to paste soundcloud url in input box and script will retrieve the tracks from it:


2. user can search for specific soundcloud user or group (as noted in simple dialog) and receive the tracks accordingly

3. I added option for downloading waveform image (disabled by default). Idea was to embed the image in waveform seekbar, as background, but I couldn't test it as it seems my graphic card doesn't support that feature, perhaps someone can play with it. To enable this feature, just set the variable on 1st line to True.


--------------------
scripts: http://goo.gl/M1qVLQ
Go to the top of the page
+Quote Post
Propheticus
post Apr 5 2013, 12:53
Post #5





Group: Members
Posts: 223
Joined: 10-September 11
Member No.: 93615



Bugreport: The newest version does not always work when giving it a direct URL (https://soundcloud.com/falscherhase for instance). The old script works however...
Go to the top of the page
+Quote Post
romor
post Apr 5 2013, 14:55
Post #6





Group: Members
Posts: 716
Joined: 16-January 09
Member No.: 65630



Thanks for reporting, issue is corrected

Problem appears with direct links to user or group profile resource, in which case soundcloud resolver doesn't return playlist. Also in this case you could have used "user=falscherhase" as a workaround, but of course issue is valid and user is to be expecting that soundcloud link with tracks should work

BTW, previous script can't do this


--------------------
scripts: http://goo.gl/M1qVLQ
Go to the top of the page
+Quote Post
Propheticus
post Apr 5 2013, 15:17
Post #7





Group: Members
Posts: 223
Joined: 10-September 11
Member No.: 93615



Problem fixed indeed. The search function is nice btw. Thanks for the handy script.

I can't seem to get the waveform working however, there's seem to be no waveform.png being saved (not anywhere was able to find it anyway).

This post has been edited by Propheticus: Apr 5 2013, 15:18
Go to the top of the page
+Quote Post
romor
post Apr 5 2013, 16:51
Post #8





Group: Members
Posts: 716
Joined: 16-January 09
Member No.: 65630



If `waveform` variable (1st line in the script) is set to True, then waveform.png should be saved in foobar's default folder, which should be %ProgramFiles%\foobar2000. Also, you would have to add the script in "Biography view" external scripts - that one triggers it on track change.
I just added now `folder` variable on 2nd line, where you can set custom path for saved waveform (path should be valid existing folder).

So, if you know how to set Waveform seekbar shader script, that would be great test.
I hope seekbar wouldn't mind that image is delivered couple of seconds after the track starts.


--------------------
scripts: http://goo.gl/M1qVLQ
Go to the top of the page
+Quote Post
blausand
post Apr 26 2013, 08:24
Post #9





Group: Members
Posts: 11
Joined: 12-April 11
Member No.: 89751



QUOTE (romor @ Sep 15 2012, 16:01) *
Usage is simple:

Thanks for your work!
Many users will install foo_run just for your script, so:
Why not drop a line about where to save the script? (and to be sure, where to paste the call)
Is it %APPDATA%\foobar2000\user-components\foo_run ?
About waveform png: Never save to %PROGRAM FILES%, rather use %APPDATA%\foobar2000\
Go to the top of the page
+Quote Post
romor
post Apr 26 2013, 19:06
Post #10





Group: Members
Posts: 716
Joined: 16-January 09
Member No.: 65630



QUOTE (blausand @ Apr 26 2013, 09:24) *
Why not drop a line about where to save the script? (and to be sure, where to paste the call)
Is it %APPDATA%\foobar2000\user-components\foo_run ?

If you save it in foobar folder, you can call it just by name (like in screenshot example), otherwise you'll have to call it with full path

QUOTE
About waveform png: Never save to %PROGRAM FILES%, rather use %APPDATA%\foobar2000\

Waveform download is disabled by default. If you want to enable it, you'll have to edit the script, and set the folder that suites you most


--------------------
scripts: http://goo.gl/M1qVLQ
Go to the top of the page
+Quote Post
marc2003
post Apr 26 2013, 19:25
Post #11





Group: Members
Posts: 5299
Joined: 27-January 05
Member No.: 19379



^the trouble with using program files is that UAC will block write access for most people. it's not good advice telling people to disable it. (not that you did - i'm just saying)

i think that's why blausand was suggesting to use %appdata% instead. obviously that does add more complexity. tongue.gif

This post has been edited by marc2003: Apr 26 2013, 19:26
Go to the top of the page
+Quote Post
yurithedragonhal...
post Aug 25 2013, 21:50
Post #12





Group: Members
Posts: 14
Joined: 8-January 10
Member No.: 76851



How exactly is this meant to work?
Go to the top of the page
+Quote Post
romor
post Oct 5 2013, 15:10
Post #13





Group: Members
Posts: 716
Joined: 16-January 09
Member No.: 65630



I added some more features:



Please report valid issues, in which case I may consider rewriting the script, or making it HTA with more friendly interface if there is base for it

This post has been edited by romor: Oct 5 2013, 15:12


--------------------
scripts: http://goo.gl/M1qVLQ
Go to the top of the page
+Quote Post
k8o
post Oct 6 2013, 04:10
Post #14





Group: Members
Posts: 8
Joined: 20-November 11
Member No.: 95296



Excellent work dude, using it now, i look forward to more features, please keep on working on it smile.gif
Go to the top of the page
+Quote Post
Kati Maya
post Oct 26 2013, 22:39
Post #15





Group: Members
Posts: 1
Joined: 26-October 13
Member No.: 111243



Hey I like this script, thanks!

Can you tell me how you go about generating the (what I assume is OAuth?) token for the "toc" variable?

I would like to just add /stream but it appears that when I do so that it's logged in as your account, so the music isn't coming from those I'm following. I assume that if I can generate the "toc" variable using my account credentials then it would be streaming from my friends instead.

Much appreciated! biggrin.gif
Go to the top of the page
+Quote Post
romor
post Nov 2 2013, 11:19
Post #16





Group: Members
Posts: 716
Joined: 16-January 09
Member No.: 65630



Kati, "toc" variable although suggests OAuth token is in fact just "Client Secret code"

Here is script that you can easily use with your own keys: https://gist.github.com/8d2854646688dbd13036

You can get your keys by logging to SoundCloud and registering new app.
Will you be able to play non-public tracks this way, I don't know.


--------------------
scripts: http://goo.gl/M1qVLQ
Go to the top of the page
+Quote Post
xyz11
post Feb 24 2014, 02:39
Post #17





Group: Members
Posts: 2
Joined: 24-February 14
Member No.: 114642



how do i install it? how do i run it?

i just installed foo_run ... and now?^^
Go to the top of the page
+Quote Post
romor
post Feb 25 2014, 23:02
Post #18





Group: Members
Posts: 716
Joined: 16-January 09
Member No.: 65630



If you can't set foo_run action, just double-click the script and enter your query, then program set to handle PLS file format will handle the rest


--------------------
scripts: http://goo.gl/M1qVLQ
Go to the top of the page
+Quote Post
xyz11
post Feb 26 2014, 22:14
Post #19





Group: Members
Posts: 2
Joined: 24-February 14
Member No.: 114642



Ty biggrin.gif its working now!! awesome work!
Go to the top of the page
+Quote Post
Vitium
post Mar 3 2014, 06:21
Post #20





Group: Members
Posts: 1
Joined: 3-March 14
Member No.: 114775



This works pretty well but towards the end of every song it just stops and foobar2000 gives the following error:

QUOTE
Decoding failure at 1:13:26.884 (Connection error):
"http://api.soundcloud.com/tracks/1823680/stream?client_id=da9f7d4fd2b404de52146325215f7e40&secret_token=33f6070b6f49b3d5877868b7daae2f8c"


^ That is from a mix with a 1:13:45 duration, it changes based on the duration, I've tried short single songs and the same error occurs with a different duration time in relation to the last 30 Seconds - 2 minutes of the song.
Go to the top of the page
+Quote Post
romor
post Mar 9 2014, 12:43
Post #21





Group: Members
Posts: 716
Joined: 16-January 09
Member No.: 65630



This continues here: http://www.hydrogenaudio.org/forums/index....howtopic=104954


--------------------
scripts: http://goo.gl/M1qVLQ
Go to the top of the page
+Quote Post
スラッシュ
post Mar 11 2014, 20:59
Post #22





Group: Members
Posts: 117
Joined: 12-December 08
Member No.: 64410



Thanks for this! It works great!
Go to the top of the page
+Quote Post
i0n0ff
post Mar 18 2014, 14:23
Post #23





Group: Members
Posts: 13
Joined: 30-June 12
Member No.: 101093



Guys ,Please help to make foo_uie_biography work...
via foo_run your plugin works just great, but still no success with biography...so i have "soundcloud.vbs" in the root foobar2000 folder (& since foo_run works with - it's probably ok to have it there). My foo_uie_biography configuration :

Maybe instead of "%path%" i should type in my "soundcloud.vbs" destination.. or ? Please, Help ..!
Go to the top of the page
+Quote Post
romor
post Mar 18 2014, 16:45
Post #24





Group: Members
Posts: 716
Joined: 16-January 09
Member No.: 65630



That should work. Try the same command line in Album tab instead Artist tab, or double click on your Biography View panel or similar...

Guys let me quote myself, that this script continues here:

QUOTE (romor @ Mar 9 2014, 12:43) *

Help file that comes with the program also explains how to have "Now playing" info rendered in Biography View, or how to show current albumart
Your ideas are welcomed


--------------------
scripts: http://goo.gl/M1qVLQ
Go to the top of the page
+Quote Post
i0n0ff
post Mar 18 2014, 21:02
Post #25





Group: Members
Posts: 13
Joined: 30-June 12
Member No.: 101093



QUOTE (romor @ Mar 18 2014, 18:45) *
That should work. Try the same command line in Album tab instead Artist tab, or double click on your Biography View panel or similar...

My bad . I've forgotten to add "run external script" in the "current source list". But image still doesn't work rolleyes.gif - empty space instead of image

UPD:
And frankly this feature isn't that helpful since i can't copy from description

This post has been edited by i0n0ff: Mar 18 2014, 21:21
Go to the top of the page
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 29th March 2015 - 23:51