Primitive SoundCloud integration, vbscript |
This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.
See also: Hydrogenaudio Terms of Service.
![]() ![]() |
Primitive SoundCloud integration, vbscript |
Sep 15 2012, 16:01
Post
#1
|
|
![]() Group: Members Posts: 607 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 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 (mainly foobar2000 related): http://goo.gl/yje3h
|
|
|
|
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
|
|
|
|
Sep 16 2012, 10:06
Post
#3
|
|
|
Group: Members Posts: 7 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
|
|
|
|
Apr 5 2013, 06:19
Post
#4
|
|
![]() Group: Members Posts: 607 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 (mainly foobar2000 related): http://goo.gl/yje3h
|
|
|
|
Apr 5 2013, 12:53
Post
#5
|
|
![]() Group: Members Posts: 122 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...
|
|
|
|
Apr 5 2013, 14:55
Post
#6
|
|
![]() Group: Members Posts: 607 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 (mainly foobar2000 related): http://goo.gl/yje3h
|
|
|
|
Apr 5 2013, 15:17
Post
#7
|
|
![]() Group: Members Posts: 122 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 |
|
|
|
Apr 5 2013, 16:51
Post
#8
|
|
![]() Group: Members Posts: 607 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 (mainly foobar2000 related): http://goo.gl/yje3h
|
|
|
|
Apr 26 2013, 08:24
Post
#9
|
|
|
Group: Members Posts: 11 Joined: 12-April 11 Member No.: 89751 |
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\ |
|
|
|
Apr 26 2013, 19:06
Post
#10
|
|
![]() Group: Members Posts: 607 Joined: 16-January 09 Member No.: 65630 |
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 (mainly foobar2000 related): http://goo.gl/yje3h
|
|
|
|
Apr 26 2013, 19:25
Post
#11
|
|
![]() Group: Members Posts: 3292 Joined: 27-January 05 From: England 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. This post has been edited by marc2003: Apr 26 2013, 19:26 |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 25th May 2013 - 22:19 |