Discussion:
How do I use pid recursive?
Jake Tucker
2013-05-18 15:26:16 UTC
Permalink
Can somebody help me with the correct syntax for pid-recursive?

Now that I've made an account here it's time to ask something else I'm
having trouble with.
About a year ago I started to have trouble using the pid-recursive command.
Usually on a Saturday I would for example download a Book of the Week
which had just aired Mon-Fri as a 5 parter. Each part has it's own pid
and the book also has it's own pid. Using the book pid I could
download all 5 parts with one command instead of inputting 5
individual commands in the terminal.
I can't remember what errors I was seeing when the problem started.
Since then whenever I want a book (or another example all parts of a
15 Minute Drama) I enter a pid for each part/episode. I don't do it
that often and if I was I'd of looked into this before now. I'd like
to grab the first 5 parts of the Carre book on Book at Bedtime from
the last 5 days. It is a 10 parter continuing next week.
dinkypumpkin
2013-05-18 15:44:16 UTC
Permalink
On 18/05/2013 16:26, Jake Tucker wrote:
> I've tried:
>
> get_iplayer --type=radio --pid-recursive=b01sk4r8
> which returns:
> Option pid-recursive does not take an argument
>
> and:
>
> get_iplayer --type=radio --pid-recursive b01sk4r8
> which returns:
> INFO: 0 Matching Programmes

get_iplayer --type=radio --pid-recursive --pid b01sk4r8
bat guano
2013-05-18 17:20:25 UTC
Permalink
>
> get_iplayer --type=radio --pid-recursive --pid b01sk4r8
>
>
Thanks for this. :-)
It's easier than using 5 commands.

Is there a get_iplayer search command that will return the series pid for such as "Book at Bedtime" or "A Delicate Truth"?
dinkypumpkin
2013-05-18 18:58:23 UTC
Permalink
On 18/05/2013 18:20, bat guano wrote:
> Is there a get_iplayer search command that will return the series pid for such as "Book at Bedtime" or "A Delicate Truth"?

No. The feeds get_iplayer uses to populate its cache don't contain the
information necessary to accurately determine series PIDs. You might be
able to do it for some programmes, but not all. Even if do have a
series PID, the related metadata accessed by --pid-recursive may contain
a big list of non-existent episodes, so you would just be wasting
bandwidth. It seems easier just to pluck the PID from your browser or
use a sufficiently specific search string with get_iplayer.
bat guano
2013-05-18 19:10:26 UTC
Permalink
>
> No.
...
> It seems easier just to pluck the PID from your browser

OK
I will right-click, copy location on the Book at Bedtime webpage (view episodes).

The pid is in here:-
http://www.bbc.co.uk/programmes/b01sk4r8/episodes/guide

;-)
g***@i.lucanops.net
2013-05-18 15:53:01 UTC
Permalink
On Sat, 2013-05-18 at 16:26 +0100, Jake Tucker wrote:
[snip]
> I can't remember what errors I was seeing when the problem started.
> Since then whenever I want a book (or another example all parts of a
> 15 Minute Drama) I enter a pid for each part/episode. I don't do it
> that often and if I was I'd of looked into this before now. I'd like
> to grab the first 5 parts of the Carre book on Book at Bedtime from
> the last 5 days. It is a 10 parter continuing next week.
Steve
2013-05-18 16:21:38 UTC
Permalink
Is anyone using get_Iplayer on a raspberry Pi?

This is my current setup:

(downconv.sh)
/usr/bin/perl /mnt/usb/Iplayer/get_iplayer --pvr 2>&1 | tee
/mnt/usb/Iplayer/Logs/Gip-Log1.txt
/mnt/usb/Iplayer/avconv.sh
mv /mnt/usb/Iplayer/*.m4a -f /mnt/usb/Iplayer/m4a


(avconv.sh)
for f in *.m4a; do avconv -i "$f" -acodec libmp3lame -ab 256k
"${f%.m4a}.mp3"; done

This is the only way I can get playable mp3's on the pi, it wont seem to
convert to mp3 internally.
I've been using GIP for years on my main machine and it is the same
setup. Am I doing something basic and stupid to get this problem? I dont
mind running the two scripts as it mainly runs when I'm asleep anyway,
but I'd like to do it a bit more elegantly if possible ie all within
get_iplayer.
Cheers
Steve
Jake Tucker
2013-05-18 18:39:30 UTC
Permalink
>get_iplayer --type=radio --pid-recursive --pid b01sk4r8

Thanks dinkypumpkin.
Looking at that command I believe it is the one I always used. Having
a doh! moment right now.
Continue reading on narkive:
Loading...