can I populate the download_history without actualy downloading

Jimmy Aitken jimmy.aitken at gmail.com
Wed Sep 7 01:13:26 PDT 2016


On Tue, Sep 6, 2016 at 7:45 PM, Dave Widgery <dave.widgery at gmail.com> wrote:
>
> Hi thanks for the suggestion, but I am running windows not linux, i
> will give it a try but not sure that it will work.
>
> Dave
>
> On 6 September 2016 at 17:10, David Walters <david at jellybaby.net> wrote:
> > On Tue, Sep 6, 2016 at 3:45 PM, Dave Widgery <dave.widgery at gmail.com> wrote:
> >>
> >> get_iplayer creates the entries in the file each time it has a
> >> sucsessful downloads a file,
> >

A quick (in code change, not in execution) and dirty way to do this
would be to add the following line to the function
mode_ver_download_retry_loop
at around 4377 of get_iplayer version 2.95.  Add the following line
after the one "my $retcode;"

$hist->add($prog);return;

This will never download any program, but will update your history
file instead.  Now call get_iplayer with whatever programmes you want
to have added to your history file and it will be updated.
e.g. get_iplayer -g .
will add everything that is current to the history file.
get_iplayer -g egg
will only add programmes that match 'egg' to the history file

It will take a long time, and the code to add to the history file is
not optimised to do this sort of write since it rewrites the complete
history file for each file it finds, and there are doubtless many
other ways to do this.

Howerver, this does has the advantage of just being a one line change
to the current code, though so it's easy to put in place and revert
afterwards.

Remember to remove the line after you've finished through....

J.



More information about the get_iplayer mailing list