Limit search on original broadcast date >= 2012-01-01
#1
I'm trying to figure out a way of limiting Panorama programs to have original broadcast date >= 2012-01-01. Often, BBC releases archive Panorama programs, eg currently there's a Panorama program from 1966 and another from 1964. I'm not interested in these old programs and having very slow broadband I don't want to waste 1-1.5 hour(s) downloading each old episode I don't want.

What's the easiest way to achieve this? --available-since can't be used because they've been made available recently.

Here's an overview of the Panorama episodes:

get_iplayer --info --pid=b006t14n --pid-recursive | egrep "^firstbcastdate:|^title:"

get_iplayer Output:

firstbcastdate: 2018-01-29
title:          Panorama: Addicted: Last Chance Mums
firstbcastdate: 2018-01-22
title:          Panorama: White Fright: Divided Britain
firstbcastdate: 2017-05-03
title:          Panorama: Madeleine McCann: 10 Years On
firstbcastdate: 2018-01-15
title:          Panorama: Trump Voters: One Year On
firstbcastdate: 2018-01-08
title:          Panorama: Millionaire Bankrupts Exposed
firstbcastdate: 2017-12-18
title:          Panorama: Myanmar: The Hidden Truth
firstbcastdate: 2017-12-11
title:          Panorama: The Operation that Ruined My Life
firstbcastdate: 2017-12-04
title:          Panorama: Jihadis You Pay For
firstbcastdate: 2017-11-27
title:          Panorama: The Billion Pound VAT Scam
firstbcastdate: 2017-11-13
title:          Panorama: Student Loan Scandal
firstbcastdate: 2017-11-06
title:          Panorama: Britain's Offshore Secrets Exposed
firstbcastdate: 2017-10-10
title:          Panorama: Hate on the Street
firstbcastdate: 2017-11-05
title:          Panorama: Offshore Secrets of the Rich Exposed
firstbcastdate: 2017-10-25
title:          Panorama: Out of Jail: Free to Offend Again?
firstbcastdate: 2017-10-23
title:          Panorama: Life at 100
firstbcastdate: 2017-10-16
title:          Panorama: How Safe Is Your Operation?
firstbcastdate: 2017-10-09
title:          Panorama: When Kids Abuse Kids
firstbcastdate: 2017-10-02
title:          Panorama: North Korea's Nuclear Trump Card
firstbcastdate: 2017-09-18
title:          Panorama: Africa's Billion Pound Migrant Trail
firstbcastdate: 2017-09-19
title:          Panorama: Germany's New Nazis
firstbcastdate: 2017-09-11
title:          Panorama: Why Mum Died: Britain's Sepsis Crisis
firstbcastdate: 2017-09-04
title:          Panorama: Undercover: Britain's Immigration Secrets
firstbcastdate: 1966-08-18
title:          Panorama: California 2000
firstbcastdate: 1975-09-15
title:          Panorama: Sandhurst
firstbcastdate: 1955-05-04
title:          Panorama: Salvador Dali
firstbcastdate: 1955-06-01
title:          Panorama: Ed Murrow
firstbcastdate: 2017-08-14
title:          Panorama: Plane Drunk
firstbcastdate: 2017-07-24
title:          Panorama: Men, Boys & Eating Disorders
firstbcastdate: 2017-08-03
title:          Panorama: Trouble at the RSPCA
firstbcastdate: 1969-07-21
title:          Panorama: Apollo 11: The Impact on Earth
firstbcastdate: 1978-10-23
title:          Panorama: The Real War in Space: A Sputnik-like Event
firstbcastdate: 1978-10-23
title:          Panorama: The Real War in Space: We Are Entering the Post-Nuclear Era
firstbcastdate: 2017-07-26
title:          Panorama: A Prescription for Murder?
firstbcastdate: 2017-07-17
title:          Panorama: Trump's Fortress America
firstbcastdate: 2017-07-10
title:          Panorama: Britain's Food & Farming: The Brexit Effect
firstbcastdate: 2017-05-10
title:          Panorama: Contaminated Blood: The Search for the Truth
firstbcastdate: 2017-07-04
title:          Panorama: Cadet Abuse Cover-Up
firstbcastdate: 2017-06-19
title:          Panorama: London Tower Fire: Britain's Shame
firstbcastdate: 2017-06-12
title:          Panorama: Election 2017:  What Just Happened?
firstbcastdate: 2017-06-05
title:          Panorama: Back to the Falklands: Brothers in Arms
firstbcastdate: 2017-05-29
title:          Panorama: Manchester Attack: Terror at the Arena
firstbcastdate: 2017-05-15
title:          Panorama: Inside the Litter Police
firstbcastdate: 2017-05-08
title:          Panorama: What Facebook Knows About You
firstbcastdate: 2017-04-24
title:          Panorama: Trump's First 100 Days
firstbcastdate: 2017-04-10
title:          Panorama: The Big Bank Fix
firstbcastdate: 2017-04-11
title:          Panorama: The Spy in the IRA
firstbcastdate: 2017-04-03
title:          Panorama: Marine Le Pen: Who's Funding France's Far Right?
firstbcastdate: 2017-04-05
title:          Panorama: The Benefits Cap: Is It Working?
firstbcastdate: 2017-03-27
title:          Panorama: Westminster Terror Attack
firstbcastdate: 2017-03-20
title:          Panorama: Britain's Home-Care Crisis
firstbcastdate: 2017-03-15
title:          Panorama: Marine A: The Inside Story
firstbcastdate: 2017-03-06
title:          Panorama: Sleepless Britain
firstbcastdate: 2017-02-27
title:          Panorama: Life in Immigration Town
firstbcastdate: 2017-02-13
title:          Panorama: Behind Bars: Prison Undercover
firstbcastdate: 2017-02-06
title:          Panorama: Revealed: Britain's Mental Health Crisis
firstbcastdate: 1964-04-06
title:          Panorama: Mods and Rockers
#2
You're headed in the right direction. Your goal is to filter out the 'pid:' fields for which the associated 'firstbcastdate:' field matches your criterion and then construct a comma-delimited list of PIDs to feed to --pid. awk can do this quite easily with a one-liner, but Perl or your favourite scripting language should be able to do the job as well. But if scripting is not in your skill set it might be quicker to just copy and paste the PIDs you want.
#3
(06-02-2018, 12:37 PM)dinky Wrote: You're headed in the right direction. Your goal is to filter out the 'pid:' fields for which the associated 'firstbcastdate:' field matches your criterion and then construct a comma-delimited list of PIDs to feed to --pid.  awk can do this quite easily with a one-liner, but Perl or your favourite scripting language should be able to do the job as well. But if scripting is not in your skill set it might be quicker to just copy and paste the PIDs you want.

