tubesync icon indicating copy to clipboard operation
tubesync copied to clipboard

Rework nested signals

Open meeb opened this issue 4 years ago • 0 comments

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.

meeb avatar Mar 08 '21 02:03 meeb