ismdrobiul489 commited on
Commit
48205e8
·
1 Parent(s): ae40e4a

Fix: get_status returns ready for cloud-uploaded videos (check .cloud file)

Browse files
modules/video_creator/services/short_creator.py CHANGED
@@ -367,7 +367,12 @@ class ShortCreator:
367
  if any(item["id"] == video_id for item in self.queue):
368
  return VideoStatus.processing
369
 
370
- # Check if final video exists (READY)
 
 
 
 
 
371
  video_path = self.config.videos_dir_path / f"{video_id}.mp4"
372
  if video_path.exists():
373
  return VideoStatus.ready
 
367
  if any(item["id"] == video_id for item in self.queue):
368
  return VideoStatus.processing
369
 
370
+ # Check if video is in cloud (has .cloud metadata file)
371
+ cloud_meta_path = self.config.videos_dir_path / f"{video_id}.cloud"
372
+ if cloud_meta_path.exists():
373
+ return VideoStatus.ready # Cloud-uploaded videos are ready
374
+
375
+ # Check if final video exists locally (READY)
376
  video_path = self.config.videos_dir_path / f"{video_id}.mp4"
377
  if video_path.exists():
378
  return VideoStatus.ready