forked from rDrama/rDrama
1
0
Fork 0

fix playlist embedding

master
Aevann 2024-02-07 05:14:50 +02:00
parent 1e4071a171
commit 45c1726dde
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,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)