handle offline import without info.json fail

This commit is contained in:
simon 2022-08-10 22:38:17 +07:00
parent 994f7c2443
commit 31061c0eb0
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -473,6 +473,10 @@ class ManualImport:
youtube_meta_overwrite=self._get_info_json(),
media_path=self.current_video["media"],
)
if not video.json_data:
print(f"{video_id}: manual import failed, and no metadata found.")
raise ValueError
video.check_subtitles()
video.upload_to_es()