mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-24 14:06:36 +00:00
Streams are newest first also
Keep the beginning when limited: Newest, ..., Oldest Reverse direction when adding to the queue: Oldest, ..., Newest This way when it is limited by queue size, we keep the newest streams for indexing.
This commit is contained in:
parent
e135da45ca
commit
3c1cf294eb
@ -552,7 +552,7 @@ class Source(db.models.Model):
|
|||||||
entries.maxlen // 2,
|
entries.maxlen // 2,
|
||||||
entries.maxlen - len(entries),
|
entries.maxlen - len(entries),
|
||||||
)
|
)
|
||||||
entries.extend(reversed(streams[-1 * allowed_streams :]))
|
entries.extend(reversed(streams[: allowed_streams]))
|
||||||
|
|
||||||
return entries
|
return entries
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user