Skip to content

Commit

Permalink
Fixed a bug where if the single-focused collection existed in the DB …
Browse files Browse the repository at this point in the history
…but not in Plex, unabridged would never re-create it. Addresses issue #5.
  • Loading branch information
knicholson32 committed Dec 24, 2023
1 parent a687914 commit 3b8562d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/server/plex/auto-scan/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export const generateCollections = async (
console.log('Collect singles');
// Make a collection for the single books if one doesn't exist
let key: string | null = plexSettings['plex.collections.singlesKey'];
if (key === '') {
if (key === '' || !await collections.checkCollectionExists(key, plexSettings['plex.address'], plexSettings['plex.token'], debug)) {
key = await collections.createCollection(
'No Series',
plexSettings['plex.library.key'],
Expand Down

0 comments on commit 3b8562d

Please sign in to comment.