Page 1 of 1
Feature Request: Add more "Placeholders" for custom DM
Posted: Sun Jul 12, 2009 12:00 pm
by t-bon3
I have added a custom download manager (Mplayer) to download the BBC's listen again links at
The Beebotron (these are rtsp:// links)
I previously used FlashGet for these downloads but Mplayer does a better job with the download (quicker d/l and less 'skips' in the final audio).
When a link is download with FlashGet the text of the clicked link would be passed to the "Comment:" field.
My request for FlashGot is that this "Link text" is included In the "Placeholders" for the "Command line arguments template:" box.
Example of a link on the Beebotron site:
[url=rtsp://rmv8.bbc.net.uk/bbc7coyopa/bbc7_-_saturday_1800.ra]The Man in Black, Bombers' Moon[/url] - A horrifying tale of something evil stalking four stranded soldiers in Afghanistan
FlashGot the link with FlashGet gives:
So I'd like that "Link text" to be available for custom download managers in FlashGot:

Re: Feature Request: Add more "Placeholders" for custom DM
Posted: Sun Jul 12, 2009 12:22 pm
by therube
I previously used FlashGet for these downloads
How?
With an actual download manager, not with Browser Built In?
(How does your ace.bat read?)
An aside, should
FNAME be included in the Placeholders dropdown?
Re: Feature Request: Add more "Placeholders" for custom DM
Posted: Sun Jul 12, 2009 12:41 pm
by Giorgio Maone
Ok, putting it in my TODO list.
Re: Feature Request: Add more "Placeholders" for custom DM
Posted: Sun Jul 12, 2009 1:38 pm
by t-bon3
@Giorgio Maone
That's great, thanks for the support!
@therube
(How does your ace.bat read?)
Well it downloads the linked file with mplayer then converts to mp3 (so I can listen on my portable) using ffmpeg and lame.
Here is the bat file:
Code: Select all
@echo OFF
MPLAYER -bandwidth 99999999 -noframedrop -prefer-ipv4 -dumpfile C:\Downloads\Radio\%~nx1 -dumpstream %1
FFMPEG -i C:\Downloads\Radio\%~nx1 -f wav - | LAME -b 112 -f - C:\Downloads\Radio\%~n1.mp3
Re: Feature Request: Add more "Placeholders" for custom DM
Posted: Thu Aug 20, 2009 5:08 am
by t-bon3
Thanks for adding the new feature, my Custom DL manager is now working great with links from Beebotron.org.
On my connection (1Mbit) it takes just 3 minutes to download and convert a 30 minute show to a tagged mp3.
FlashGot Custom DL manager executable is: "bbc.bat", with command arguments: "[URL] [COMMENT]"
bbc.bat
Code: Select all
@echo OFF
SETLOCAL ENABLEEXTENSIONS
:: This is where mp3 will be saved (no spaces allows in path)
set mp3dir=C:\Radio\
:: Reject invalid links
if not %~x1==.ra (
goto error
) else (
echo Downloading %~2 with Mplayer!)
:: Strip invalid characters
set filename=%2
set filename=%filename:|=%
set filename=%filename:\=%
set filename=%filename:/=%
set filename=%filename::=%
set filename=%filename:<=%
set filename=%filename:>=%
set filename=%filename:?=%
set filename=%filename:"=%
:: Download .ra, convert to .mp3, delete .ra
cd %~dp0
MPLAYER -bandwidth 99999999 -noframedrop -prefer-ipv4 -dumpfile "%mp3dir%%~nx1" -dumpstream %1
FFMPEG -i "%mp3dir%%~nx1" -f wav - | LAME -b 112 -f --tg Podcast --tt %2 --ta "BBC Radio" --ty 2009 --ti "bbc_radio_icon.png" - "%mp3dir%%filename%.mp3"
del "%mp3dir%%~nx1"
goto end
:error
echo That link is not a realaudio file, Press any key to exit.
:end
pause
Re: Feature Request: Add more "Placeholders" for custom DM
Posted: Sat Aug 22, 2009 3:30 pm
by hgabreu
Does FNAME work at all?
If it does please tell me how to use it, because I couldn't get it to work.
Thanks
Re: Feature Request: Add more "Placeholders" for custom DM
Posted: Mon Aug 24, 2009 4:29 am
by t-bon3
hgabreu wrote:Does FNAME work at all?
If it does please tell me how to use it, because I couldn't get it to work.
If you use a .bat file as the download manager in windows (as above) with [URL] as the first command line argument then you use:
In your .bat file to return the name and extension of the download file. See
http://www.microsoft.com/resources/docu ... rcent.mspx for a full explanation.
Re: Feature Request: Add more "Placeholders" for custom DM
Posted: Mon Aug 24, 2009 1:33 pm
by hgabreu
t-bon3 wrote:If you use a .bat file as the download manager in windows (as above) with [URL] as the first command line argument then you use:
Thanks t-bon3, but you're trying to extract the file name from the URL (which I already do) and it's not possible for every URL.
For example, try getting the file name when downloading an attachment from gmail. That's why I asked for the FNAME argument.
Thanks again
(btw, I don't use windows)
Re: Feature Request: Add more "Placeholders" for custom DM
Posted: Mon Aug 24, 2009 2:51 pm
by Giorgio Maone
FNAME works almost exclusively for media (audio/video) downloads: since guessing a file name which is not contained in the URL involves sniffing the "Content-disposition" header, this would require an extra HTTP request for each link to be captured.
In the "FlashGot Media" case it comes for free, since FlashGot Media already sniffs the HTTP traffic when the video/audio clip starts playing.