mirror of https://gitlab.com/bashrc2/epicyon
Video separator
parent
4437256908
commit
3f1754e518
|
@ -43,8 +43,8 @@ def _add_embedded_video_from_sites(translate: {}, content: str,
|
||||||
if '<' in url:
|
if '<' in url:
|
||||||
url = url.split('<')[0]
|
url = url.split('<')[0]
|
||||||
if '/video/' in url:
|
if '/video/' in url:
|
||||||
channel = url.split('/')[0]
|
channel = url.split('/video/')[0]
|
||||||
video_id = url.split('/')[1]
|
video_id = url.split('/video/')[1]
|
||||||
if '?' in video_id:
|
if '?' in video_id:
|
||||||
video_id = video_id.split('?')[0]
|
video_id = video_id.split('?')[0]
|
||||||
content += \
|
content += \
|
||||||
|
|
Loading…
Reference in New Issue