2020-03-30, 01:35
(2020-03-30, 01:08)Milhouse Wrote:(2020-03-30, 00:46)sniferx1 Wrote: After running /texturecache.py x "where lastusetime <= '2013-03-05'" , Do I need to run any other command to remove them from local cache DB?
Yes, see the example in the first post.
Thex[/line] command gives you a list of matching database row ids - you now need to feed those into [inline]texturecache.py d # # # # #
(where each#
is one of the matched row ids).
So in your case:
text:
IDS=$(texturecache.py x "where lastusetime <= '2019-03-05'" 2>&1 1>/dev/null | sed "s/.*: //")
[ -n "$IDS" ] && texturecache.py d $IDS
should work on Unix/Linux (for Windows you'll need to figure it out for yourself).
@Milhouse
Thanks again... I ran this but getting below error... kindly help as I am not an Python expert...
shell:osmc@MBRVero4Kplus:~$ IDS=$(texturecache.py x "where lastusetime <= '2020-02-31'" 2>&1 1>/dev/null | sed "s/.*: //")[ -n "$IDS" ] && texturecache.py d $IDS
-bash: -n: command not found