These forums are archived

See this post for further info

get_iplayer forums

Forum archived. Posting disabled.

How to inject entry into download_history?

user-1521

I use get-iplayer --pvr but every now and then, I get a glitch and I lose my download_history.

When this happens, I get the following (for example):


Code:
TV-Kazoops
Matches:
3222:   Kazoops - Animal Pals, CBeebies, b07hjq65
3223:   Kazoops - Backyard Beach, CBeebies, b07hjx7m
3224:   Kazoops - Dino Saurus Games, CBeebies, b07hk3nx
3225:   Kazoops - Tiny Little Me, CBeebies, b07hk7tr
3226:   Kazoops - Cosmic Clean Up, CBeebies, b07hkfv7
3227:   Kazoops - Clothes for Jimmy, CBeebies, b07jbn11
3228:   Kazoops - Follow the Rules, CBeebies, b07jbz9p
3229:   Kazoops - Monsters, CBeebies, b07jc6s2

INFO: 8 Matching Programmes
INFO: Checking existence of original version
INFO: hvfhd1,hvfhd2,hlshd1,hvfsd1,hvfsd2,hvfvhigh1,hvfvhigh2,hlsvhigh1,hvfhigh1,hvfhigh2,hlshigh1,hvfstd1,hvfstd2,hlsstd1,hvflow1,hvflow2 modes will be tried for version origina
l
INFO: Trying hvfhd1 mode to record tv: Kazoops - 1. Animal Pals
INFO: File name prefix = s01e01_Animal_Pals
WARNING: File /media/sf_host/Processing/Kazoops/Kazoops/s01e01_Animal_Pals.mp4 already exists

INFO: skipping this programme
ERROR: Failed to record 'Kazoops - 1. Animal Pals (b07hjq65)'


Is there any way to inject these lines into the download_history to prevent them even trying in the future?

Thanks!

user-2

Just use a text editor. Copy an existing entry and change as necessary. The PID field is the most important for preventing download attempts.

user-2

user-1521

Just to follow up on that.

I did some linux command line trickery, and got to the following:

grep -E ^[0-9] output_of_get_iplayer | cut -d, -f 3 | grep [a-z]0 | cut -c 2-10 | uniq | sort > process.txt
grep -E ^[0-9] output_of_get_iplayer | cut -d, -f 4 | grep [a-z]0 | cut -c 2-10 | uniq | sort >> process.txt

This gave me a list of PIDs. I then opened this in an editor, and added the 17 pipe characters to the end, and pasted that to the end of the file. Seems to have worked!

All the best,

Jon

user-2

You can also let get_iplayer take the strain:
Code:
get_iplayer kazoops --listformat='<pid>|||||||||||||||||' | grep '|' >> $HOME/.get_iplayer/download_history

These forums are archived

See this post for further info