diff --git a/mirva/__init__.py b/mirva/__init__.py index ccd7f8b..89d320b 100644 --- a/mirva/__init__.py +++ b/mirva/__init__.py @@ -1,4 +1,4 @@ -__version__ = "20220607.0" +__version__ = "20220823.0" def get_version(): diff --git a/mirva/mirva.py b/mirva/mirva.py index 8b9d042..02c1fd5 100755 --- a/mirva/mirva.py +++ b/mirva/mirva.py @@ -5,6 +5,7 @@ import re import shutil import subprocess import random +import urllib.parse from argparse import ArgumentParser, HelpFormatter from mirva import get_version @@ -283,7 +284,7 @@ Released : 20110306 ) def get_post(self, image, title, content): - + image = urllib.parse.quote(image) if self.video_match.match(image): return """
@@ -478,4 +479,4 @@ class SmartFormatter(HelpFormatter): def _split_lines(self, help, width): if help.startswith("smart|"): return help[6:].splitlines() - return HelpFormatter._split_lines(self, help, width) \ No newline at end of file + return HelpFormatter._split_lines(self, help, width)