Skip to content

Commit

Permalink
perf: 调整douyin视频默认清晰度地址 (Johnserf-Seed#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnserf-Seed committed Jan 20, 2025
1 parent ed584c7 commit f37910d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions f2/apps/douyin/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,9 @@ def cover(self):

@property
def video_play_addr(self):
return self._get_list_attr_value("$.aweme_list[*].video.play_addr.url_list")
return self._get_list_attr_value(
"$.aweme_list[*].video.bit_rate[0].play_addr.url_list"
)

@property
def video_bit_rate(self):
Expand Down Expand Up @@ -1393,7 +1395,9 @@ def extract_bit_rate(aweme):

@property
def video_play_addr(self):
return self._get_attr_value("$.aweme_detail.video.play_addr.url_list")
return self._get_attr_value(
"$.aweme_detail.video.bit_rate[0].play_addr.url_list"
)

# images
@property
Expand Down Expand Up @@ -1867,7 +1871,7 @@ def images_video(self):

@property
def video_play_addr(self):
return self._get_list_attr_value("$.data[*].aweme.video.play_addr.url_list")
return self._get_list_attr_value("$.data[*].aweme.video.bit_rate[0].play_addr.url_list")

# music
@property
Expand Down

0 comments on commit f37910d

Please sign in to comment.