Update update-playlists.js

This commit is contained in:
Aleksandr Statciuk 2021-12-12 07:45:35 +03:00
parent 6b5bfd5291
commit 964538cead
1 changed files with 0 additions and 1 deletions

View File

@ -5,7 +5,6 @@ async function main() {
let items = await db let items = await db
.find({}) .find({})
.sort({ name: 1, 'status.level': 1, 'resolution.height': -1, url: 1 }) .sort({ name: 1, 'status.level': 1, 'resolution.height': -1, url: 1 })
items = _.uniqBy(items, 'url')
const files = _.groupBy(items, 'filepath') const files = _.groupBy(items, 'filepath')
for (const filepath in files) { for (const filepath in files) {