This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
youtube-dl
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
1.1k
Wiki
Activity
Browse Source
[utils] Add base36 for use in Vidzi
totalwebcasting
Yen Chi Hsuan
9 years ago
parent
d1e440a4a1
commit
481888294d
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
youtube_dl/utils.py
+ 4
- 0
youtube_dl/utils.py
View File
@ -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
'
)
Write
Preview
Loading…
Cancel
Save