Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

periodically re-index/watch for changes #4

Open
Ivshti opened this issue Jun 1, 2018 · 1 comment
Open

periodically re-index/watch for changes #4

Ivshti opened this issue Jun 1, 2018 · 1 comment
Assignees

Comments

@Ivshti
Copy link
Member

Ivshti commented Jun 1, 2018

for unix, this can be done via fs.watch

for mac, there is a mdfind flag we can use

for windows, god knows

@Ivshti
Copy link
Member Author

Ivshti commented Jul 15, 2018

alternatively we can just re-do the entire scan every 24 hours, which seems to be much more reasonable

however, we'd be missing use cases like downloading content and having it detected immediately, but there's no way in the addon protocol to make stremio refresh the results anyway

just for the local add-on we can just re-poll the result of /catalog/* every 60 seconds or so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants