mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[Issue]: TV show not listing any seasons because season is flagged as virtual #5975
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jellouser on GitHub (Jun 9, 2024).
Please describe your bug
I'm using locally generated NFO files for TV recordings: when the recording is completed then NFO file is created for the episode.
The problem is that when first episode for the show is recorded Jellyfin should create 1) show 2) season and 3) episode which it does according to database items, but the season is flagged as "IsVirtualItem" and because of this not listed in the user interface.
I am able "fix" this by forcing full metadata update for the show but it is annoying workaround and should work without it. After the season is "fixed" all episodes for this season work fine, until next new season which also needs "fix".
Looking at the code SeasonMetadataService SaveIsVirtualItem has some logic related to episode count, maybe episode does yet not "exist" at this point which would explain metadata update "fixing" it later? This problem also existed in 10.8.x.
EDIT: It seems that for master I need to refresh metadata twice until episode count is correct (1) and virtual flag is set to false for season.
Reproduction Steps
Jellyfin Version
Master branch
if other:
No response
Environment
Jellyfin logs
FFmpeg logs
No response
Please attach any browser or client logs here
No response
Please attach any screenshots here
No response
Code of Conduct
@jellyfin-bot commented on GitHub (Jun 9, 2024):
Hi, it seems like your issue report has the following item(s) that need to be addressed:
This is an automated message, currently under testing. Please file an issue here if you encounter any problems.
@sjorge commented on GitHub (Jun 9, 2024):
Might be similar to https://github.com/jellyfin/jellyfin/issues/11575
Do you happen to have
Display specials within seasons they aired inunchecked under library -> display ?@jellouser commented on GitHub (Jun 9, 2024):
Thanks, I saw your issue earlier and now tested this. Indeed enabling/checking
Display specials within seasons they aired inseems to "fix" my issue.@sjorge commented on GitHub (Jun 9, 2024):
So it's probably the same issue, somewhat relieved I am no longer alone 😅
@jellouser commented on GitHub (Aug 17, 2024):
I still have this issue on 10.9.9
Using "Display specials within seasons they aired in" checked as workaround...
@sjorge commented on GitHub (Aug 17, 2024):
It was reverted by Niels in 2 chunks because it broke stuff for him
I think to fix our problem we only needed the query optimization reverted #12240 and the fix for Niels issue is actually #12356
But i have not tried building jellyfin with only the query change to verify, and further more that won't be enough it would also need to be verified by Niels that it did not re-breaks everything for him.
Probably going to just live with the workaround until the EF migration is done in a few years, and then hope the entire virtual vs physical stuff can be revisited. There is more breakage as a result of this with how marked as watched is propagated being all funky with real episodes but virtual seasons.
It seems not many people are hitting this bug because most people follow the jellyfin naming convention of having
S#E#in the filename and having everything fromS#inside aSeason #/directory. Doing that also makes the issue disappear as the seaons are now no longer virtual. So there are 2 workarounds I guess.I just hope https://github.com/jellyfin/jellyfin-plugin-tvdb/pull/176 won't make things worse for us. But at first glance I don't think it will.
@Iowerth commented on GitHub (Sep 5, 2024):
Same issue. Server version 10.9.10. If I have disabled
Display specials within seasons they aired inthen error like from first post:If I enable
Display specials within seasons they aired inthen error disappear but no thumbnail creating after trying to create it. An only this in logs:[2024-09-05 21:30:45.532 +03:00] [INF] [19] Jellyfin.Api.Controllers.ItemLookupController: Setting provider id's to item 0f5f6196-05a7-b2d4-fd17-ebf520937c83-"House of the Dragon": [("Imdb": "tt11198330")]@jellouser commented on GitHub (Nov 21, 2024):
Using Jellyfin 10.10.1 my setup does not work anymore at all. First I lost all metadata for recordings for whatever reason.
Now with "Display specials within seasons they aired in" checked everything goes under "Season 1" instead of correct ones with full re-scan and re-create of library.
Without it checked, same problem as originally - no seasons are created so library is useless only showing Shows with no seasons.
I'm amazed how this simple use case does not work, everything is included in NFO data...
@jellyfin-bot commented on GitHub (Mar 22, 2025):
This issue has gone 120 days without an update and will be closed within 21 days if there is no new activity. To prevent this issue from being closed, please confirm the issue has not already been fixed by providing updated examples or logs.
If you have any questions you can use one of several ways to contact us.
@jellyfin-bot commented on GitHub (Apr 12, 2025):
This issue was closed due to inactivity.