tubesync
tubesync copied to clipboard
Rework nested signals
Currently when saving a source the save() method triggers a signal which iterates over and re-saves all media linked to the source. This is to re-apply changed settings and re-evaluate things like skip or can_download flags based on potentially changed requirements at the source.
This likely can't be avoided, but this big block of work needs to be offloaded to a background task. This should resolve timeout issues saving sources with a lot of media items as reported in #79
This will improve indexing support for large channels.