mirror of
https://github.com/fHDHR/fHDHR_NextPVR.git
synced 2025-12-06 08:56:57 -05:00
Move Web Conf
This commit is contained in:
parent
71da17fa45
commit
328320192a
@ -42,6 +42,7 @@ class Config():
|
|||||||
"origin_web": pathlib.Path(origin_dir).joinpath('origin_web'),
|
"origin_web": pathlib.Path(origin_dir).joinpath('origin_web'),
|
||||||
"cache_dir": pathlib.Path(data_dir).joinpath('cache'),
|
"cache_dir": pathlib.Path(data_dir).joinpath('cache'),
|
||||||
"internal_config": pathlib.Path(data_dir).joinpath('internal_config'),
|
"internal_config": pathlib.Path(data_dir).joinpath('internal_config'),
|
||||||
|
"fHDHR_web_dir": fHDHR_web_dir,
|
||||||
"www_dir": www_dir,
|
"www_dir": www_dir,
|
||||||
"www_templates_dir": pathlib.Path(fHDHR_web_dir).joinpath('templates'),
|
"www_templates_dir": pathlib.Path(fHDHR_web_dir).joinpath('templates'),
|
||||||
"font": pathlib.Path(data_dir).joinpath('garamond.ttf'),
|
"font": pathlib.Path(data_dir).joinpath('garamond.ttf'),
|
||||||
@ -52,6 +53,11 @@ class Config():
|
|||||||
if str(conffilepath).endswith(".json"):
|
if str(conffilepath).endswith(".json"):
|
||||||
self.read_json_config(conffilepath)
|
self.read_json_config(conffilepath)
|
||||||
|
|
||||||
|
for file_item in os.listdir(self.internal["paths"]["fHDHR_web_dir"]):
|
||||||
|
file_item_path = pathlib.Path(self.internal["paths"]["fHDHR_web_dir"]).joinpath(file_item)
|
||||||
|
if str(file_item_path).endswith("_conf.json"):
|
||||||
|
self.read_json_config(file_item_path)
|
||||||
|
|
||||||
for dir_type in ["alternative_epg", "origin"]:
|
for dir_type in ["alternative_epg", "origin"]:
|
||||||
|
|
||||||
for file_item in os.listdir(self.internal["paths"][dir_type]):
|
for file_item in os.listdir(self.internal["paths"][dir_type]):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user