-
Notifications
You must be signed in to change notification settings - Fork 4
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
Download: Add a stage to import all channels #580
Download: Add a stage to import all channels #580
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a good first approach, as long as the extra collections is not a ridiculous download like Khan channel metadata.
4e40d5f
to
942406c
Compare
I made a small change here based on our talk earlier, so the progress bar updates correctly as additional channels are downloaded (and that part of the operation is between 90% and 100%). It could do with another quick look to be sure it's still all right :) |
elif self._stage == DownloadStage.COMPLETED: | ||
progress = 1 | ||
progress = PROGRESS_STEPS["completed"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
def _get_channel_ids_for_all_content_manifests(): | ||
channel_ids = set() | ||
for content_manifest in _content_manifests: | ||
channel_ids.update(content_manifest.get_channel_ids()) | ||
return channel_ids |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
After the `APPLYING_EXTERNAL_TAGS` stage, the DownloadManager will enter a new `IMPORTING_EXTRA_CHANNELS` stage. In this stage, it should download metadata for any channels which are listed in another content collection. Issue #548
16afe2b
to
6041906
Compare
Thanks for reviewing, @manuq! I'll go ahead and merge this now :) |
Available in Ladybird 6.8-338 |
After the
APPLYING_EXTERNAL_TAGS
stage, the DownloadManager will enter a newIMPORTING_EXTRA_CHANNELS
stage. In this stage, it should download metadata for any channels which are listed in another content collection.Issue #548
The parent issue here wants this stage to happen in the background, and I took a look at that in #579. But I think there's some overlap with #568, so I'm opting for something quick and dirty in this pull request and we can deal with downloading channel metadata in the background separately.