Jellyfin Forum
SOLVED: Strange library issue - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: SOLVED: Strange library issue (/t-solved-strange-library-issue)

Pages: 1 2


Strange library issue - Backwoods Genius - 2024-10-02

I'll try to give as much detail as possible. I'm stumped and could use some ideas.

1) Had a bunch of old Hanna-Barbera cartoons I got as one huge bundle.
2) Renamed most of the files because, as usual, the original file names weren't media server friendly.
3) Could not get Jellyfin to display things correctly despite repeatedly identifying individual series, adding tvdbids to file names, etc.
4) The first 8-10 episodes of nearly every series came with the same set of titles based on a specific Hanna-Barbera collection. This happened even when the series information was displayed correctly. The later episodes would also be displayed correctly.
5) Assuming a cache issue, I manually deleted all the cache json files in the /omdb directory. Restarted both client and server.
6) Still had the same issue. The only way to fix it was to manually identify each episode. That's not practical with a thousand episodes.
7) Removed the library. Restarted both client and server.
8- Even with the library deleted, it still showed up in the client. I could still access the shows.
9) Renamed the folder to break the file path. Restarted both client and server. I still have the library showing in the client and can still access four of the series even though the path in the metadata is wrong. Interestingly, the series I can access are ones that weren't in the aforementioned bundle.

I'm assuming I still have a cache issue. But I'm not clear what other caches there are that might be relevant. The library is not set to favor embedded names, so correct file names and nfos should display correct titles. Not to mention the fact that the client shouldn't display a library that isn't in the server. I did look at the console, the server is not monitoring that directory like it is for the other libraries. So I don't understand how the client is displaying a library that doesn't exist and is playing episodes with the wrong file path.


RE: Strange library issue - TheDreadPirate - 2024-10-02

Can you provide example file and folder names?

And share your full jellyfin log via pastebin?


RE: Strange library issue - Backwoods Genius - 2024-10-03

(2024-10-02, 01:07 PM)TheDreadPirate Wrote: Can you provide example file and folder names?

And share your full jellyfin log via pastebin?

Code:
  Directory: M:\Anim ShowsBak\Wheelie & The Chopper Bunch

Mode                LastWriteTime        Length Name
----                -------------        ------ ----
-a---          9/25/2024    10:09        512596 backdrop.jpg
-a---          9/25/2024    10:09          37234 banner.jpg
-a---          9/25/2024    10:09        433363 folder.jpg
-a---          9/25/2024    10:09        104686 landscape.jpg
-a---          9/25/2024    10:09          16472 S01E01 Get A Doctor Thumb.jpg
-a---          9/29/2024    09:34          16472 S01E01 Get A Doctor-thumb.jpg
-a---          9/19/2024    01:21      54331678 S01E01 Get A Doctor.avi
-a---          10/2/2024    05:01          3042 S01E01 Get A Doctor.nfo
-a---          9/25/2024    10:09          15004 S01E02 A Day At The Beach Thumb.jpg
-a---          9/29/2024    09:34          86836 S01E02 A Day At The Beach-thumb.jpg
-a---          9/19/2024    01:00      54435468 S01E02 A Day At The Beach.avi
-a---          10/2/2024    05:02          3073 S01E02 A Day At The Beach.nfo
-a---          9/25/2024    10:10          17811 S01E03 Ghost Riders Thumb.jpg
-a---          9/29/2024    09:34          88543 S01E03 Ghost Riders-thumb.jpg
-a---          9/19/2024    01:21      57173002 S01E03 Ghost Riders.avi
-a---          10/2/2024    05:02          3134 S01E03 Ghost Riders.nfo
-a---          9/25/2024    10:10          18260 S01E04 Double Cross Country Thumb.jpg
-a---          9/29/2024    09:34          18260 S01E04 Double Cross Country-thumb.jpg
-a---          9/18/2024    21:40      52544684 S01E04 Double Cross Country.avi

