mirror of
https://github.com/Hopiu/django-embed-video.git
synced 2026-03-27 10:10:22 +00:00
11 lines
330 B
Python
11 lines
330 B
Python
import re
|
|
|
|
from embed_video.backends import VideoBackend
|
|
|
|
|
|
class CustomBackend(VideoBackend):
|
|
re_detect = re.compile(r'http://myvideo\.com/[0-9]+')
|
|
re_code = re.compile(r'http://myvideo\.com/(?P<code>[0-9]+)')
|
|
|
|
pattern_url = 'http://play.myvideo.com/c/%s/'
|
|
pattern_thumbnail_url = 'http://thumb.myvideo.com/c/%s/'
|