get_iplayer and Windows batch files

Shevek shevek at shevek.co.uk
Sun Jan 15 18:30:07 EST 2012


On 15 January 2012 17:55, Clive <clivebuc at gmail.com> wrote:
> I use get_iplayer at the prompt in both Windows and Linux. In Windows, I
> have tried using batch files in the past - when I wamt a number of d/l and
> want to automate them. I have found that it does not work. The batch file
> runs get_iplayer and the first item is duly d/l but then I am returned to
> the command prompt and the second and subsequent batch lines never run. Is
> there a way to use get_iplayer from batch files (or from the Linux
> equivalent) for multiple items?
>

I have a batch script set up to run daily using Windows task manager.
The trick is that by default .pl files are not associated to anything
under windows (they are, I assume, under Linux) so you have to
actually call perl.exe and pass get_iplayer.pl as an argument and then
the arguments for get_iplayer.

This is my script which downloads multiple programmes of both TV and
Radio. When I want to add anything I simply add it to the list at line
4 for TV and line 6 for Radio:

@echo off
cd /d "C:\Program Files (x86)\get_iplayer\"
"C:\Program Files (x86)\get_iplayer\perl.exe" "C:\Program Files
(x86)\get_iplayer\get_iplayer.pl" --refresh --force dontshowanymatches
"C:\Program Files (x86)\get_iplayer\perl.exe" "C:\Program Files
(x86)\get_iplayer\get_iplayer.pl" -g tv_prog_1_name tv_prog_2_name
tv_prog_3_name etc
"C:\Program Files (x86)\get_iplayer\perl.exe" "C:\Program Files
(x86)\get_iplayer\get_iplayer.pl" --type=radio --refresh --force
dontshowanymatches
"C:\Program Files (x86)\get_iplayer\perl.exe" "C:\Program Files
(x86)\get_iplayer\get_iplayer.pl" --type=radio -g radio_prog_1_name
radio_prog_2_name radio_prog_3_name etc



More information about the get_iplayer mailing list