These forums are archived

See this post for further info

get_iplayer forums

Forum archived. Posting disabled.

possibility to search based on time since a program was available

user-940

Hi

the "--since" now looks at time based on cache age. Why not make it based on the "actual program broadcast time". In the current situation, the problem is as follows.

I usually use get_iplayer to download only today's (I mean here "day" like current day - monday, tuesday...friday) podcast of the program "Radio 4-Best of Today". Assume I did NOT refresh on thurday, friday, saturday and sunday. Now on Monday, when I refresh, it assumes all podcasts from Thu-Monday as NEW and downloads them.

I would like the "--since" parameter, to use "available" (which is date) to look for what programs to download. For example if you take the file podcast.cache:

Code:
#index|type|name|pid|available|episode|seriesnum|episodenum|versions|duration|desc|channel|categories|thumbnail|timeadded|guidance|web
24114|podcast|Best of Today|http://downloads.bbc.co.uk/podcasts/radio4/today/today_20150527-0753c.mp3|Wed, 27 May 2015 07:53:00 +0100|Wednesday's business news with Simon Jack|||default|10:58|Will there be anything in the Queen's speech to help small businesses?|BBC Radio 4|News & Politics|http://www.bbc.co.uk/podcasts/assets/artwork/today.jpg|1433164317||http://www.bbc.co.uk/today|



The variable is then "available"=Wed, 27 May 2015 07:53:00 +0100
If this is possible, then one could search for programs between date ???? -> ????, instead of cache age.

Many thanks for your great work!

PS:

Ok, after a bit of trying I can do this for "radio" in a different way (but not for podcasts)

--refresh-limit-radio 1 --refresh-feeds=schedule --type=radio "today

user-2

The
Code:
--since
option addresses a different issue, so its meaning is not going to change. As to whether a new option is merited for your use case, I'm personally unconvinced. The audience would be users who want to download the current day's episodes from a daily podcast but don't want to type a second command to do so. That's too narrow for me to expend any effort, but someone else might be motivated enough. An additional problem is that the format of
Code:
available
values in the podcast cache doesn't lend itself to comparisons, though someone could change that. However, that format allows you to employ regular expressions to do exactly what you want. For example, to get only Monday's episodes:

Code:
get_iplayer --get --type podcast --fields=name,available "best of today.*mon"

These forums are archived

See this post for further info