[PR #3874] [MERGED] Fix MergeVersions() #9742

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

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/3874
Author: @danieladov
Created: 8/10/2020
Status: Merged
Merged: 9/3/2020
Merged by: @anthonylavado

Base: masterHead: master


📝 Commits (2)

  • c7b5bc5 Fix MergeVersions()
  • 2f9b482 Merge branch 'master' into master

📊 Changes

1 file changed (+11 additions, -8 deletions)

View changed files

📝 Jellyfin.Api/Controllers/VideosController.cs (+11 -8)

📄 Description

Merging two times the same videos adds a repeated (I mean literally the same video) to the linkedAlternateVersions list so mediaSourceCount gives an incorrect number, checking if the video is already in the linkedAlternateVersions list solves the problem

Changes
Check if the video is already in the linkedAlternateVersions list
Rename a list with a better name


🔄 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/3874 **Author:** [@danieladov](https://github.com/danieladov) **Created:** 8/10/2020 **Status:** ✅ Merged **Merged:** 9/3/2020 **Merged by:** [@anthonylavado](https://github.com/anthonylavado) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`c7b5bc5`](https://github.com/jellyfin/jellyfin/commit/c7b5bc55a1ac985c46b918e4b6208ea1f4ae0b2f) Fix MergeVersions() - [`2f9b482`](https://github.com/jellyfin/jellyfin/commit/2f9b4825550c97d1432033958d7a016d8775dff9) Merge branch 'master' into master ### 📊 Changes **1 file changed** (+11 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `Jellyfin.Api/Controllers/VideosController.cs` (+11 -8) </details> ### 📄 Description Merging two times the same videos adds a repeated (I mean literally the same video) to the linkedAlternateVersions list so mediaSourceCount gives an incorrect number, checking if the video is already in the linkedAlternateVersions list solves the problem **Changes** Check if the video is already in the linkedAlternateVersions list Rename a list with a better name --- <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:07:42 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#9742