-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Fix for bug Blades/BLD-152 #296
Fix for bug Blades/BLD-152 #296
Conversation
'youtube_streams': self.youtube_streams, | ||
# render_template() converts Python None to string 'None'. Front-end expects an empty string, or | ||
# a properly formatted string with YouTube IDs. We will return an empty string instead of 'None'. | ||
'youtube_streams': self.youtube_streams if self.youtube_streams else '', |
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.
Another alternative is to use self.youtube_streams = xmltree.get('youtube', '') in line 73.
@valera-rozuvan you should have one more person review the PR |
@jmclaus Can you please review? |
👍 , as soon as Carlos recommendations will be implemented |
@valera-rozuvan Only Python code, I shouldn't be a reviewer. @auraz is a better choice. |
👍 |
…bute Fix for bug Blades/BLD-152
mattdrayer/api-org-migration: Moved api_manager data migration work to o...
…urse closed course can cancel from dashboard(#244)
Merge pull request openedx#296 from Yasui-ks/develop/cypress/closedcourse
Original problem (including description from https://edx-wiki.atlassian.net/browse/BLD-152 ):
If I remove the youtube attribute of the videoalpha player, I get an error from youtube rather than failing over to the other videos that I have provided.
The fix is basically making sure that either an empty string is passed or a correctly formated string of YouTube IDs.
@rocha Please review.