[PATCH 3/3] Fixed --pvrscheduler
dinkypumpkin
dinkypumpkin at gmail.com
Sun Oct 21 12:42:33 EDT 2012
get_iplayer --pvrscheduler never updated the programme caches after the
first per run. In-memory cache is now emptied before each pvr run to
force cache file refresh.
---
get_iplayer | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/get_iplayer b/get_iplayer
index 1d0352c..bc70f61 100755
--- a/get_iplayer
+++ b/get_iplayer
@@ -9173,6 +9173,10 @@ sub run_scheduler {
while ( 1 ) {
my $start_time = time();
$opt_cmdline->{pvr} = 1;
+ # empty mem cache before each run to force cache file refresh
+ for ( keys %$memcache ) {
+ delete $memcache->{$_};
+ }
$pvr->run();
my $remaining = $interval - ( time() - $start_time );
if ( $remaining > 0 ) {
--
1.7.10.2 (Apple Git-33)
More information about the get_iplayer
mailing list