2016-12-05, 13:21
(2016-12-05, 13:07)incubus Wrote:Sounds interesting, I'll have a look(2016-12-04, 19:40)DaLanik Wrote: It is ONLY monitoring temp folder, I thought it is default.... You play a movie, open subtitles download addon (i.e. opensubtitles.org) and it downloads subs to it's own folder and copies to TEMP. This is where I catch 'em and clean 'em
Ok I got it.
Well I may be wrong but :
For now you detect when the subtitles download window is opened/closed and start a timer to monitor added files in the temp folder and when there is a new file and it's a subtitle you clean it.
Why not getting the subtitle filename using player.getSubtitles() ? If it works you would not need to monitor the temp folder and, as a bonus, you could clean a subtitle file anywhere as you know where it is.
What do you think ?
Sent from my GT-N7100