forked from MarseyWorld/MarseyWorld
make a comment like this embed https://rdrama.net/h/countryclub/post/207073/-/5059583#context
parent
e0dc797ac8
commit
20f2db34e9
|
@ -195,7 +195,7 @@ subreddit_name_regex = re.compile('\w{2,25}', flags=re.A)
|
|||
###YOUTUBE
|
||||
|
||||
#sanitize
|
||||
youtube_regex = re.compile('<a href="(https:\/\/youtube\.com\/watch\?v=[\w-]{11}[\w&;=]*)" rel="nofollow noopener" target="_blank">https:\/\/youtube\.com\/watch\?v=[\w-]{11}[\w&;=]*<\/a>' + NOT_IN_CODE_OR_LINKS, flags=re.I|re.A)
|
||||
youtube_regex = re.compile('<a href="(https:\/\/youtube\.com\/watch\?v=[\w-]{11}[\w&;=]*)" rel="nofollow noopener" target="_blank">(https:\/\/)?youtube\.com\/watch\?v=[\w-]{11}[\w&;=]*<\/a>' + NOT_IN_CODE_OR_LINKS, flags=re.I|re.A)
|
||||
|
||||
#sanitize and song
|
||||
yt_id_regex = re.compile('[\w-]{11}', flags=re.A)
|
||||
|
|
Loading…
Reference in New Issue