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
383 stars 137 forks source link

Added basic support to Pornhub Video Embedding #99

Closed nicolochiellini closed 5 years ago

nicolochiellini commented 5 years ago

I have added a basic support to Pornhub Video Embedding. No Thumbnail available but Embed URL and Video Size are present. Just add PornhubBackend to EMBED_VIDEO_BACKENDS

aleksihakli commented 5 years ago

Hello @nicolochiellini, and thank you for your contribution!

I think that this backend would best be suited to be developed as a separate application, since that would allow for more flexibility and open mindedness as compared to merging it to the core django-embed-video project.

The django-embed-video API enables you to easily integrate this into the video setup from a separate Django application, just add the backend into the EMBED_VIDEO_BACKENDS iterable in your Django project settings.

https://django-embed-video.readthedocs.io/en/v1.2.0/examples.html#custom-backends