On 25/05/15 09:58, Terry Coles wrote:
On Monday 25 May 2015 08:39:43 Andrew Montgomery-Hurrell wrote:
Version 2.86 in the Ubuntu repository is out of date, the version on github
is 2.92 so there might have been new changes to fix the issues you're seeing
OK.  I uninstalled V 2.86, downloaded the latest version, made it executable
and ran it as:

terry@BEIGE:~$ ./get_iplayer

On first execution, it installed some plugins and on the second it gave exactly
the same result as V 2.86.

What do others get, when they type 'get_iplayer' for a simple search?

I downloaded this from somewhere years ago (can't remember where), this may help

---------------------------------------------------------------------------------------------------------
Usage

Run: ‘get_iplayer -h’
For Advanced and extended options run: ‘get_iplayer --long-help’
Examples
Searching

* List all tv programmes (either from BBC site or cached):

    get_iplayer

* List all tv programme names matching ‘News’:

    get_iplayer news

* List all Radio programme names matching ‘News’:

    get_iplayer --type=radio news

* List all tv programmes with long descriptions:

    get_iplayer --long

* List all tv programmes showing only ‘pid’, ‘name’ and ‘episode’

    get_iplayer --listformat=’<pid>: <name> - <episode>’

* Search all tv programmes for the word ‘hello’ in the ‘episode’ and ‘channel’ fields

    get_iplayer --fields=’episode,channel’ hello

* List all tv programmes with categories containing the word ‘News’ and on channel ‘BBC One’

    get_iplayer --channel=’BBC One’ --category=News

* List all tv programmes added to the cache since 24 hours ago:

    get_iplayer --since=24

* List all available categories for BBC Radio and BBC TV programmes:

    get_iplayer --list=categories --type=’tv,radio’

* List all available radio channels:

    get_iplayer --list=channel --type=radio

* List all ITV programmes and BBC podcasts

    get_iplayer --type=’podcast,itv’

* List all programmes with categories not containing the string ‘child’ on BBC One:

    get_iplayer --exclude-category=child --channel=’bbc one’

* List all programme metadata and available download modes for programme with index number 123:

    get_iplayer --info 123

Downloading

Essentially, you can just add ‘--get’ to any of the above searches to download them.
* Download programme number 123 (see index list):

    get_iplayer --get 123

* Download Radio programme number 10123 (see index list):

    get_iplayer --get 10123

* Download Radio programme number 10123 and tv programme number 324 (see index list):

    get_iplayer --get 10123 324

* Download Podcasts matching ‘Moyles’:

    get_iplayer --type=podcast --get ‘Moyles’

* Download all tv programmes with ‘blue peter’ in the title/episode:

    get_iplayer --get ‘blue peter’

* Download all tv programmes with ‘blue peter’ in the title/episode, and programme index 123:

    get_iplayer --get ‘blue peter’ 123

* Download all programmes with URL that contains a programme ID (pid) b002a23a (i.e. the URL of the programme page on BBC iplayer):

    get_iplayer --get --pid http://blah.blah.blah/b002a23a.shtml

* Download all programmes with ‘comedy’ in the title, episode or long description:

    get_iplayer --long --get comedy

* Download all programmes with categories containing ‘music’:

    get_iplayer --get --category=comedy

* Download an ITV player TV programme (requires mplayer)

    get_iplayer --type=itv --get 123

* Using rtmpdump tool to get high or normal quality Flash download version of a TV programme (--rtmpdump is optional)

get_iplayer --type=tv --get 123 --vmode=rtmp --rtmpdump=’/path/to/rtmpdump’

* Download a TV programme trying iphone, flashhigh and flashnormal modes in order until one succeeds.

get_iplayer --type=tv --get 123 --vmode=iphone,flashhigh,flashnormal --rtmpdump=’/path/to/rtmpdump’

* Using rtmpdump tool to get high quality Flash download version of a BBC Radio programme (--rtmpdump is optional)

get_iplayer --type=radio --get 12345 --amode=flashaudio --rtmpdump=’/path/to/rtmpdump’

* Download a radio programme trying iphone, flashaudio, flashaac then realaudio modes in order until one succeeds.

get_iplayer --type=radio --get 12345 --amode=iphone,flashaudio,flashaac,realaudio --rtmpdump=’/path/to/rtmpdump’

Other Features

* Refresh/flush the tv programme cache (this happens after 4hrs automatically - see --expiry option):

    get_iplayer --flush

* Refresh/flush the programme cache for all types:

    get_iplayer --flush --type=all

* Refresh/flush the radio programme cache:

    get_iplayer --flush --type=radio

* Check for Updates and Download new version of get_iplayer (also creates backup):

    get_iplayer --update

Streaming

* Stream a programme in mplayer or xine while downloading it to disk:

    get_iplayer --stdout --get 123 | mplayer -cache 3072-
    get_iplayer --stdout --get 123 | xine stdin:/

* Stream a programme in mplayer or xine while not downloading it to disk:

    get_iplayer --nowrite --stdout --get 123 | mplayer -cache 3072 -
    get_iplayer --nowrite --stdout --get 123 | xine stdin:/

Saving Settings

* Save proxy settings and verbose mode to defaults in ~/.get_iplayer/options
(or ‘%USERPROFILE%\.get_iplayer\options’ in ActivePerl/Windows):

    get_iplayer --save --verbose --proxy=http://proxy.domain.com:3128

* Save programme type settings to default in ~/.get_iplayer/config:

    get_iplayer --type=all --save

* Options can also be saved in ‘/etc/get_iplayer/options’ on *nix/MaxOSX/cygwin platforms and %ALLUSERSPROFILE%\get_iplayer\options in Windows. The format is as follows:

    <full option name without the leading ‘--’> <value>

Subtitles

* Download programme number 123 with subtitles (if available) and optionally insert a
subtitle delay of 5 seconds:

    get_iplayer --subtitles --suboffset 5000 --get 123

* (Re)download subtitles only (if available):

    get_iplayer --subsonly --get 123

More Programme Information

* Display the Various stream URLs for programme index 123:

    ./get_iplayer --streaminfo 123

* Display the programme metadata for index 123:

    ./get_iplayer --info 123

Custom Commands

* Run a custom user command after a successful download using the following substitutions:

<index>         => index number
<name>          => programme short name
<episode>       => Episode info
<desc>          => Long Description
<available>     => Date/Time made available or remaining
<longname>      => Long name
<duration>      => duration in HH:MM:SS
<versions>      => comma separated list of versions
<version>       => selected version e.g Default, Signed
<thumbnail>     => programme thumbnail url
<channel>       => Programme channel
<categories>    => Categories
<type>          => Type: tv, podcast, itv or radio
<filename>      => Filename of downloaded file
<filepart>      => Filename of partially downloaded file
<timeadded>     => timestamp when programme was added to the cache
<dir>           => Directory of file
<fileprefix>    => Filename Prefix of file
<symlink>       => Filename of any symlink file if specified
<ext>           => Filename Extension of file

get_iplayer --get 123 --command ‘echo “<index> <filename> <name> <episode> <desc> <available> <longname> <duration> <versions> <version> <thumbnail> <channel> <categories> <type> <pid>”‘

* Use a user defined filename-prefix format using the above substitutions:

get_iplayer --get 123 --file-prefix ‘<name>-<episode>-<longname>-<version>-<pid>’

* Using the command option to background transcode your downloaded video to mp4 format:

get_iplayer --get 123 --command ‘mencoder -ovc lavc -lavcopts vcodec=mpeg4 -oac lavc -lavcopts abitrate=128 -o <filename>.mp4 <filename> -quiet &’

PVR Usage

The PVR functionality allows you to download any number of iPlayer programmes
using any combination of search terms that you would normally run on the
command line. The PVR searches are saved in ~/.get_iplayer/pvr/.
You can Add, Delete and List the PVR searches. This feature allows you to
run multiple batch downloads froma scheduler such as Unix crond (and possibly the Windows scheduler). A tutorial is on how to setup and use the PVR is here.

* Add a new PVR search (using any usual search options):

get_iplayer --pvr-add=bbc1_comedy_tv_progs --category=comedy --type=tv --output=/path/to/my/pvr/downloads/ --channel=’BBC One’

* Add a new One-Off download PVR search. This will effectively queue the programmes for download and delete the PVR search after completion:

    get_iplayer --pvr-queue --type tv 123 231 32 ‘Blue Peter’

* List the PVR searches already added:

    get_iplayer --pvr-list

* Remove a PVR search:

    get_iplayer --pvr-del=bbc1_comedy_tv_progs

* Disable a PVR search:

    get_iplayer --pvr-disable=bbc1_comedy_tv_progs

* Re-enable a PVR search:

    get_iplayer --pvr-enable=bbc1_comedy_tv_progs

* Run the PVR (this really should be added to your scheduler such as cron):

    get_iplayer --pvr

* Line to add to user’s crontab (use ‘crontab -e’ to edit) - this will run all of the PVR jobs every hour:

    0 * * * * /path/to/get_iplayer --pvr 2>>/tmp/get_iplayer.log

--------------------------------------------------------------------------------------------------------------------------------------------------------------

Tim

--
Next meeting:  Bournemouth, Tuesday, 2015-06-02 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:[email protected] / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue     / TO THE LIST OR THE AUTHOR

Reply via email to