Sometimes the video url may look like 'http://abc.com/path/video.mp4?xxxx'. (For example, the Windows Azure's media service will offer such type of url.) The original code in video_module.py will produce 'mp4?xxxx' instead of 'mp4' as the extension of a filename for such type of url, and therefore the video will be non-playable. The fix here uses the built-in urlparse module to retrive only the path component from a url and therefore the extension 'mp4' will be correctly fetched.
Name |
Last commit
|
Last update |
---|---|---|
.tx | Loading commit data... | |
cms | Loading commit data... | |
common | Loading commit data... | |
conf/locale | Loading commit data... | |
docs | Loading commit data... | |
i18n | Loading commit data... | |
jenkins | Loading commit data... | |
lms | Loading commit data... | |
proxy | Loading commit data... | |
rakelib | Loading commit data... | |
requirements | Loading commit data... | |
scripts | Loading commit data... | |
test_root | Loading commit data... | |
ws_migrations | Loading commit data... | |
.gitattributes | Loading commit data... | |
.gitignore | Loading commit data... | |
.pep8 | Loading commit data... | |
.reviewboardrc | Loading commit data... | |
.ruby-gemset | Loading commit data... | |
.ruby-version | Loading commit data... | |
AUTHORS | Loading commit data... | |
Brewfile | Loading commit data... | |
CHANGELOG.rst | Loading commit data... | |
CONTRIBUTING.rst | Loading commit data... | |
Gemfile | Loading commit data... | |
Gemfile.lock | Loading commit data... | |
LICENSE | Loading commit data... | |
README.md | Loading commit data... | |
manage.py | Loading commit data... | |
mongo_indexes.md | Loading commit data... | |
package.json | Loading commit data... | |
pylintrc | Loading commit data... | |
rakefile | Loading commit data... | |
setup.cfg | Loading commit data... | |
setup.py | Loading commit data... |