Skip to content

Commit

Permalink
删除 get_video_play_info,视频预览功能已下线
Browse files Browse the repository at this point in the history
  • Loading branch information
lemisky committed Mar 5, 2024
1 parent 3136490 commit d31c9a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/aligo/apis/Video.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def get_video_play_info(self, file_id: str, drive_id: str = None) -> GetVideoPla
>>> video = ali.get_video_play_info('<file_id>')
>>> print(video)
"""
raise NotImplementedError('视频预览功能已下线')
body = GetVideoPlayInfoRequest(file_id=file_id, drive_id=drive_id)
return self._core_get_video_play_info(body)

Expand Down
1 change: 1 addition & 0 deletions src/aligo/core/Video.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class Video(BaseAligo):

def _core_get_video_play_info(self, body: GetVideoPlayInfoRequest) -> GetVideoPlayInfoResponse:
"""..."""
raise NotImplementedError('视频预览功能已下线')
response = self.post(V2_DATABOX_GET_VIDEO_PLAY_INFO, body=body)
return self._result(response, GetVideoPlayInfoResponse)

Expand Down

0 comments on commit d31c9a4

Please sign in to comment.