Is there some way to avoid using the cache when using suball?
I am always first manually clearing the cache.
How does caching affect the suball script?
Re: Avoid Using Cache?
Please don't clear the cache unnecessarily. The cache just makes sure that you can't do the same request more than once per day.
If you call suball once per day, you will always get fresh results. If you call suball multiple times per day on the same files then you're you're just being excessive, and with -clear-cache before every call you're also abusing OpenSubtitles and risk getting banned.
You might want to consider using something like --def minAgeDays=0.5 to make sure you're not trying to search for subtitles too early.
If you call suball once per day, you will always get fresh results. If you call suball multiple times per day on the same files then you're you're just being excessive, and with -clear-cache before every call you're also abusing OpenSubtitles and risk getting banned.
You might want to consider using something like --def minAgeDays=0.5 to make sure you're not trying to search for subtitles too early.
Re: How does caching affect the suball script?
1. I usually run suball on several subdirectories once/day. However, sometimes I need to just repeat it for a single subdirectory (with a single media file) and I cannot get any results because of the cache.
2. If I use --def minAgeDays=0.5 wouldn't that still limit my results to once/day because of the cache?
2. If I use --def minAgeDays=0.5 wouldn't that still limit my results to once/day because of the cache?
Re: How does caching affect the suball script?
Problem:
6:00: download files
6:00: try to download subtitles, no results (no new results until 6:00 next day)
9:00: subtitles are published, bad luck, you already used your chance for today (so you won't find them at this point in time)
Solution:
6:00: download files
9:00: subtitles are published
18:00: try to fetch subtitles, lucky you, you found subtitles (no new results until 18:00 next day, but who cares, you got what you wanted)
Be reminded that caching ALWAYS gives you fresh results if you haven't made that exact request within the last 24h hours. If you search for A now, and a few hours later B, and then C a few seconds later, then you well get the latest results for each request at the time.
Caching does not stop you from getting the latest results, it stops you from getting the latest results multiple times per day.
6:00: download files
6:00: try to download subtitles, no results (no new results until 6:00 next day)
9:00: subtitles are published, bad luck, you already used your chance for today (so you won't find them at this point in time)
Solution:
6:00: download files
9:00: subtitles are published
18:00: try to fetch subtitles, lucky you, you found subtitles (no new results until 18:00 next day, but who cares, you got what you wanted)
Be reminded that caching ALWAYS gives you fresh results if you haven't made that exact request within the last 24h hours. If you search for A now, and a few hours later B, and then C a few seconds later, then you well get the latest results for each request at the time.
Caching does not stop you from getting the latest results, it stops you from getting the latest results multiple times per day.
Re: How does caching affect the suball script?
Problem:
3/22 at 22:00 Download file
3/23 at 21:00 Try to download subtitles (I wanted to watch the show while having late dinner); Nothing available
3/24 at 20:00 Try to download subtitles again. Oops nothing available because of the cache. I wanted to watch the show when having normal dinner. Now I need to postpone my dinner until after 21:00
Solution:
3/22 at 22:00 Download file
3/23 at 21:00 Try to download subtitles (I wanted to watch the show while having late dinner); Nothing availablee
3/24 at 19:59 clear cache
3/24 at 20:00 Try to download subtitles again. Yes! Available because I cleared the cache. I can have dinner now
3/22 at 22:00 Download file
3/23 at 21:00 Try to download subtitles (I wanted to watch the show while having late dinner); Nothing available
3/24 at 20:00 Try to download subtitles again. Oops nothing available because of the cache. I wanted to watch the show when having normal dinner. Now I need to postpone my dinner until after 21:00

Solution:
3/22 at 22:00 Download file
3/23 at 21:00 Try to download subtitles (I wanted to watch the show while having late dinner); Nothing availablee
3/24 at 19:59 clear cache
3/24 at 20:00 Try to download subtitles again. Yes! Available because I cleared the cache. I can have dinner now

Re: How does caching affect the suball script?
Call your script every day at exactly 19:00 then. That'd allow for early dinner as well. 

Re: How does caching affect the suball script?
Actually, I need to run it manually at a time when I am not using the computer (I am using the suball script within another script using Automate software).rednoah wrote:Call your script every day at exactly 19:00 then. That'd allow for early dinner as well.
Re: How does caching affect the suball script?
Alright, the caches now use odd times, 18 hours instead 24 hours / 12 days instead of 14 days / etc to account for minor time offsets.
Re: How does caching affect the suball script?
OK. Thanks!rednoah wrote:Alright, the caches now use odd times, 18 hours instead 24 hours / 12 days instead of 14 days / etc to account for minor time offsets.
What is the 12/14 day cache used for?
Do I need to download the latest version, filebot-4.6.2-r3768-sub.jar, for this?
Re: How does caching affect the suball script?
1.
The latest revision should be fine.
See commit log:
https://sourceforge.net/p/filebot/code/commit_browser
2.
Caching is used for many things. The 2 week caches should be used for AniDB and TheTVDB and probably a few other things.
The latest revision should be fine.
See commit log:
https://sourceforge.net/p/filebot/code/commit_browser
2.
Caching is used for many things. The 2 week caches should be used for AniDB and TheTVDB and probably a few other things.