Thanks, I was hoping that there was something similar to --available-since/--expires-before for broadcast date that I had overlooked.

Perhaps it would be easier if I could proactively add the programs I don't want to download_history to mark them as downloaded, even though I haven't downloaded them. Is there an easy way to do this using get-iplayer or would I have to figure out all the fields for the line in download_history myself?
#4
For this purpose, you only need to populate the first field (PID) in history records. The rest can be empty.
#5
(07-02-2018, 01:33 PM)dinky Wrote: For this purpose, you only need to populate the first field (PID) in history records. The rest can be empty.

Perfect, many thanks.


Possibly Related Threads...
Thread Author Replies Views Last Post
  Can --pid-recursive episodes be downloaded in ascending date order? daveconnect007 3 1,169 10-10-2018, 10:00 AM
Last Post: InAFlap
  Infinite Monkey Cage TV special not broadcast by BBC so not found with search jlc 2 1,146 16-07-2018, 01:12 PM
Last Post: jlc
  --info argument not working with PID b093yd8l before programme is broadcast mastermonkey 4 2,065 28-09-2017, 03:18 PM
Last Post: mastermonkey
  How do I limit search results to only "Sarah & Duck" episodes? Danorak81 5 2,252 26-09-2017, 09:54 PM
Last Post: Danorak81