fnp
/
audio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
778bdfb
)
Off by one error.
author
Radek Czajka
<rczajka@rczajka.pl>
Mon, 26 Jun 2023 09:38:35 +0000
(11:38 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Mon, 26 Jun 2023 09:47:22 +0000
(11:47 +0200)
src/youtube/utils.py
patch
|
blob
|
history
diff --git
a/src/youtube/utils.py
b/src/youtube/utils.py
index
d219dde
..
87fcf1a
100644
(file)
--- a/
src/youtube/utils.py
+++ b/
src/youtube/utils.py
@@
-33,9
+33,9
@@
def process_to_file(cmdline, prefix='', suffix='', cache_key=None, output_path=N
if cache_key:
cache_path = cache_key.replace('/', '__')
- if len(cache_path) > 2
55
:
+ if len(cache_path) > 2
00
:
parts = cache_path.rsplit('.', 1)
- limit = 2
55
- 9
+ limit = 2
00
- 9
if len(parts) > 1:
limit -= len(parts[1]) + 1
cache_path = parts[0][:limit] + '.' + hashlib.sha1(cache_key.encode('utf-8')).hexdigest()[:8]