typos
This commit is contained in:
parent
73fa3b56a4
commit
2f61aac982
|
@ -2436,13 +2436,6 @@ class PlaylistSerializer(jsonld.JsonLdSerializer):
|
||||||
"privacy_level": validated_data["audience"],
|
"privacy_level": validated_data["audience"],
|
||||||
"library": library,
|
"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(
|
playlist, created = playlists_models.Playlist.objects.update_or_create(
|
||||||
defaults=ap_to_fw_data,
|
defaults=ap_to_fw_data,
|
||||||
|
|
|
@ -252,7 +252,7 @@ class Playlist(federation_models.FederationMixin):
|
||||||
latest_scan = (
|
latest_scan = (
|
||||||
self.scans.exclude(status="errored").order_by("-creation_date").first()
|
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()
|
now = timezone.now()
|
||||||
if (
|
if (
|
||||||
not force
|
not force
|
||||||
|
|
|
@ -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 discovery : add the playlist to my playlist collection = follow request to playlist
|
||||||
- [ ] Playlist Track activity (to avoid having to refetch the whole 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 ?
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import type { PlaylistTrack, Playlist, Track } from '~/types'
|
import type { PlaylistTrack, Playlist, Track } from '~/types'
|
||||||
|
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import { ref, computed, watch } from 'vue'
|
import { ref, computed } from 'vue'
|
||||||
import { useStore } from '~/store'
|
import { useStore } from '~/store'
|
||||||
|
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
|
|
Loading…
Reference in New Issue