longer scroll timer

This commit is contained in:
Q
2023-09-28 08:50:04 +03:00
parent eb698f244f
commit 3f69c63638
4 changed files with 17 additions and 23 deletions

View File

@@ -14,7 +14,6 @@ from tqdm import tqdm
class Mirva:
def __init__(self):
self.resource_src = os.path.join(
os.path.dirname(os.path.abspath(__file__)), "resources"
)
@@ -52,7 +51,6 @@ class Mirva:
self.file_list = self.get_files()
if self.run_commands["config"]:
self.write_resources()
updated = self.create_config()
if updated:
@@ -70,7 +68,6 @@ class Mirva:
print("Gallery written.")
def create_config(self):
self.config = configparser.RawConfigParser()
self.config.read(self.config_file)
config_changed = False
@@ -119,7 +116,6 @@ class Mirva:
return config_changed
def create_posts(self):
self.posts = []
for c in self.config:
if c in self.file_list:
@@ -219,7 +215,6 @@ class Mirva:
}
def get_index(self, posts):
return """<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by TEMPLATED
@@ -314,7 +309,6 @@ Released : 20110306
)
def is_created_with_mirva(self):
with open("index.html", "rt") as fp:
for line in fp.readlines():
if line.strip() == '<meta name="generator" content="Mirva" />':
@@ -322,7 +316,6 @@ Released : 20110306
return False
def write_index(self):
if os.path.exists("index.html"):
if not self.is_created_with_mirva():
print(
@@ -334,7 +327,6 @@ Released : 20110306
fp.write(self.get_index(self.posts))
def write_resources(self):
try:
os.makedirs(self.resource_dir)
except Exception:
@@ -383,7 +375,6 @@ Released : 20110306
)
def write_mediums(self):
try:
os.makedirs(self.medium_dir)
except Exception: