-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Update the get_transcript util with html5_sources #17976
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
Update the get_transcript util with html5_sources #17976
Conversation
|
Your PR has finished running tests. |
81d69e3 to
ec00c22
Compare
|
Your PR has finished running tests. |
1 similar comment
|
Your PR has finished running tests. |
f2b499e to
82d0968
Compare
c07d57a to
f5f2b19
Compare
|
Your PR has finished running tests. |
1 similar comment
|
Your PR has finished running tests. |
a24eb23 to
a28b9bb
Compare
|
Your PR has finished running tests. |
82d0968 to
d5758bd
Compare
a28b9bb to
e0cbe78
Compare
|
Your PR has finished running tests. |
|
jenkins run all |
|
Your PR has finished running tests. |
muhammad-ammar
left a comment
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.
LGTM 👍 just one minor comment
| except KeyError: | ||
| raise NotFoundError | ||
| possible_sub_ids = [youtube_id, sub, video.youtube_id_1_0] + get_html5_ids(video.html5_sources) | ||
| for sub_id in possible_sub_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.
what about for sub_id in set(possible_sub_ids): to avoid duplicates?
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.
set reorders the element in ascending order which is what we don't want.
e0cbe78 to
b181e6b
Compare
|
jenkins run all |
|
Your PR has finished running tests. |
1 similar comment
|
Your PR has finished running tests. |
|
jenkins run all |
|
Your PR has finished running tests. |
1 similar comment
|
Your PR has finished running tests. |
|
jenkins run bokchoy |
|
jenkins run quality |
|
jenkins run python |
|
Your PR has finished running tests. |
|
jenkins run python |
|
Your PR has finished running tests. |
2 similar comments
|
Your PR has finished running tests. |
|
Your PR has finished running tests. |
|
jenkins run bokchoy |
|
jenkins run python |
1 similar comment
|
jenkins run python |
|
jenkins run bokchoy |
|
Your PR has finished running tests. |
|
@mushtaqak build passed and green |
|
Your PR has finished running tests. |
Update the get_transcript util with html5_sources
EDUCATOR-2746