Skip to content

Commit

Permalink
修复pexels无法下载视频的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wayne committed Sep 23, 2024
1 parent 2ea1e81 commit c91a016
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions services/resource/pixabay_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ def match_videos(self, video_data, audio_length,
else:
total_length = total_length + video_duration - float(
self.video_transition_effect_duration)
else:
total_length = total_length + video_duration
matching_videos.append(video_url)
i = i + 1
break
Expand All @@ -110,6 +112,8 @@ def match_videos(self, video_data, audio_length,
else:
total_length = total_length + video_duration - float(
self.video_transition_effect_duration)
else:
total_length = total_length + video_duration
matching_videos.append(video_url)
i = i + 1
break
Expand Down

0 comments on commit c91a016

Please sign in to comment.