liqian há 1 ano atrás
pai
commit
e552022807
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      download_videos_task.py

+ 1 - 1
download_videos_task.py

@@ -43,7 +43,7 @@ def download_video_from_oss(video_id, video_path, download_folder):
                     print(line)
                     if line[-3:] == '.ts':
                         ts_path = os.path.join(root_path, line)
-                        ts_local_path = os.path.join(video_local_dir, ts_path)
+                        ts_local_path = os.path.join(video_local_dir, line)
                         bucket.get_object_to_file(ts_path, ts_local_path)
         print(f"{video_id} download end!")
     except: