agregarr / agregarr/agregarr

Updating visibility of a collection returns 400 "already exists"

Offen
#540 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
awaiting-triage bug
Vorherrschende Sprache
TypeScript
Sterne
1k
Forks
41
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### Description

I am trying to update the visibility settings of a lot of collections to not show in the home for users. Not every collection does this appears to be linked to "Network Originals", when you try it will say 400 with the message "A pre-existing collection with the name \"Apple Originals\" already exists in library \"Movies\". Please choose a different name or template.".

### Version

2.4.2

### Steps to Reproduce

1. Create a collection
2. Set source to "Network Originals"
3. Use any streaming service
4. Set the library (I chose movies and tv shows)
5. Enable all visibility
6. Create the collection
7. Edit collection
8. Unset home visiblity (users and server owner)
9. See error

### List Links

_No response_

### Screenshots

Image

### Logs

```shell
2026-03-23T07:03:08.175Z [debug][Template Engine]: Template processing {"template":"Apple Originals","context":{"domain":"","appTitle":"Agregarr","nickname":"Forbidden_Duck","username":"Forbidden_Duck","servername":"Howard Plex Server","mediaType":"movie"}}
2026-03-23T07:03:08.176Z [debug][Template Engine]: Template processing result {"originalTemplate":"Apple Originals","processedTemplate":"Apple Originals","wasChanged":false}
2026-03-23T07:03:08.229Z [debug][Template Engine]: Template processing {"template":"Apple Originals","context":{"domain":"","appTitle":"Agregarr","nickname":"Forbidden_Duck","username":"Forbidden_Duck","servername":"Howard Plex Server","mediaType":"tv"}}
2026-03-23T07:03:08.229Z [debug][Template Engine]: Template processing result {"originalTemplate":"Apple Originals","processedTemplate":"Apple Originals","wasChanged":false}
2026-03-23T07:03:16.040Z [debug][Collections API]: Fetching available providers for Originals collections
2026-03-23T07:03:16.041Z [debug][Collections API]: Returning 9 originals providers {"providersCount":9}
2026-03-23T07:03:16.377Z [debug][Template Engine]: Template processing {"template":"Apple Originals","context":{"domain":"","appTitle":"Agregarr","nickname":"Forbidden_Duck","username":"Forbidden_Duck","servername":"Howard Plex Server","mediaType":"movie"}}
2026-03-23T07:03:16.378Z [debug][Template Engine]: Template processing result {"originalTemplate":"Apple Originals","processedTemplate":"Apple Originals","wasChanged":false}
2026-03-23T07:03:16.380Z [debug][Template Engine]: Template processing {"template":"Apple Originals","context":{"domain":"","appTitle":"Agregarr","nickname":"Forbidden_Duck","username":"Forbidden_Duck","servername":"Howard Plex Server","mediaType":"tv"}}
2026-03-23T07:03:16.381Z [debug][Template Engine]: Template processing result {"originalTemplate":"Apple Originals","processedTemplate":"Apple Originals","wasChanged":false}
2026-03-23T07:03:25.641Z [debug][Template Engine]: Template processing {"template":"Apple Originals","context":{"domain":"","appTitle":"Agregarr","nickname":"Forbidden_Duck","username":"Forbidden_Duck","servername":"Howard Plex Server","mediaType":"movie"}}
2026-03-23T07:03:25.641Z [debug][Template Engine]: Template processing result {"originalTemplate":"Apple Originals","processedTemplate":"Apple Originals","wasChanged":false}
2026-03-23T07:03:29.003Z [debug][Template Engine]: Template processing {"template":"Apple Originals","context":{"domain":"","appTitle":"Agregarr","nickname":"Forbidden_Duck","username":"Forbidden_Duck","servername":"Howard Plex Server","mediaType":"movie"}}
2026-03-23T07:03:29.003Z [debug][Template Engine]: Template processing result {"originalTemplate":"Apple Originals","processedTemplate":"Apple Originals","wasChanged":false}
2026-03-23T07:03:29.033Z [debug][Template Engine]: Template processing {"template":"Apple Originals","context":{"domain":"","appTitle":"Agregarr","nickname":"Forbidden_Duck","username":"Forbidden_Duck","servername":"Howard Plex Server","mediaType":"tv"}}
2026-03-23T07:03:29.034Z [debug][Template Engine]: Template processing result {"originalTemplate":"Apple Originals","processedTemplate":"Apple Originals","wasChanged":false}
2026-03-23T07:03:33.195Z [info][Collections API]: Updating 2 linked collection configs {"linkId":182,"configIds":["10148","10149"]}
2026-03-23T07:03:33.195Z [info][Collections API]: Library changes detected for linked collection {"linkId":182,"currentLibraries":["1","2"],"requestedLibraries":["2","1"],"added":[],"removed":[]}
2026-03-23T07:03:33.195Z [debug][Template Engine]: Template processing {"template":"Apple Originals","context":{"domain":"","appTitle":"Agregarr","nickname":"Forbidden_Duck","username":"Forbidden_Duck","servername":"Howard Plex Server","mediaType":"movie"}}
2026-03-23T07:03:33.195Z [debug][Template Engine]: Template processing result {"originalTemplate":"Apple Originals","processedTemplate":"Apple Originals","wasChanged":false}
2026-03-23T07:05:21.742Z [debug][Collections API]: Fetching collection configurations {"count":58,"collectionNames":["Coming Soon - Trakt Anticipated","Recently Released","Recently Added","Recommendations","What's Trending Now","Popular on Apple TV","Popular on Hbo Max","Popular on Netflix","Popular on Paramount","Popular on Disney"]}
2026-03-23T07:05:21.853Z [debug][Pre-existing Collections API]: Fetching pre-existing collection configurations {"count":22,"collectionNames":["Paramount Originals","Apple Originals","Peacock Originals","Apple Originals","Hulu Originals","Peacock Originals","Apple Originals","Hulu Originals","Peacock Originals","Disney Originals"]}
2026-03-23T07:05:21.964Z [debug][Collections API]: Fetching available providers for Originals collections
2026-03-23T07:05:21.964Z [debug][Collections API]: Returning 9 originals providers {"providersCount":9}
2026-03-23T07:05:21.995Z [info][Collections API]: Updating 2 linked collection configs {"linkId":182,"configIds":["10148","10149"]}
2026-03-23T07:05:21.996Z [info][Collections API]: Library changes detected for linked collection {"linkId":182,"currentLibraries":["1","2"],"requestedLibraries":["2","1"],"added":[],"removed":[]}
2026-03-23T07:05:21.996Z [debug][Template Engine]: Template processing {"template":"Apple Originals","context":{"domain":"","appTitle":"Agregarr","nickname":"Forbidden_Duck","username":"Forbidden_Duck","servername":"Howard Plex Server","mediaType":"movie"}}
2026-03-23T07:05:21.996Z [debug][Template Engine]: Template processing result {"originalTemplate":"Apple Originals","processedTemplate":"Apple Originals","wasChanged":false}
2026-03-23T07:05:22.311Z [warn][Plex API]: Slow Plex libraries fetch detected {"libraryCount":4,"responseTime":504}
2026-03-23T07:06:02.166Z [debug][Collections API]: Fetching collection configurations {"count":58,"collectionNames":["Coming Soon - Trakt Anticipated","Recently Released","Recently Added","Recommendations","What's Trending Now","Popular on Apple TV","Popular on Hbo Max","Popular on Netflix","Popular on Paramount","Popular on Disney"]}
2026-03-23T07:06:02.242Z [debug][Pre-existing Collections API]: Fetching pre-existing collection configurations {"count":22,"collectionNames":["Paramount Originals","Apple Originals","Peacock Originals","Apple Originals","Hulu Originals","Peacock Originals","Apple Originals","Hulu Originals","Peacock Originals","Disney Originals"]}
2026-03-23T07:06:02.360Z [debug][Collections API]: Fetching available providers for Originals collections
2026-03-23T07:06:02.361Z [debug][Collections API]: Returning 9 originals providers {"providersCount":9}
2026-03-23T07:09:15.288Z [debug][Collections API]: Fetching collection configurations {"count":58,"collectionNames":["Coming Soon - Trakt Anticipated","Recently Released","Recently Added","Recommendations","What's Trending Now","Popular on Apple TV","Popular on Hbo Max","Popular on Netflix","Popular on Paramount","Popular on Disney"]}
2026-03-23T07:09:15.346Z [debug][Pre-existing Collections API]: Fetching pre-existing collection configurations {"count":22,"collectionNames":["Paramount Originals","Apple Originals","Peacock Originals","Apple Originals","Hulu Originals","Peacock Originals","Apple Originals","Hulu Originals","Peacock Originals","Disney Originals"]}
2026-03-23T07:09:15.399Z [debug][Collections API]: Fetching available providers for Originals collections
2026-03-23T07:09:15.399Z [debug][Collections API]: Returning 9 originals providers {"providersCount":9}
2026-03-23T07:09:33.591Z [debug][Collections API]: Fetching collection configurations {"count":58,"collectionNames":["Coming Soon - Trakt Anticipated","Recently Released","Recently Added","Recommendations","What's Trending Now","Popular on Apple TV","Popular on Hbo Max","Popular on Netflix","Popular on Paramount","Popular on Disney"]}
2026-03-23T07:09:33.681Z [debug][Pre-existing Collections API]: Fetching pre-existing collection configurations {"count":22,"collectionNames":["Paramount Originals","Apple Originals","Peacock Originals","Apple Originals","Hulu Originals","Peacock Originals","Apple Originals","Hulu Originals","Peacock Originals","Disney Originals"]}
2026-03-23T07:09:38.299Z [debug][Collections API]: Fetching available providers for Originals collections
2026-03-23T07:09:38.299Z [debug][Collections API]: Returning 9 originals providers {"providersCount":9}
2026-03-23T07:13:00.512Z [debug][Collections API]: Fetching collection configurations {"count":58,"collectionNames":["Coming Soon - Trakt Anticipated","Recently Released","Recently Added","Recommendations","What's Trending Now","Popular on Apple TV","Popular on Hbo Max","Popular on Netflix","Popular on Paramount","Popular on Disney"]}
2026-03-23T07:13:20.630Z [debug][Collections API]: Fetching collection configurations {"count":58,"collectionNames":["Coming Soon - Trakt Anticipated","Recently Released","Recently Added","Recommendations","What's Trending Now","Popular on Apple TV","Popular on Hbo Max","Popular on Netflix","Popular on Paramount","Popular on Disney"]}
2026-03-23T07:13:20.724Z [debug][Pre-existing Collections API]: Fetching pre-existing collection configurations {"count":22,"collectionNames":["Paramount Originals","Apple Originals","Peacock Originals","Apple Originals","Hulu Originals","Peacock Originals","Apple Originals","Hulu Originals","Peacock Originals","Disney Originals"]}
2026-03-23T07:13:21.344Z [warn][Plex API]: Slow Plex libraries fetch detected {"libraryCount":4,"responseTime":602}
2026-03-23T07:13:23.870Z [debug][Collections API]: Fetching available providers for Originals collections
2026-03-23T07:13:23.870Z [debug][Collections API]: Returning 9 originals providers {"providersCount":9}
2026-03-23T07:13:24.221Z [debug][Template Engine]: Template processing {"template":"Apple Originals","context":{"domain":"","appTitle":"Agregarr","nickname":"Forbidden_Duck","username":"Forbidden_Duck","servername":"Howard Plex Server","mediaType":"movie"}}
2026-03-23T07:13:24.221Z [debug][Template Engine]: Template processing result {"originalTemplate":"Apple Originals","processedTemplate":"Apple Originals","wasChanged":false}
2026-03-23T07:13:24.222Z [debug][Template Engine]: Template processing {"template":"Apple Originals","context":{"domain":"","appTitle":"Agregarr","nickname":"Forbidden_Duck","username":"Forbidden_Duck","servername":"Howard Plex Server","mediaType":"tv"}}
2026-03-23T07:13:24.223Z [debug][Template Engine]: Template processing result {"originalTemplate":"Apple Originals","processedTemplate":"Apple Originals","wasChanged":false}
2026-03-23T07:13:27.978Z [info][Collections API]: Updating 2 linked collection configs {"linkId":182,"configIds":["10148","10149"]}
2026-03-23T07:13:27.979Z [info][Collections API]: Library changes detected for linked collection {"linkId":182,"currentLibraries":["1","2"],"requestedLibraries":["1","2"],"added":[],"removed":[]}
2026-03-23T07:13:27.979Z [debug][Template Engine]: Template processing {"template":"Apple Originals","context":{"domain":"","appTitle":"Agregarr","nickname":"Forbidden_Duck","username":"Forbidden_Duck","servername":"Howard Plex Server","mediaType":"movie"}}
2026-03-23T07:13:27.979Z [debug][Template Engine]: Template processing result {"originalTemplate":"Apple Originals","processedTemplate":"Apple Originals","wasChanged":false}
```

