jazzband / django-embed-video

Django app for easy embedding YouTube and Vimeo videos and music from SoundCloud.
http://django-embed-video.rtfd.org
MIT License
382 stars 135 forks source link

Adding support for Vimeo channels (eg. Staff picks) #47

Closed fertringer closed 9 years ago

fertringer commented 9 years ago

I noticed the featured videos on Vimeo's home page tend to be "staff picks", which have a different url structure, probably to give some extra context to the view that renders the video. These videos can also be accessed through the more traditional url path, but because the staffpicks links are on the home page, I am concerned my users will be trying to paste in what they think are valid video urls, only to have them failing.

This adjusted regex is a bit aggressive, allowing for other channels to host videos (currently I don't believe any do, but they might if the staff picks are able to), so that could be tweaked.