get_iplayer and Windows batch files

Andy Wedge andy_wedge at lineone.net
Mon Jan 16 05:51:16 EST 2012


> -----Original Message-----
> From: Shevek
> Sent: 15 January 2012 23:30
> Subject: Re: get_iplayer and Windows batch files
> 
> 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
> 

I have the programs I want to download defined in PVR entries. My
command file runs twice a day via the Windows 7 task scheduler and calls
the basic get_iplayer.cmd file with the pvr option. I had some problems
previously when downloads failed leaving partial .flv files and the
pvr_lock file in place which prevented further runs starting so I just
clean both of these out to start with now. My videos are downloaded to
my D: drive. All other files are in the default Windows install folders.


@echo on
d:
cd "D:\get_iplayer\videos"
if exist *.flv del *.flv
c:
cd "C:\Users\andy_wedge\.get_iplayer"
if exist pvr_lock del pvr_lock
cd "C:\Program Files (x86)\get_iplayer"
get_iplayer.cmd --pvr

Andy



More information about the get_iplayer mailing list