-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
删除 get_share_link_download_url & 添加 get_share_link_video_preview_play…
…_info(具有完整的m3u8, 可直接播放) 获取分享文件下载链接功能已被官方下线, 请使用其他方式下载文件
- Loading branch information
Showing
7 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/aligo/request/GetShareLinkVideoPreviewPlayInfoRequest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
"""...""" | ||
from dataclasses import dataclass | ||
|
||
from aligo.types import DatClass | ||
|
||
|
||
@dataclass | ||
class GetShareLinkVideoPreviewPlayInfoRequest(DatClass): | ||
"""...""" | ||
file_id: str | ||
drive_id: str | ||
share_id: str | ||
category: str = 'live_transcoding' | ||
get_preview_url: bool = True | ||
get_subtitle_info: bool = True | ||
mode: str = 'high_res' | ||
template_id: str = '' | ||
url_expire_sec: int = 600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
src/aligo/response/GetShareLinkVideoPreviewPlayInfoResponse.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
from dataclasses import dataclass, field | ||
from typing import List | ||
|
||
from aligo.types import DatClass | ||
|
||
|
||
@dataclass | ||
class LiveTranscodingTaskList(DatClass): | ||
keep_original_resolution: bool = None | ||
preview_url: str = None | ||
stage: str = None | ||
status: str = None | ||
template_height: int = None | ||
template_id: str = None | ||
template_name: str = None | ||
template_width: int = None | ||
url: str = None | ||
|
||
|
||
@dataclass | ||
class Meta(DatClass): | ||
duration: float = None | ||
height: int = None | ||
width: int = None | ||
|
||
|
||
@dataclass | ||
class VideoPreviewPlayInfo(DatClass): | ||
category: str = None | ||
live_transcoding_task_list: List[LiveTranscodingTaskList] = field(default_factory=list) | ||
meta: Meta = None | ||
|
||
|
||
@dataclass | ||
class GetShareLinkVideoPreviewPlayInfoResponse(DatClass): | ||
category: str = None | ||
file_id: str = None | ||
share_id: str = None | ||
video_preview_play_info: VideoPreviewPlayInfo = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters