More than 9,999 Indexes in tv.cache Overlaps radio.cache.

Ralph Corderoy ralph at inputplus.co.uk
Mon May 15 02:54:43 PDT 2017


Hi,

I just tried to add TV programme `10000' to the PVR.

    $ ./get_iplayer --nopurge -e 31536000 --future --modes best \
    >     --subtitles --versions default,audiodescribed 10000
    get_iplayer v3.01, Copyright (C) 2008-2010 Phil Lewis
      This program comes with ABSOLUTELY NO WARRANTY; for details use --warranty.
      This is free software, and you are welcome to redistribute it under certain
      conditions; use --conditions for details.

      NOTE: A UK TV licence is required to legally access BBC iPlayer TV content

    WARNING: Unmatched programme index '10000' specified - ignoring

    INFO: 0 Matching Programmes
    $ 

This is because package Programme::tv sets

    sub index_min { return 1 }
    sub index_max { return 9999 }

but my caches are

    $ wc -l ~/.get_iplayer/*.cache
       3426 /home/ralph/.get_iplayer/radio.cache
      10923 /home/ralph/.get_iplayer/tv.cache
      14349 total
    $
    $ sed '$!d; s/|/@/4; s/@.*//' ~/.get_iplayer/tv.cache
    10922|tv|ZingZillas: Series 4|b01jzp38
    $
    $ sed '1d; s/|/@/4; s/@.*//; 2q' ~/.get_iplayer/radio.cache
    10001|radio|15 Minute Drama: A Little Twist of Dahl|b01pftbg
    $ 

Programme::radio has

    sub index_min { return 10001 }
    sub index_max { return 39999 };

so the code allows the cache files to be written with overlapping
indexes that are outside of the [index_min, index_max] interval.
I'd consider this a bug.

I altered the min/maxs to give tv another 10,000 without overlapping
radio.  Having backed up the existing {radio,tv}.cache, I refreshed the
radio and radio.cache's indexes moved up.

    $ sed '1d; s/|/@/4; s/@.*//; 2q' ~/.get_iplayer/radio.cache
    20001|radio|15 Minute Drama: Dinner at the Homesick Restaurant|b01shw0m
    $

The PVR will now add TV indexes above 9,999.

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy



More information about the get_iplayer mailing list