mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-04-24 15:01:36 +00:00
Prepare for new function
This commit is contained in:
@@ -78,6 +78,13 @@ def main():
|
|||||||
dest="template",
|
dest="template",
|
||||||
default=None,
|
default=None,
|
||||||
help="Path to custom HTML template")
|
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()
|
(options, args) = parser.parse_args()
|
||||||
|
|
||||||
if options.android and options.iphone:
|
if options.android and options.iphone:
|
||||||
|
|||||||
@@ -427,7 +427,7 @@ def vcard(db, data):
|
|||||||
print(f"Gathering vCards...({index + 1}/{total_row_number})", end="\r")
|
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:
|
if template is None:
|
||||||
template_dir = os.path.dirname(__file__)
|
template_dir = os.path.dirname(__file__)
|
||||||
template_file = "whatsapp.html"
|
template_file = "whatsapp.html"
|
||||||
|
|||||||
@@ -230,7 +230,7 @@ def vcard(db, data):
|
|||||||
print(f"Gathering vCards...({index + 1}/{total_row_number})", end="\r")
|
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:
|
if template is None:
|
||||||
template_dir = os.path.dirname(__file__)
|
template_dir = os.path.dirname(__file__)
|
||||||
template_file = "whatsapp.html"
|
template_file = "whatsapp.html"
|
||||||
|
|||||||
Reference in New Issue
Block a user