Skip to content

Commit

Permalink
douyin fix link for streams
Browse files Browse the repository at this point in the history
  • Loading branch information
dale-wahl committed Oct 3, 2024
1 parent 8559a11 commit d769be4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datasources/douyin/search_douyin.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def map_item(item):
"timestamp": post_timestamp.strftime("%Y-%m-%d %H:%M:%S"),
"post_source_domain": urllib.parse.unquote(metadata.get("source_platform_url")),
# Adding this as different Douyin pages contain different data
"post_url": f"https://www.douyin.com/video/{item[aweme_id_key]}",
"post_url": f"https://www.douyin.com/video/{item[aweme_id_key]}" if subject == "Post" else f"https://live.douyin.com/{author.get('web_rid')}",
"region": item.get("region", ""),
"hashtags": ",".join(
[tag[hashtag_key] for tag in (item[text_extra_key] if item[text_extra_key] is not None else []) if
Expand Down

0 comments on commit d769be4

Please sign in to comment.