create an update Library info celery task
When an instance change the privacy of a library, its not updated automatically. This lead to having lots of errors while trying to play tracks from other instance that completely closer their api.
We probably should create a task that update the library when Service unavailable
is received from an instance. Or create a celery task that perform this every day ?
-
LibraryQuerySet.viewable_by()
give information toUpload.playable_by()
if a track can by played by an actor. We should update libraries info in a celery task. Library as aschedule_scan
method -
TrackActor allows to know if a track is playable by an actor. Its created in the upload process and when following feed. Denormalization need to be enabled
notes :
update_denormalization_track_actor
is launched when an upload or a library is saved. So
TrackActor should be update automatically after the library scan task