mirror of
https://github.com/tubearchivist/tubearchivist.git
synced 2024-10-13 17:27:16 +00:00
handle offline import without info.json fail
This commit is contained in:
parent
994f7c2443
commit
31061c0eb0
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user