Compare commits

...

2 Commits

Author SHA1 Message Date
Tim Van Baak 327a79479d intake-reddit: old.reddit.com 2023-11-16 06:12:22 +00:00
Tim Van Baak eafc8f3abb intake-praw: old.reddit.com 2023-11-16 06:12:22 +00:00
4 changed files with 4 additions and 4 deletions

View File

@ -91,7 +91,7 @@ def main():
item["id"] = post.id
item["title"] = f"/{post.subreddit_name_prefixed}: {post.title}"
item["author"] = f"/u/{post.author.name}" if post.author else "[deleted]"
item["link"] = f"https://reddit.com{post.permalink:}"
item["link"] = f"https://old.reddit.com{post.permalink:}"
item["time"] = post.created_utc
item["tags"] = list(tags)
item["ttl"] = SORT_TTL.get(sub_sort, 60 * 60 * 24 * 8)

View File

@ -1,6 +1,6 @@
[project]
name = "intake-praw"
version = "1.0.1"
version = "1.0.2"
[project.scripts]
intake-praw = "intake_praw.core:main"

View File

@ -180,7 +180,7 @@ def main():
# Link
if post_link := post_data.get("permalink"):
item["link"] = f"https://reddit.com{post_link}"
item["link"] = f"https://old.reddit.com{post_link}"
# TTL
item["ttl"] = SORT_TTL.get(sub_sort, 60 * 60 * 24 * 8)

View File

@ -1,6 +1,6 @@
[project]
name = "intake-reddit"
version = "1.0.0"
version = "1.0.1"
[project.scripts]
intake-reddit = "intake_reddit.core:main"