mirror of
https://github.com/RicterZ/nhentai.git
synced 2025-04-30 00:00:48 +02:00
0.4.0
This commit is contained in:
parent
946761477d
commit
7508a2010d
@ -1,3 +1,3 @@
|
|||||||
__version__ = '0.3.9'
|
__version__ = '0.4.0'
|
||||||
__author__ = 'RicterZ'
|
__author__ = 'RicterZ'
|
||||||
__email__ = 'ricterzheng@gmail.com'
|
__email__ = 'ricterzheng@gmail.com'
|
||||||
|
@ -233,6 +233,9 @@ and append a file extension like '.txt', so I avoid the potential of using
|
|||||||
an invalid filename.
|
an invalid filename.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
return s
|
||||||
|
|
||||||
|
# maybe you can use `--format` to select a suitable filename
|
||||||
valid_chars = "-_.()[] %s%s" % (string.ascii_letters, string.digits)
|
valid_chars = "-_.()[] %s%s" % (string.ascii_letters, string.digits)
|
||||||
filename = ''.join(c for c in s if c in valid_chars)
|
filename = ''.join(c for c in s if c in valid_chars)
|
||||||
if len(filename) > 100:
|
if len(filename) > 100:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user