Page 1 of 1

Bug Report: Serviio not detecting added srt file

PostPosted: Tue Jul 04, 2017 8:16 pm
by ami289
Hey guys,

I don't know if this is the correct place, but this is more of a bug report for future releases, then a request for help, as I've managed to get around this issue.


Long story short (bottom line)-
Serviio does not detect when I've added an srt file to already in-library folder.
Forced refresh, or restarting of both server and client, did not help either.
Video file and srt file names are exactly the same (copy-pasted video file name).
I am not using transcoding (so no cached/'old' transcoded video with no subtitles).


Long story long (more details about my situation)-
I had a video file for a couple of months now, and I've played it several times successfully (still had no subtitles file for it).
Few days ago, I've downloaded subtitles for that video.
I've put it in the same directory as the video file, copy-pasted the video file name to the subtitles file name, to make sure they both have the same name, and tried to play the video file.
Subtitles did not work.
I've tried force-refreshing the library, tried resetting my server, my client, my PC.
Nothing helped.
Serviio kept playing the file without the subtitles.

Eventually, what I did do is, I've renamed both files, causing Serviio to treat this video file as if it was new.
Serviio played video file with subtitles.
I thought perhaps there was a problem with the file names (as they were very long),
So I've restored the original file names to both the video and the subtitle,
Serviio still plays the video file with subtitles.
I'm not using transcoding, so it can't be an issue of 'old'/cached transcoded file, the was transcoded without subtitles.



Anyway, it seems to me that for some reason Serviio had failed to detect the change in that monitored directory, so it wasn't aware that a subtitle had been added.

Not a big issue,
But thought perhaps I might be able to share information that could help in future releases.

Do you need any more details/information?


Cheers.

Re: Bug Report: Serviio not detecting added srt file

PostPosted: Wed Jul 05, 2017 11:05 am
by DenyAll
I'm not at home so a cant be specific, but their is a setting in Serviio Console regarding updating existing files. Is yours checked?

Re: Bug Report: Serviio not detecting added srt file

PostPosted: Thu Jul 06, 2017 8:04 pm
by ami289
DenyAll wrote:I'm not at home so a cant be specific, but their is a setting in Serviio Console regarding updating existing files. Is yours checked?


If you refer to 'Automatic Library Refresh', it is on mate.

Re: Bug Report: Serviio not detecting added srt file

PostPosted: Thu Jul 06, 2017 8:54 pm
by DenyAll
What about the "Search for updates for currently shared files" setting above it. Otherwise I'll test when I get home on the weekend.

Re: Bug Report: Serviio not detecting added srt file

PostPosted: Fri Jul 07, 2017 6:47 am
by ami289
DenyAll wrote:What about the "Search for updates for currently shared files" setting above it. Otherwise I'll test when I get home on the weekend.


On as well.

Re: Bug Report: Serviio not detecting added srt file

PostPosted: Sun Jul 09, 2017 12:22 am
by freaknik
Is it named the same as the file it goes with? On mine it has to be

somefile.avi
somefile.srt

good luck

Re: Bug Report: Serviio not detecting added srt file

PostPosted: Sun Jul 16, 2017 5:49 pm
by zip
subtitles are looked for at playback time, so name change doesn't have to be registered anywhere.

Re: Bug Report: Serviio not detecting added srt file

PostPosted: Sat Jul 29, 2017 12:41 am
by ami289
zip wrote:subtitles are looked for at playback time, so name change doesn't have to be registered anywhere.


Kinda late reply, but I was away for a while.

Well, obviously this is not the case for me,
But I've noticed that you've mentioned 'fixed detection and displaying of Hebrew subtitles' in version 1.9 changelog.

Maybe this was related somehow.

Anyway,
I'll try the new version and report back if I still encounter the same situation.


Thanks.

Re: Bug Report: Serviio not detecting added srt file

PostPosted: Sat Aug 12, 2017 3:58 pm
by ami289
Hey guys,

Just wanted to report that this issue is not resolved in version 1.9

I could easily reproduce it if needed.

Will debug logs help?

Re: Bug Report: Serviio not detecting added srt file

PostPosted: Tue Aug 15, 2017 12:16 pm
by zip
yes, thanks

Re: Bug Report: Serviio not detecting added srt file

PostPosted: Sat Sep 09, 2017 6:01 pm
by ami289
Sorry for the late reply,
I was away for a while.

Anyway, here is what I did-
1) Added the movie 'The Mummy' to my library.
2) Played it without subtitles.
3) About a day later, added subtitles file (made sure that file names are match).
4) Played the movie - Subtitles weren't detected.
5) Changed the folder name (added '11111' at the end), so Serviio will recognize it as new folder, and re-scan it.
6) Played the movie again - Subtitles worked flawlessly.


Untouched log file is attached.


Cheers.

Re: Bug Report: Serviio not detecting added srt file

PostPosted: Sun Sep 10, 2017 4:22 pm
by zip
Thanks, it looks like the response is cached and a new subtitle file doesn't invalidate the cache.

Created a ticket: https://bitbucket.org/xnejp03/serviio/i ... -to-cached

Re: Bug Report: Serviio not detecting added srt file

PostPosted: Sun Sep 10, 2017 6:17 pm
by zip
.. and fixed

Re: Bug Report: Serviio not detecting added srt file

PostPosted: Sun Sep 10, 2017 10:31 pm
by atc98092
zip wrote:.. and fixed


Sounds like you're getting close to a new beta. Or did you just update the available 1.9 install file?

Re: Bug Report: Serviio not detecting added srt file

PostPosted: Mon Sep 11, 2017 6:20 am
by ami289
Man, you are quick!

Keep up the awesome work!

Thank you.