url quote

This commit is contained in:
2022-08-23 12:56:26 +03:00
parent f311b97d37
commit fa78ad22e6
2 changed files with 4 additions and 3 deletions

View File

@@ -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 """
<div class="post">
@@ -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)
return HelpFormatter._split_lines(self, help, width)