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

Showing error #152

Closed abhishekgoyal-a11y closed 1 month ago

abhishekgoyal-a11y commented 3 years ago

Showing error

Backend wasn't recognised (``) Traceback (most recent call last): File "C:\Python38\lib\site-packages\embed_video\templatetags\embed_video_tags.py", line 117, in render return self.embed(url, size, context=context, options) File "C:\Python38\lib\site-packages\embed_video\templatetags\embed_video_tags.py", line 196, in embed backend = cls.get_backend(url, context=context, options) File "C:\Python38\lib\site-packages\embed_video\templatetags\embed_video_tags.py", line 174, in get_backend else detect_backend(str(backend_or_url)) File "C:\Python38\lib\site-packages\embed_video\backends.py", line 64, in detect_backend raise UnknownBackendException embed_video.backends.UnknownBackendException

Lifechess commented 3 years ago

I'm curious about this issue too, i got the same error?

mgrdcm commented 3 years ago

@abhishekgoyal-a11y and @Lifechess can you include the URL that you're trying to load via django-embed-video please?

Lifechess commented 3 years ago

https://www.youtube.com/watch?v=CYAHqNWLiq0

paulr2021 commented 2 years ago

Have installed version 1.4.1 today, also getting same error as above.

[07/Jan/2022 16:21:06] "GET / HTTP/1.1" 200 3615 Backend wasn't recognised (``) Traceback (most recent call last): File "/Users/paulr/PycharmProjects/django-cms/venv/lib/python3.9/site-packages/embed_video/templatetags/embed_video_tags.py", line 118, in render backend = self.get_backend(url, context=context, **options) File "/Users/paulr/PycharmProjects/django-cms/venv/lib/python3.9/site-packages/embed_video/templatetags/embed_video_tags.py", line 174, in get_backend else detect_backend(str(backend_or_url)) File "/Users/paulr/PycharmProjects/django-cms/venv/lib/python3.9/site-packages/embed_video/backends.py", line 64, in detect_backend raise UnknownBackendException embed_video.backends.UnknownBackendException

The URL used in this case is: https://docs.cypress.io/_nuxt/videos/empty-file-30fps.a1a72ed.mp4 Also updated the model and template as per: https://pypi.org/project/django-embed-video/