Skip to content

Commit

Permalink
Update podcast.py
Browse files Browse the repository at this point in the history
  • Loading branch information
malinkang authored May 6, 2024
1 parent 4aaa6ee commit bb2bc6a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/podcast.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,12 @@ def insert_podcast():
podcast["收听时长"] = result.get("playedSeconds", 0)
podcast["Description"] = result.get("description")
podcast["链接"] = f"https://www.xiaoyuzhoufm.com/podcast/{result.get('pid')}"
podcast["最后更新时间"] = (
pendulum.parse(result.get("latestEpisodePubDate"))
.in_tz("UTC")
.int_timestamp
)
if result.get("latestEpisodePubDate"):
podcast["最后更新时间"] = (
pendulum.parse(result.get("latestEpisodePubDate"))
.in_tz("UTC")
.int_timestamp
)
cover = result.get("image").get("picUrl")
podcast["全部"] = [
notion_helper.get_relation_id(
Expand Down

0 comments on commit bb2bc6a

Please sign in to comment.