Update mapping table when github connection is successful #2

This commit is contained in:
yoshiko2
2023-05-08 05:53:29 +08:00
parent 04feaf6d20
commit a5f7a1afde

View File

@@ -23,7 +23,7 @@ from core import core_main, core_main_no_net_op, moveFailedFolder, debug_print
def check_update(local_version):
htmlcode = get_html("https://apai.github.com/repos/yoshiko2/Movie_Data_Capture/releases/latest")
htmlcode = get_html("https://api.github.com/repos/yoshiko2/Movie_Data_Capture/releases/latest")
data = json.loads(htmlcode)
remote = int(data["tag_name"].replace(".", ""))
local_version = int(local_version.replace(".", ""))
@@ -557,7 +557,6 @@ def main(args: tuple) -> Path:
if conf.update_check():
try:
check_update(version)
# Download Mapping Table, parallel version
def fmd(f) -> typing.Tuple[str, Path]:
return ('https://raw.githubusercontent.com/yoshiko2/Movie_Data_Capture/master/MappingTable/' + f,