[PR #7013] [MERGED] Increment library name number instead of appending #11222

Closed
opened 2026-02-07 06:34:33 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/7013
Author: @1337joe
Created: 12/18/2021
Status: Merged
Merged: 12/19/2021
Merged by: @crobibero

Base: masterHead: increment-library-names


📝 Commits (1)

  • 077f13a Increment library number instead of appending

📊 Changes

1 file changed (+3 additions, -2 deletions)

View changed files

📝 Emby.Server.Implementations/Library/LibraryManager.cs (+3 -2)

📄 Description

Changes
When a new library is created with a name that already exists:

  • if the last character is not a number: a " 2" is appended.
  • if the last character is a number: that number is incremented by 1.

Issues

Supersedes #5823


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/7013 **Author:** [@1337joe](https://github.com/1337joe) **Created:** 12/18/2021 **Status:** ✅ Merged **Merged:** 12/19/2021 **Merged by:** [@crobibero](https://github.com/crobibero) **Base:** `master` ← **Head:** `increment-library-names` --- ### 📝 Commits (1) - [`077f13a`](https://github.com/jellyfin/jellyfin/commit/077f13ae4c949c11d06734d8fc3d44b6411edcc8) Increment library number instead of appending ### 📊 Changes **1 file changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `Emby.Server.Implementations/Library/LibraryManager.cs` (+3 -2) </details> ### 📄 Description **Changes** When a new library is created with a name that already exists: - if the last character is not a number: a " 2" is appended. - if the last character is a number: that number is incremented by 1. **Issues** Supersedes #5823 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 06:34:33 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#11222