foo_run 0.3.7, run external applications from foobar2000 |
![]() ![]() |
foo_run 0.3.7, run external applications from foobar2000 |
Dec 4 2011, 19:45
Post
#426
|
|
|
Group: Members Posts: 276 Joined: 31-December 10 Member No.: 86948 |
I have a puzzling situation: I'm listening to an internet radio station, and I can see the artist and title information in the status bar area and in the main window area, and artist bio in the biography component. These areas all reference %artist%, and the status bar and main window also reference %title% in my configuration. So the radio station is passing on artist and track title information that Foobar2000 successfully understands. So far so good.
But when I right-click on the playing track and select "run services" and select "google artist". which also references %artist% in its command string (http://www.google.com/search?q=$replace(%artist%, ,+)&ie=utf-8), the google search looks for "?". This tells me that the google search is not reading the %artist% information that is simultaneously being read by the main window and status bar areas. This google search string for this service works perfectly when I'm playing something in my local library. Interestingly, when I look at the track's properties, the artist area is blank and the track title the name of the internet radio station - both incorrect and different than what the status pane and main window show - and even though these properties are also referencing %artist% and %title% in my configuration. At this point, I'm puzzled as how the status and main window area can show what they show, which appears accurate from listening to the actual music playing. Any ideas of what I need to change to get the google search to sucessfully read the %artist% information or whatever the radio station is providing that the status pane and main window areas can somehow read? thanks This post has been edited by godrick: Dec 4 2011, 19:56 |
|
|
|
Dec 9 2011, 10:29
Post
#427
|
|
|
Group: Members Posts: 2 Joined: 9-December 11 Member No.: 95699 |
|
|
|
|
Dec 9 2011, 10:38
Post
#428
|
|
|
Group: Members Posts: 2 Joined: 9-December 11 Member No.: 95699 |
@ Florian : very cool plugin, thanks a lot
I'm not able to make the following services run for www.heavyharmonies.com --> 'HeavyHarmonies artist' --> 'HeavyHarmonies album' Any help for working paths is greatly appreciated. |
|
|
|
Jan 2 2012, 23:08
Post
#429
|
|
|
Group: Members Posts: 33 Joined: 6-January 10 Member No.: 76763 |
Would it be possible to refine a search for this site? Ya know a command to search for %artist% without having to type it in there. Help appreciated thanks.
|
|
|
|
Jan 10 2012, 18:10
Post
#430
|
|
|
Group: Members Posts: 33 Joined: 6-January 10 Member No.: 76763 |
@ Florian : very cool plugin, thanks a lot I'm not able to make the following services run for www.heavyharmonies.com --> 'HeavyHarmonies artist' --> 'HeavyHarmonies album' Any help for working paths is greatly appreciated. You can do as I did: just name your service Search Heavy Harmonies and use the search page (in this case the main page): CODE http://www.heavyharmonies.com or: 1. Search for the band's first letter: CODE http://www.heavyharmonies.com/cgi-bin/gletter.cgi?Letter=$cut(%artist%,1) 2. Use Google: CODE http://www.google.com/search?q=$replace(%artist%, ,+)&sitesearch=heavyharmonies.com CODE http://www.google.com/search?q=$replace(%album%, ,+)&sitesearch=heavyharmonies.com
This post has been edited by gism: Jan 10 2012, 18:14 |
|
|
|
Jan 17 2012, 00:41
Post
#431
|
|
|
Group: Members Posts: 1 Joined: 17-January 12 Member No.: 96489 |
I'd like to find out if there is a Foobar2000 command or variable that contains the files that one selects in a library or playlist view. I've looked in the title formatting and search query areas and I did not find anything that seemed appropriate.
The context of the need: a few of us would like to select a bunch of files and then launch Mp3tag with those files loaded into Mp3tag, using foo_run. But the approach of using the "simulataneous runs" feature of foo_run is incompatible with Mp3tag. Instead, it looks like we need to pass a playlist to Mp3tag containing the selected files. I'm hoping there is some kind of variable within Foobar2000 that people use when using command lines that will work that I can insert into the Mp3tag command line, or there is something I could use via simple script that invokes Mp3tag and then call the script from foo_run. We're looking to select files in a playlist viewer and then launch the Mp3tag service with a single click, instead of selecting files, then manually saving a temp playlist and then launching the Mp3tag service. Moderator: Since I'm seeking advice on something that doesn't seem unique to foo_run (how to reference selected files in command lines or scripts), I though this was best posted in the general forum, but if you think this is unique enough to foo_run please move this to the third party component forum for foo_run. The thread that relates to this in Mp3tag forms: http://forums.mp3tag.de/index.php?showtopic=15010 Thanks in advance for any help or suggestions. This post has been edited by gumpster: Jan 17 2012, 00:42 |
|
|
|
Feb 8 2012, 11:44
Post
#432
|
|
|
Group: Members Posts: 19 Joined: 11-April 10 Member No.: 79789 |
I'm trying to extract zip and rar archives with 7-zip from foobar with foo_run.
But I can't get it running. Can anbody help me? |
|
|
|
Feb 8 2012, 12:30
Post
#433
|
|
|
Group: Members Posts: 51 Joined: 25-September 06 Member No.: 35595 |
Hello Pone
I hope I have understood correctly then try the following times: WinRAR a Info.rar "$directory_path(%path%)" |
|
|
|
Feb 8 2012, 16:13
Post
#434
|
|
|
Group: Members Posts: 19 Joined: 11-April 10 Member No.: 79789 |
Hello Pone I hope I have understood correctly then try the following times: WinRAR a Info.rar "$directory_path(%path%)" I want to extract/unzip the archives. I guess you command does the add files to a archive? I experimented a little bit and searched through the internet. This works of zip Files: "C:\Program Files\7-Zip\7za.exe" x "$substr(%_path%,1,$sub($strrchr(%_path%,'|'),1))" "-o$directory_path($substr(%_path%,1,$sub($strrchr(%_path%,'|'),1)))" But it seems that 7za, the command line version of 7Zip, is not abel to unpack rar files due to licence problems, whereas the Windows version ca do that. Bad luck. Maybe I will look for another tool. I found a good tutorial for 7zip command lines here: http://www.ojaehrling.de/Eisfair-Pakete/7zip/ EDIT: I got it. I was thinkin I have to use 7za.exe for command lines. That was wrong. If I use 7z.exe it works also with rar files: "C:\Program Files\7-Zip\7z.exe" x "$substr(%_path%,1,$sub($strrchr(%_path%,'|'),1))" "-o$directory_path($substr(%_path%,1,$sub($strrchr(%_path%,'|'),1)))" This post has been edited by pone: Feb 8 2012, 16:34 |
|
|
|
Feb 9 2012, 00:18
Post
#435
|
|
|
Group: Members Posts: 75 Joined: 23-May 10 Member No.: 80861 |
Great script, very useful. Would it be possible to get the archive to delete itself after successful extraction?
|
|
|
|
Feb 21 2012, 22:01
Post
#436
|
|
![]() Group: Members Posts: 2 Joined: 21-February 12 From: Russia Member No.: 97316 |
Thank a lot Florian for the component.
I suggest those who are troubled with &, + etc. in their tags to use this filter for "bad" chars in URLs CODE $replace(WHATEVER, ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23') instead of CODE $replace(WHATEVER, ,+) Perfect for last.fm (track page script): CODE http://www.last.fm/music/$replace(%artist%, ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23')/$replace(%album%, ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23')/$replace(%title%, ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23')
This post has been edited by quartermind: Feb 21 2012, 22:04 |
|
|
|
Feb 27 2012, 17:46
Post
#437
|
|
![]() Group: Members Posts: 2 Joined: 21-February 12 From: Russia Member No.: 97316 |
UPD. I explored that the formula is not perfect for last.fm. It fails when the slash and the space meet. Rather replace / with %252F:
CODE http://www.last.fm/music/$replace(%artist%, ,'%20','&','%26',/,'%252F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23')/$replace(%album%, ,'%20','&','%26',/,'%252F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23')/$replace(%title%, ,'%20','&','%26',/,'%252F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23')
This post has been edited by quartermind: Feb 27 2012, 17:47 |
|
|
|
Mar 25 2012, 11:10
Post
#438
|
|
|
Group: Members Posts: 13 Joined: 28-January 12 Member No.: 96755 |
Hello!
How do I configure this plugin in foobar2000 to be able to click on links / or run a browser, if the tags (URL of the publisher, URL, and so the performer) mp3 file has a reference type htpp: \ \ www.test.com? |
|
|
|
Apr 16 2012, 10:22
Post
#439
|
|
|
Group: Members Posts: 2 Joined: 16-April 12 Member No.: 98884 |
Hi guys,
This is my first post here. I'm a longtime FB user but lately I've been re-configuring the whole thing, discovered this great plugin yesterday and I would appreciate some help. Here's what I need... I want to select an item (album) in the Album Art panel, then run a service which will open Irfanview and browse its artwork. All of the artwork images (various names) are stored inside the cover folder, which is inside the music folder. For example: Folder C:\Music\Faith No More - Introduce Yourself (1987) contains FLACs and subfolder named cover (C:\Music\Faith No More - Introduce Yourself (1987)\cover) with files front.jpg, back.jpg, blahblah.jpg etc. I want to select the file/folder in Album Art panel and then run a service which will make IrfanView display the first .jpg within the cover subfolder so I can browse the rest. I've run "C:\Program Files '('x86')'\IrfanView\i_view32.exe" "$replace(%path%,%filename_ext%,) and it successfully opens IrfanView and displays any artwork which is stored inside the same folder as the FLACs, now I just need to point it to the subfolder cover instead. This must be simple. Many thanx! |
|
|
|
Apr 16 2012, 13:25
Post
#440
|
|
|
Group: Members Posts: 2 Joined: 16-April 12 Member No.: 98884 |
OK, got it...
"C:\Program Files '('x86')'\IrfanView\i_view32.exe" "$replace(%path%,%filename_ext%,)\cover\ I was sure I've tried that one already without success, but now it seem to work... Anyway, another problem. I can run this service from Album Art Panel (right click item>Run Service), but the shortcut (toolbar button) I've made doesn't work. When I select Now Playing Item as Item Group it works, but I cannot make a button work with Album Art Panel selection. This is very important to me since I use RAM Disk plugin for playback and I need to see the artwork associated with Album Art Panel selection (FLACs on the HDD), not with the Now Playing Item (since no artwork is loaded in RAM). Any ideas? |
|
|
|
Apr 18 2012, 23:16
Post
#441
|
|
|
Group: Members Posts: 142 Joined: 20-September 11 Member No.: 93842 |
I've been trying to plot a spectrogram (of a FLAC/WAV file) using SoX in conjunction with foo_run, but to no avail. I have this in the foo_run menu:
"C:\SoX 14.4.0\sox.exe" "%path% -n spectrogram -d 3:00" and it doesn't work. Does anybody know how to properly set it up? This post has been edited by Dario: Apr 18 2012, 23:17 |
|
|
|
Apr 19 2012, 03:27
Post
#442
|
|
![]() Group: Members Posts: 3288 Joined: 27-January 05 From: England Member No.: 19379 |
i don't use SOX but surely that last double quote should come after %path%?
|
|
|
|
May 15 2012, 09:22
Post
#443
|
|
|
Group: Members Posts: 142 Joined: 20-September 11 Member No.: 93842 |
i don't use SOX but surely that last double quote should come after %path%? Okay, that was a bit stupid of me. Thank you. However, since most of my audio is encoded in TAK, and SoX does not natively support TAK input, I tried piping the decoder along with SoX, but for some reason, it doesn't work: "D:\Audio Encoders\TAK 2.2.0\Takc.exe" -d "%path%" - |"C:\SoX 14.4.0\sox.exe" -t wav - -n spectrogram -o "C:\spectrogram.png" However, if I were to replace %path% with a definite path, and run it in the command prompt, such as: "D:\Audio Encoders\TAK 2.2.0\Takc.exe" -d "F:\Albums\Drudkh\[2006] Кров у наших криницях\4. Самітність.tak" -|"C:\SoX 14.4.0\sox.exe" -t wav - -n spectrogram -o "F:\Albums\Drudkh\[2006] Кров у наших криницях\4. Самітність.tak.spectrogram.png" it'd work perfectly. Why am I unable to utilize pipes along with foo_run? This post has been edited by Dario: May 15 2012, 09:22 |
|
|
|
May 15 2012, 15:01
Post
#444
|
|
![]() Group: Members Posts: 3288 Joined: 27-January 05 From: England Member No.: 19379 |
if you add
CODE cmd /k to the beginning of the command, it will leave the window open and you might see an error? |
|
|
|
May 15 2012, 19:10
Post
#445
|
|
![]() Group: Developer Posts: 2984 Joined: 2-December 07 Member No.: 49183 |
"|" is a special character for command prompt (cmd.exe). You must add "cmd /c" to the beginning of your command.
|
|
|
|
May 15 2012, 19:45
Post
#446
|
|
|
Group: Members Posts: 142 Joined: 20-September 11 Member No.: 93842 |
if you add CODE cmd /k to the beginning of the command, it will leave the window open and you might see an error? This is what I get: 'D:\Audio' is not recognized as an external command… is what I get. No idea why it doesn't account for the full path ("D:\Audio Encoders\TAK 2.2.0\Takc.exe"). "|" is a special character for command prompt (cmd.exe). You must add "cmd /c" to the beginning of your command. Excuse my ignorance (I'm still learning)—I tried the following: cmd /c "D:\Audio Encoders\TAK 2.2.0\Takc.exe" -d "%path%" - |"C:\SoX 14.4.0\sox.exe" -t wav - -n spectrogram -o "%path%.spectrogram.png" but to no avail. Thank you for your assistance. This post has been edited by Dario: May 15 2012, 19:46 |
|
|
|
May 15 2012, 20:28
Post
#447
|
|
![]() Group: Developer Posts: 2984 Joined: 2-December 07 Member No.: 49183 |
Try:
cmd /c ""D:\Audio Encoders\TAK 2.2.0\Takc.exe" -d "%path%" - |"C:\SoX 14.4.0\sox.exe" -t wav - -n spectrogram -o "%path%.spectrogram.png"" Maybe this will help |
|
|
|
May 15 2012, 20:29
Post
#448
|
|
|
Group: Members Posts: 142 Joined: 20-September 11 Member No.: 93842 |
Oh, yes it will! Thank you very much!
|
|
|
|
Jun 25 2012, 08:21
Post
#449
|
|
|
Group: Members Posts: 48 Joined: 23-March 12 Member No.: 98013 |
Foo_run runs external programs only when playing foobar. If playback is stopped - not work. Of course, in the config no lines like this: $if(%isplaying% or %ispause% ..... CONTEXT:Run service/...
Why? Foobar 1.1.13, foo_run 0.3.7 |
|
|
|
Jun 25 2012, 15:27
Post
#450
|
|
![]() Group: Members Posts: 3288 Joined: 27-January 05 From: England Member No.: 19379 |
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 23rd May 2013 - 20:00 |