Page 1 of 1

Subtitle detection problem

Posted: Tue Sep 25, 2018 9:16 am
by squadjot
A scenario i run into now and then:

1. I want to watch movie on my Sony Bravia W5500 TV
2. I Browse the folder, but i find out that i forgot to download subtitle.
3. I go to computer and download subtitle
4. Back at TV i try to browse parent folder, and then back in movie folder, but UMS does not detect the newly downloaded SRT file.
5. I have to restart UMS to make it detect SRT.

Is this expected behavior?
If it is, maybe we could use a optional "#--Refresh folder--#" option?

Btw above scenario is with the "Media library"-option disabled.

Re: Subtitle detection problem

Posted: Fri Sep 28, 2018 12:53 am
by atamariya
Yes, that's by design. UMS caches media tree to speed up display.

Re: Subtitle detection problem

Posted: Fri Sep 28, 2018 1:25 am
by squadjot
atamariya wrote: Fri Sep 28, 2018 12:53 am Yes, that's by design. UMS caches media tree to speed up display.
Thanks

Yea i kind of expected that.
So i think an optional #--Refresh--# option would be nice to have.

Re: Subtitle detection problem

Posted: Fri Sep 28, 2018 4:40 am
by Madoka
I have noticed this issue for a long time now. One workaround that I use on 6.8.0 is to go into the transcode folder. For some reason, the new subtitle shows up there, and I can manually select it to run. This just saves me time restarting UMS.

Re: Subtitle detection problem

Posted: Fri Sep 28, 2018 7:37 am
by squadjot
It happens often for me.. i think this should be fixed :/

Edit: @ Madoka.. i also thought i remembered it "working" at some point, "working" as in go to another folder and reenter.

I don't know how the code works, but i imagine i would look for something like; comparing the filelist with the one in cache, and update accordingly. Probably easier said than done.

Re: Subtitle detection problem

Posted: Fri Sep 28, 2018 8:28 am
by Madoka
IIRC, if the sub name has a language code in it, it updates ok. The subs I get never have language codes unless I put them in.