Init sqlite take 2

This commit is contained in:
advplyr 2023-07-04 18:14:44 -05:00
parent d86a3b3dc2
commit cf7fd315b6
88 changed files with 7017 additions and 692 deletions

View file

@ -1,3 +1,4 @@
const uuidv4 = require("uuid").v4
const FeedMeta = require('./FeedMeta')
const FeedEpisode = require('./FeedEpisode')
const RSS = require('../libs/rss')
@ -90,7 +91,7 @@ class Feed {
const feedUrl = `${serverAddress}/feed/${slug}`
const author = isPodcast ? mediaMetadata.author : mediaMetadata.authorName
this.id = slug
this.id = uuidv4()
this.slug = slug
this.userId = userId
this.entityType = 'libraryItem'
@ -179,7 +180,7 @@ class Feed {
const itemsWithTracks = collectionExpanded.books.filter(libraryItem => libraryItem.media.tracks.length)
const firstItemWithCover = itemsWithTracks.find(item => item.media.coverPath)
this.id = slug
this.id = uuidv4()
this.slug = slug
this.userId = userId
this.entityType = 'collection'
@ -253,7 +254,7 @@ class Feed {
const libraryId = itemsWithTracks[0].libraryId
const firstItemWithCover = itemsWithTracks.find(li => li.media.coverPath)
this.id = slug
this.id = uuidv4()
this.slug = slug
this.userId = userId
this.entityType = 'series'