mirror of
https://github.com/tubearchivist/tubearchivist
synced 2024-11-04 12:00:21 +00:00
raise ValueError when not matching media files
This commit is contained in:
parent
31061c0eb0
commit
c26ef012c1
@ -250,6 +250,10 @@ class ImportFolderScanner:
|
|||||||
def process_videos(self):
|
def process_videos(self):
|
||||||
"""loop through all videos"""
|
"""loop through all videos"""
|
||||||
for current_video in self.to_import:
|
for current_video in self.to_import:
|
||||||
|
if not current_video["media"]:
|
||||||
|
print(f"{current_video}: no matching media file found.")
|
||||||
|
raise ValueError
|
||||||
|
|
||||||
self._detect_youtube_id(current_video)
|
self._detect_youtube_id(current_video)
|
||||||
self._dump_thumb(current_video)
|
self._dump_thumb(current_video)
|
||||||
self._convert_thumb(current_video)
|
self._convert_thumb(current_video)
|
||||||
|
Loading…
Reference in New Issue
Block a user