Skip to content

Commit

Permalink
feat: presist raw voice md5 #202
Browse files Browse the repository at this point in the history
  • Loading branch information
lumina37 committed Jun 12, 2024
1 parent 6e9af6b commit 946b8f3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions aiotieba/api/_classdef/contents.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ class FragVoice:

@staticmethod
def from_tbdata(data_proto: TypeMessage) -> "FragVoice":
voice_md5 = data_proto.voice_md5
md5 = voice_md5[: voice_md5.rfind('_')]
md5 = data_proto.voice_md5
duration = data_proto.during_time / 1000
return FragVoice(md5, duration)

Expand Down
3 changes: 1 addition & 2 deletions aiotieba/api/get_user_contents/_classdef.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ class FragVoice_up:

@staticmethod
def from_tbdata(data_proto: TypeMessage) -> "FragVoice_up":
voice_md5 = data_proto.voice_md5
md5 = voice_md5[: voice_md5.rfind('_')]
md5 = data_proto.voice_md5
duration = int(data_proto.during_time) / 1000
return FragVoice_up(md5, duration)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MAIN_VERSION = "12.62.1.0"
MAIN_VERSION = "12.62.3.0"
POST_VERSION = "12.35.1.0"

APP_SECURE_SCHEME = "https"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "aiotieba"
version = "4.4.5"
version = "4.4.6a0"
description = "Asynchronous I/O Client for Baidu Tieba"
authors = [{ name = "Starry-OvO", email = "[email protected]" }]
urls = { Repository = "https://github.com/Starry-OvO/aiotieba/", Documentation = "https://aiotieba.cc/" }
Expand Down

0 comments on commit 946b8f3

Please sign in to comment.