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

UrlStore: add blocking convenience function around get_download_urls() #109

Open
adbar opened this issue Aug 15, 2024 · 0 comments
Open

Comments

@adbar
Copy link
Owner

adbar commented Aug 15, 2024

In order to facilitate the generation of download lists, add a function to the store along those lines: repeated calls to get_download_urls() until there are no more URLs to download.

while True:
    bufferlist = self.get_download_urls()
    if bufferlist or self.done:
        break
    sleep(sleep_time)
return bufferlist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant