Prepare for new function

This commit is contained in:
KnugiHK
2022-03-04 14:03:15 +08:00
parent e4c9d42927
commit 28c4a7b99f
3 changed files with 9 additions and 2 deletions

View File

@@ -78,6 +78,13 @@ def main():
dest="template",
default=None,
help="Path to custom HTML template")
parser.add_option(
"-e",
"--embedded",
dest="embedded",
default=False,
action='store_true',
help="Embed media into HTML file")
(options, args) = parser.parse_args()
if options.android and options.iphone:

View File

@@ -427,7 +427,7 @@ def vcard(db, data):
print(f"Gathering vCards...({index + 1}/{total_row_number})", end="\r")
def create_html(data, output_folder, template=None):
def create_html(data, output_folder, template=None, embedded=False):
if template is None:
template_dir = os.path.dirname(__file__)
template_file = "whatsapp.html"

View File

@@ -230,7 +230,7 @@ def vcard(db, data):
print(f"Gathering vCards...({index + 1}/{total_row_number})", end="\r")
def create_html(data, output_folder, template=None):
def create_html(data, output_folder, template=None, embedded=False):
if template is None:
template_dir = os.path.dirname(__file__)
template_file = "whatsapp.html"