### Additional Context

Request URL: http://localhost:7171/api/v1/collections/10148/settings
Request Method: PUT
Payload:
```json
{
"id": "10148",
"name": "Apple Originals",
"type": "originals",
"subtype": "apple_originals",
"template": "Apple Originals",
"visibilityConfig": {
"usersHome": false,
"serverOwnerHome": false,
"libraryRecommended": true
},
"maxItems": 30,
"mediaType": "movie",
"libraryId": "1",
"libraryName": "Movies",
"sortOrderHome": 14,
"sortOrderLibrary": 4,
"customDays": 30,
"createPlaceholdersForMissing": true,
"placeholderDaysAhead": 90,
"placeholderReleasedDays": 14,
"placeholderMinimumYear": 0,
"placeholderMinimumImdbRating": 0,
"placeholderMinimumRottenTomatoesRating": 0,
"placeholderMinimumRottenTomatoesAudienceRating": 0,
"includeAllReleasedItems": true,
"tautulliStatType": "plays",
"minimumPlays": 3,
"searchMissingMovies": false,
"searchMissingTV": false,
"autoApproveMovies": false,
"autoApproveTV": false,
"seasonGrabOrder": "first",
"traktCustomListUrl": "",
"tmdbCustomCollectionUrl": "",
"imdbCustomListUrl": "",
"letterboxdCustomListUrl": "",
"sortOrder": "default",
"timeRestriction": {
"alwaysActive": true,
"removeFromPlexWhenInactive": false,
"inactiveVisibilityConfig": {
"usersHome": false,
"serverOwnerHome": false,
"libraryRecommended": true
}
},
"customPoster": {},
"autoPoster": true,
"autoPosterTemplate": 1,
"useTmdbFranchisePoster": false,
"hideIndividualItems": false,
"applyOverlaysDuringSync": false,
"showUnwatchedOnly": false,
"smartCollectionSort": {
"value": "originallyAvailableAt:desc",
"label": "Release Date (Newest First)"
},
"randomizeHomeOrder": false,
"customWallpaper": "",
"customSummary": "",
"customTheme": "",
"enableCustomWallpaper": false,
"enableCustomSummary": false,
"enableCustomTheme": false,
"customSyncSchedule": {
"enabled": false,
"scheduleType": "preset",
"intervalHours": 24,
"preset": "1d",
"startNow": true,
"startDate": "01-01",
"startTime": "09:00"
},
"collectionRatingKey": "59147",
"configType": "collection",
"isLinked": true,
"linkId": 182,
"excludeFromCollections": [],
"libraryIds": [
"2",
"1"
],
"libraryNames": [
"Movies",
"TV Shows"
],
"isMultiSource": false,
"sources": [
{
"id": "0",
"type": "originals",
"subtype": "apple_originals",
"customUrl": "",
"customDays": 30,
"minimumPlays": 3,
"priority": 0,
"isExpanded": true
}
],
"combineMode": "list_order"
}
```

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.