mirror of https://gitlab.com/bashrc2/epicyon
Snake case
parent
a711a29dbd
commit
ad4b988f4c
2
utils.py
2
utils.py
|
@ -2933,7 +2933,7 @@ def getPortFromDomain(domain: str) -> int:
|
|||
return None
|
||||
|
||||
|
||||
def validUrlPrefix(url: str) -> bool:
|
||||
def valid_url_prefix(url: str) -> bool:
|
||||
"""Does the given url have a valid prefix?
|
||||
"""
|
||||
if '/' not in url:
|
||||
|
|
|
@ -8,7 +8,7 @@ __status__ = "Production"
|
|||
__module_group__ = "Timeline"
|
||||
|
||||
import os
|
||||
from utils import validUrlPrefix
|
||||
from utils import valid_url_prefix
|
||||
|
||||
|
||||
def loadPeertubeInstances(base_dir: str, peertube_instances: []) -> None:
|
||||
|
@ -190,7 +190,7 @@ def _addEmbeddedAudio(translate: {}, content: str) -> str:
|
|||
if not w.endswith(extension):
|
||||
continue
|
||||
|
||||
if not validUrlPrefix(w):
|
||||
if not valid_url_prefix(w):
|
||||
continue
|
||||
content += \
|
||||
'<center>\n<audio controls>\n' + \
|
||||
|
@ -231,7 +231,7 @@ def _addEmbeddedVideo(translate: {}, content: str) -> str:
|
|||
w = w[:-1]
|
||||
if not w.endswith(extension):
|
||||
continue
|
||||
if not validUrlPrefix(w):
|
||||
if not valid_url_prefix(w):
|
||||
continue
|
||||
content += \
|
||||
'<center><figure id="videoContainer" ' + \
|
||||
|
|
Loading…
Reference in New Issue