Which log? I see several I could  share on my M drive and there's at least one in the exe directory on my C drive.


RE: Strange library issue - TheDreadPirate - 2024-10-03

C:\ProgramData\Jellyfin\Server\log. There should be a file named log_YYYYMMDD.log in that directory.

Regarding your library. Try adding a "Season 01" folder in that directory and moving your files in there. Except for tvshow.nfo and any "season##" posters.

Also add the TMDB ID to the folder name

Code:
Wheelie & The Chopper Bunch [tmdbid-11008]

Then refresh metadata and select "replace all metadata".


RE: Strange library issue - theguymadmax - 2024-10-03

This sounds similar to an issue I’ve encountered before. I managed to remove the ghost library by editing the database. Here’s how:
  1. Download SQLite Browser.
  2. Shut down the server.
  3. Open library.db (always back up first!). Locations vary:
    • /var/lib/jellyfin/data/library.db
    • X:\ProgramData\Jellyfin\Server\data\library.db
    • X:\Users\Username\AppData\Local\jellyfin\data\library.db
  4. Choose the “Browse Data” tab, right under that is the option to choose table type, select “TypedBaseItems”
  5. Enter “MediaBrowser.Controller.Entities.CollectionFolder” in the Filter in any column field
  6. Find the entry you want to get rid of. Right-click on the number and select delete record.
  7. Click the “Write Changes” button, then close the database and restart the server.



RE: Strange library issue - Backwoods Genius - 2024-10-03

(2024-10-03, 03:57 PM)theguymadmax Wrote: This sounds similar to an issue I’ve encountered before. I managed to remove the ghost library by editing the database. Here’s how:
  1. Download SQLite Browser.
  2. Shut down the server.
  3. Open library.db (always back up first!). Locations vary:
    • /var/lib/jellyfin/data/library.db
    • X:\ProgramData\Jellyfin\Server\data\library.db
    • X:\Users\Username\AppData\Local\jellyfin\data\library.db
  4. Choose the “Browse Data” tab, right under that is the option to choose table type, select “TypedBaseItems”
  5. Enter “MediaBrowser.Controller.Entities.CollectionFolder” in the Filter in any column field
  6. Find the entry you want to get rid of. Right-click on the number and select delete record.
  7. Click the “Write Changes” button, then close the database and restart the server.
Thanks! That's a concise, detailed walkthrough. And it got rid of the ghost library. Found the problem in a third location, the two paths you gave didn't show all the libraries for some reason. Now I'm really curious what else I can do with that tool. I never would have figured that out on my own.

Still have to go and put everything back in place to see if it fixed the problem with the client displaying the wrong names.


RE: Strange library issue - Backwoods Genius - 2024-10-03

Still having the issue with some episode names being displayed incorrectly. This happens across multiple series. And the wrong names are ALWAYS the same- ie, "Yogi's Great Escape" is the first episode on multiple series. I don't even have anything with Yogi in it. So it has to be pulling that from online somehow. But how could it get some episodes wrong while others are right? And always the same episodes regardless what series it is looking for?

   

But the files are named correctly per TVDB

   


Refreshing/replacing metadata hasn't fixed it.


RE: Strange library issue - TheDreadPirate - 2024-10-03

Which folder is your library pointed to? The entire M drive? Or M:\Anim Shows?


RE: Strange library issue - Backwoods Genius - 2024-10-04

(2024-10-03, 05:45 PM)TheDreadPirate Wrote: Which folder is your library pointed to?  The entire M drive?  Or M:\Anim Shows?

M:\Anim Shows


RE: Strange library issue - Backwoods Genius - 2024-10-04

Finally got it all sorted. Used the SQL browser to go in and remove the entries that were overriding the real info. Took a few rounds to identify the problem titles, but wasn't that difficult. Now all the episodes have the correct titles and info, no ghost info anywhere.