Loading ballontranslator/dl/pagesources/__init__.py +4 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,9 @@ class SourceDownload: if 'https://' not in self.url: self.url = 'https://' + self.url def PassUrlToImgTransProj(self): self.imgtrans_proj.src_download_link = self.url def FetchImages(self): config.load() job = DownloadJob(self.url) Loading @@ -34,6 +37,7 @@ class SourceDownload: self.ValidateUrl() self.FetchImages() self.PassUrlToImgTransProj() proj_path = self.ReturnFullPathToProject() LOGGER.info(f'Project path set to {proj_path}') Loading ballontranslator/ui/configpanel.py +0 −2 Original line number Diff line number Diff line Loading @@ -444,8 +444,6 @@ class ConfigPanel(Widget): def on_effect_flag_changed(self): self.config.let_fnteffect_flag = self.let_effect_combox.currentIndex() # def on_source_flag_changed(self): # self.config.src_choice_flag = self.src_choice_combox.currentIndex() def on_source_link_changed(self): self.config.src_link_flag = self.src_link_textbox.text() Loading Loading
ballontranslator/dl/pagesources/__init__.py +4 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,9 @@ class SourceDownload: if 'https://' not in self.url: self.url = 'https://' + self.url def PassUrlToImgTransProj(self): self.imgtrans_proj.src_download_link = self.url def FetchImages(self): config.load() job = DownloadJob(self.url) Loading @@ -34,6 +37,7 @@ class SourceDownload: self.ValidateUrl() self.FetchImages() self.PassUrlToImgTransProj() proj_path = self.ReturnFullPathToProject() LOGGER.info(f'Project path set to {proj_path}') Loading
ballontranslator/ui/configpanel.py +0 −2 Original line number Diff line number Diff line Loading @@ -444,8 +444,6 @@ class ConfigPanel(Widget): def on_effect_flag_changed(self): self.config.let_fnteffect_flag = self.let_effect_combox.currentIndex() # def on_source_flag_changed(self): # self.config.src_choice_flag = self.src_choice_combox.currentIndex() def on_source_link_changed(self): self.config.src_link_flag = self.src_link_textbox.text() Loading