1
0
Fork 0

#30 [mildom] Add extractor

Authored by @nao20010128nao
This commit is contained in:
The Hatsune Daishi 2021-01-22 22:43:30 +09:00 committed by GitHub
commit ffcb819171
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 296 additions and 0 deletions

View file

@ -5863,3 +5863,10 @@ def clean_podcast_url(url):
st\.fm # https://podsights.com/docs/
)/e
)/''', '', url)
_HEX_TABLE = '0123456789abcdef'
def random_uuidv4():
return re.sub(r'[xy]', lambda x: _HEX_TABLE[random.randint(0, 15)], 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx')