]> git.lizzy.rs Git - nhentai.git/commitdiff
0.4.0
authorRicterZ <ricterzheng@gmail.com>
Fri, 26 Jun 2020 05:12:37 +0000 (13:12 +0800)
committerRicterZ <ricterzheng@gmail.com>
Fri, 26 Jun 2020 05:12:37 +0000 (13:12 +0800)
nhentai/__init__.py
nhentai/utils.py

index 14b488fecd6827a649946759b6dd4690ef858c52..e622c47898b954dec72500e3bf3433e12382df9b 100644 (file)
@@ -1,3 +1,3 @@
-__version__ = '0.3.9'
+__version__ = '0.4.0'
 __author__ = 'RicterZ'
 __email__ = 'ricterzheng@gmail.com'
index 779ce2d0b25dfa7ec9d236cb62d8e04f0796bf12..caa925b5982c794e11c5c240d6535f9b383ab245 100644 (file)
@@ -233,6 +233,9 @@ and append a file extension like '.txt', so I avoid the potential of using
 an invalid filename.
 
 """
+    return s
+
+    # maybe you can use `--format` to select a suitable filename
     valid_chars = "-_.()[] %s%s" % (string.ascii_letters, string.digits)
     filename = ''.join(c for c in s if c in valid_chars)
     if len(filename) > 100: