Open bensteUEM opened 1 year ago
The last changed date exists in CT within the meta of each file - can be accessed by get_songs(...) without downloading.
From the user point of view: I would use such a function only for updating the files in churchtools, if the local ones are newer. If I want to update the lokal files I would download the whole churchtools content into a different download folder and merge the local files by special merge tools which shows the differences for example Winmerge (for Windows).
Therefore I would suggest to implement such a function which only compares by date of change.
Sounds good. I would suggest that the function is implemented on the SNG class, checks local file last changed, uses the ID from the SNG file and make use of our CT packages to request that specific Song's default arrangement and conpares to the respective file names and Returns if local file newer_than_online as true or false .
One problem might be that I'm using song ID instead of arrangement ID in the sng files...
Implement a comparator which compares online and offline SNG file by last changed date Idea from https://forum.songbeamer.de/viewtopic.php?f=1&p=23001&sid=d7f00735d9dccdcc0eb7ba89baa0e489#p23001
Local SNG might be accidentally updated ... might need some more consideration what exactly is compared. In addition - unsure if last changed date exists in CT and can be accessed w/o download