UMS Subs Cache

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
User avatar
Madoka
Posts: 329
Joined: Fri Jun 01, 2012 12:51 pm

UMS Subs Cache

Post by Madoka »

I recently had an .srt file that had an inadvertent control character which prevented FFmpeg from resuming the file. It played fine from the beginning the first time, but subsequent plays resulted in a -1 error, IIRC. So, I was looking around and noticed the subs folder in the UMS folder in program data. As everything I watch needs subtitles, there were a lot of of subtitle files in there, some of which seemed to be converted from the .srt files.

I was wondering if UMS automatically empties this folder or will the subtitles files keep building up? Not a real problem, as they are tiny files; just wondering is there is automatic housekeeping.

Thanks.

PS. Closing UMS, emptying the subs folder, and restarting UMS did fix the above problem. As did tracking down the offending control character and nuking it (although I didn't know that was the problem initially).
User avatar
SharkHunter
Developer
Posts: 648
Joined: Fri Jun 01, 2012 9:36 pm

Re: UMS Subs Cache

Post by SharkHunter »

UMS should clean that dir. A file should be cleared after a week (or so) if it works as it should.
Edit 2 weeks it is.
In your UMS data dir (where you find UMS.conf) there should be a file called UMS.tmpmgr.
Take a look at that. If it isn't there I think there is a bug
We reject: kings, presidents and voting.
We believe in: rough consensus and running code.
User avatar
SharkHunter
Developer
Posts: 648
Joined: Fri Jun 01, 2012 9:36 pm

Re: UMS Subs Cache

Post by SharkHunter »

You should look in the code before speaking.
2 weeks is the default value for the cleaning. However if the srt is converted to ASS (which sometimes happens) it is given a clean time of 30 days (30*24*3600 seconds).
How many files do you have that's older than a month?
We reject: kings, presidents and voting.
We believe in: rough consensus and running code.
User avatar
Madoka
Posts: 329
Joined: Fri Jun 01, 2012 12:51 pm

Re: UMS Subs Cache

Post by Madoka »

I deleted everything already, but I don't think there were any files over one month old. Now that I know there's automatic housekeeping, I'm good.

I did have another question. I noticed that there were several files with the same basic name with the end of the name with different numbers/letters (can't remember exactly). Are the cache files reused if you replay a file? Sometimes I fix grammar and typos in subtitles files as I watch and reload the new file. Is that why there are multiple files for the same show? I guess that's 2 questions.

Thanks.
User avatar
SharkHunter
Developer
Posts: 648
Joined: Fri Jun 01, 2012 9:36 pm

Re: UMS Subs Cache

Post by SharkHunter »

Normally the subs are reused (I hope) and if you change the file a new one should get a new one. Do you fetch the subs yourself and put them in the same dir as the video or do you use the "LiveSubtile" stuff. If the latter the filenames are unreadable :)
We reject: kings, presidents and voting.
We believe in: rough consensus and running code.
User avatar
Madoka
Posts: 329
Joined: Fri Jun 01, 2012 12:51 pm

Re: UMS Subs Cache

Post by Madoka »

I get my subtitles myself and put them in the same folder.

Thanks for your explanations.
Post Reply