How is this agent triggered? Only on adding new files or will it also search at specific interval? Usually subtitles are not available at the time I download tv series but maybe a week later or so.
This agent is triggered when a new file is added or a refresh is triggered in the Plex client. This is default metadata agent behavior.
I can imagine you want to keep searching for best matching subtitles. There are multiple ways to do this. But they would all require a metadata refresh from Plex.
The best way I think there is, is to use Plex Media Scanner and schedule it to refresh a certain section of your library. See the article on the Plex website: https://support.plex.tv/hc/en-us/articles/201242707-Plex-Media-Scanner-via-Command-Line
Please be aware that the subliminal agent can be configured to include/exclude embedded and external subtitles in the search. When existing subtitles are present, no providers will be searched for subtitles (given that they provide the right language). If you want to have subtitles as soon as they become available, this is going to work. If you want to update subtitles and download better matching ones, then you should disable these settings. Subliminal caches the download results so whenever you re-download a file, you are not going to hit the subtitle provider site. But be aware that certain providers might block users/IP when a lot of downloads take place. With a full library refresh, this could become an issue.
Using other methods (such as running Subliminal standalone on a scheduled interval) would still require you to refresh metadata, using Local Media plugin, to make sure Plex Media Server picks up the new subtitles.
Ps. what do you guys think, is the best minimum score to download ? maybe around 80 ?
I just figured out that for episodes a setting of 0-71 is recommended and for movies a setting of 0-31 is recommended. So this is a problem because the Preferences currently only support one setting both for movies and for series. So I created an issue on github to resolve this somehow.
But I think the value should be somewhat lower, if you look at the debug logs of the plugin you can see what matches are found and which of the subtitle is chosen.
You can find the following statements in the logfile:
INFO (logkit:16) - subliminal.subtitle: Computed score 74 with matches set([u'series', u'year', u'episode', u'hash', u'season'])
And the subtitle that will be downloaded can be found with a statement looking like this:
INFO (logkit:16) - subliminal.api: Downloading subtitle with score 74
A subtitle which is matched using a hash for OpenSubtitles has a score of 74, without hash I can see a value of 60.
So I suggest you take a look at the values in your logfile and find a good minimum setting based on the result you get.