mirror of
https://github.com/hexbinoct/youtube-dlc.git
synced 2025-05-04 08:33:04 +00:00
[utils] Add base36 for use in Vidzi
This commit is contained in:
@@ -2631,5 +2631,9 @@ def base_n(num, n, table):
|
||||
return ret
|
||||
|
||||
|
||||
def base36(num):
|
||||
return base_n(num, 36, '0123456789abcdefghijklmnopqrstuvwxyz')
|
||||
|
||||
|
||||
def base62(num):
|
||||
return base_n(num, 62, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ')
|
||||
|
||||
Reference in New Issue
Block a user