KejPi / AbracaDABra

Abraca DAB radio: DAB/DAB+ Software Defined Radio (SDR)
MIT License
68 stars 8 forks source link

option to delete cache at startup #164

Closed nona00 closed 1 month ago

nona00 commented 2 months ago

for analyzing EPG it would be great to have an option to delete the cache at startup of the application

andimik commented 2 months ago

Why don't you use a script to delete it for you?

KejPi commented 1 month ago

Good question! @nona00 any comment?

nona00 commented 1 month ago

yes this would be possible, but settings in the app to define the cache age for slideshow and spi data would be fine

KejPi commented 1 month ago

Slideshow has no cache, only SPI data is cached. This includes service logos and EPG. I agree with @andimik that you should delete cache by script if you want, I do not think that this is a feature that others want. I might consider implementing this feature as command line switch - would it fit your use case?

nona00 commented 1 month ago

yes, a command line switch would be great

andimik commented 1 month ago

I don't think this feature will have more than one user.

andimik commented 1 month ago

But if you really want that feature for analysis of the SPI, I recommend you to store all SPI files to the drive, see settings menu. Each time, the content changes, you will see a new folder, and you still can browse the old folder and its content.

KejPi commented 1 month ago

That is very good point! @nona00 what exactly do you want to do?

nona00 commented 1 month ago

We had some issues with ODR Bridge EPG creator. For different iq recordings I want to check if all logos are received correctly and not that cached data is used. I already enabled storing of SPI files, but then I have to clear cache and download folder.

If nobody else needs this feature I can also create a batch for me.

KejPi commented 1 month ago

Using SPI data storage is anyway better approach because this way all SPI objects are stored (all logos, binary encoded xml files and decoded version of it and anything else that might be broadcasted in MOT directory) while application stores in its cache only logos 32x32 and 320x240.

andimik commented 1 month ago

Yes, @KejPi is right. I recommend to save SPI.