Add versioning to config/cache files
Opened this issue · 2 comments
llewelld commented
Currently, if the file format of the programme list or queue files changes, all of the data gets messed up. The file should have some kind of header with versioning info so that the data files can still be handled across upgrades.
revad commented
When get_iplayer is updated - usually after a BBC change - you sometimes need to rebuild the cache. So a GetiPlay upgrade may need to be able to initiate that - a '1st run' flag, or similar.
llewelld commented
In terms of implementation, there's already some logic to rebuild the cache when the user switches region (national/regional/local). This should be set to trigger on a get_iplayer update, or if GetiPlay changes the format used in the background.