Page 1 of 1

Wrong episode name and thumbnail

Posted: Fri May 16, 2025 8:01 am
by hego
Hi all,

I have been having this issue for a few months, I'm not even sure when it started. It's about wrong episode names and sometimes thumbnails, like this:
Dexter.png
Dexter.png (842.81 KiB) Viewed 96945 times
As you can see, it's a Dexter episode with Monk thumbnail and King of the Hill name. I have cleared the cache several times, but things only change a little; it's never completely fixed.

Not all files are affected, though:
Anger Management.png
Anger Management.png (638.16 KiB) Viewed 96945 times
For this report, I have two logs: After the cache is cleared, things change a lot, but the issues remain. Here are two examples with before and after: https://www.dropbox.com/scl/fi/2zlrdxze ... z3tfd&dl=0 and https://www.dropbox.com/scl/fi/7k4fcd0x ... o7ghq&dl=0

In this image, you can see that Family Guy is wrong, but it was right before the cache reset. Lower Decks didn't change, it was wrong both times:
Right to wrong.png
Right to wrong.png (1.2 MiB) Viewed 96945 times
The files are located on different hard drives and with different file structures. I attached three examples here: https://www.dropbox.com/scl/fi/e2ejktu5 ... bpgwn&dl=0

The situations above happened with Prettify filenames checked. If I uncheck it, the names are displayed correctly, but the original names are too ugly.

Thank you for your great job!

Re: Wrong episode name and thumbnail

Posted: Sat May 17, 2025 1:52 am
by mik_s
I came across something recently where the wrong episode names and thumbnails was coming up for the new Doctor Who so there may be an issue on the API side of things not retrieving the correct metadata (does not help they reset the season number with the new Doc).
Screenshot 2025-05-16 144634.png
Screenshot 2025-05-16 144634.png (1.57 MiB) Viewed 95828 times
I tried the reset cache option hoping it would refresh this but it appears to corrupt the database and messes up all video names too.
Screenshot 2025-05-16 135020.png
Screenshot 2025-05-16 135020.png (780.68 KiB) Viewed 95828 times
This also messes up the media library so it will not show anything and a full rescan will not fix this.
I had to delete the database "C:\ProgramData\UMS\database\medias.mv.db" so UMS will build a new one to get it back.

I have not looked at your logs yet but I think this is the same problem.

Re: Wrong episode name and thumbnail

Posted: Sat May 17, 2025 2:28 am
by mik_s
I made an issue for this on Github and there appears to be a couple of similar issues related to this.

Re: Wrong episode name and thumbnail

Posted: Sat May 17, 2025 6:35 am
by hego
mik_s wrote: Sat May 17, 2025 2:28 am I made an issue for this on Github and there appears to be a couple of similar issues related to this.
Great, thank you!

Re: Wrong episode name and thumbnail

Posted: Thu May 22, 2025 8:25 am
by SubJunk
This is a really good bug report and I'm working on fixing the bugs now. I have already deployed a couple of related fixes to the API and will let you know when I have progress on UMS itself

Re: Wrong episode name and thumbnail

Posted: Thu May 22, 2025 8:59 am
by SubJunk
I have fixed some bugs on the server related to resetting the cache, it was leaving out some database tables so they would have become mismatched. That doesn't explain the initial bad state, but maybe that was caused by an API bug. I will do some testing of my fixes soon and see if I can still make it break. If it goes well I'll upload a build for you to test

Re: Wrong episode name and thumbnail

Posted: Sat May 24, 2025 4:13 am
by hego
SubJunk wrote: Thu May 22, 2025 8:25 am This is a really good bug report and I'm working on fixing the bugs now. I have already deployed a couple of related fixes to the API and will let you know when I have progress on UMS itself
I'm glad I could help

Re: Wrong episode name and thumbnail

Posted: Sat May 24, 2025 4:14 am
by hego
SubJunk wrote: Thu May 22, 2025 8:59 am I have fixed some bugs on the server related to resetting the cache, it was leaving out some database tables so they would have become mismatched. That doesn't explain the initial bad state, but maybe that was caused by an API bug. I will do some testing of my fixes soon and see if I can still make it break. If it goes well I'll upload a build for you to test
Sure, anytime.

Re: Wrong episode name and thumbnail

Posted: Wed Jun 04, 2025 8:04 pm
by SubJunk
Please see if this version can properly reset the cache https://www.universalmediaserver.com/up ... x86_64.exe

Re: Wrong episode name and thumbnail

Posted: Tue Jun 10, 2025 6:07 am
by hego
I finally had time yesterday to test the new version. At first it was all the same as before and then I clicked on Clear Cache. It was acting weird, I had to click several times until it worked. Then the server restarted and it was unavailable, but using the old intercace I could see it was recreating the cache. It took a few hours to finish. This morning I tried to check it but the server was unavaliable:
2025-06-09_11-14-40.png
2025-06-09_11-14-40.png (13.75 KiB) Viewed 53035 times
I tried restarting it, no change. So I reinstalled the previous version, 14.12.1, and all seems to be displaying fine:
2025-06-09_11-48-35.png
2025-06-09_11-48-35.png (989.86 KiB) Viewed 53035 times
Here is the log from the test version, after the cache clear: https://www.dropbox.com/scl/fi/taok8day ... 6rvnb&dl=0. It was not created with the Create TRACE Logs, but I hope it has enough info for you.

Was this the expected result?

Sorry for taking so long.