This commit is contained in:
Petitminion 2025-05-04 22:44:19 +02:00
parent 73fa3b56a4
commit 2f61aac982
4 changed files with 3 additions and 9 deletions

View File

@ -2436,13 +2436,6 @@ class PlaylistSerializer(jsonld.JsonLdSerializer):
"privacy_level": validated_data["audience"],
"library": library,
}
# to do : why I did this oO
# if not actor.is_local:
# ap_to_fw_data["privacy_level"] = (
# contexts.AS.Public
# if validated_data.get("privacy_level", "") == "everyone"
# else ""
# )
playlist, created = playlists_models.Playlist.objects.update_or_create(
defaults=ap_to_fw_data,

View File

@ -252,7 +252,7 @@ class Playlist(federation_models.FederationMixin):
latest_scan = (
self.scans.exclude(status="errored").order_by("-creation_date").first()
)
delay_between_scans = datetime.timedelta(seconds=3600 * 24)
delay_between_scans = datetime.timedelta(seconds=1)
now = timezone.now()
if (
not force

View File

@ -63,3 +63,4 @@ There is no other reason to share the playlit.library to remote.
- [ ] Playlist discovery : add the playlist to my playlist collection = follow request to playlist
- [ ] Playlist Track activity (to avoid having to refetch the whole playlist)
- [ ] Add a popover button to force playlist scan ? or make playlist scan delay shorter ?

View File

@ -2,7 +2,7 @@
import type { PlaylistTrack, Playlist, Track } from '~/types'
import { useI18n } from 'vue-i18n'
import { ref, computed, watch } from 'vue'
import { ref, computed } from 'vue'
import { useStore } from '~/store'
import axios from 'axios'