diff options
author | Case Duckworth | 2022-08-02 15:16:23 -0500 |
---|---|---|
committer | Case Duckworth | 2022-08-02 15:16:23 -0500 |
commit | 7222d8077b2b1079ab26c53de833e72ff4a89e71 (patch) | |
tree | fac6bfb19c3a2e9abf438c49d2ef7f749354b5cf | |
parent | Fix link issue (diff) | |
download | sfeed-7222d8077b2b1079ab26c53de833e72ff4a89e71.tar.gz sfeed-7222d8077b2b1079ab26c53de833e72ff4a89e71.zip |
Change libreddit url
-rwxr-xr-x | sfeed_html.awk | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sfeed_html.awk b/sfeed_html.awk index 9ebe893..9873398 100755 --- a/sfeed_html.awk +++ b/sfeed_html.awk | |||
@@ -63,7 +63,7 @@ BEGIN { | |||
63 | TWITTER_ALT_URL = envor("SFEED_TWITTER_ALT_URL", "https://nitter.net") | 63 | TWITTER_ALT_URL = envor("SFEED_TWITTER_ALT_URL", "https://nitter.net") |
64 | } | 64 | } |
65 | if (! REDDIT_ALT_URL) { | 65 | if (! REDDIT_ALT_URL) { |
66 | REDDIT_ALT_URL = envor("SFEED_REDDIT_ALT_URL", "https://libreddit.spike.codes") | 66 | REDDIT_ALT_URL = envor("SFEED_REDDIT_ALT_URL", "https://libreddit.de") |
67 | } | 67 | } |
68 | # Paywalls | 68 | # Paywalls |
69 | PAYWALL_LADDER = "https://archive.ph/newest/" | 69 | PAYWALL_LADDER = "https://archive.ph/newest/" |
@@ -168,7 +168,7 @@ FNR == 1 { | |||
168 | print_link(enclosure, "Enclosure: " enclosure, stamp) | 168 | print_link(enclosure, "Enclosure: " enclosure, stamp) |
169 | } | 169 | } |
170 | # Test id against silo here, since silo is the raw link value. | 170 | # Test id against silo here, since silo is the raw link value. |
171 | if ((silo != id) && (id != enclosure) && (id ~ /^https?:/)) { | 171 | if ((id != silo) && (id != enclosure) && (id ~ /^https?:/)) { |
172 | # alternate links (comments, etc.) | 172 | # alternate links (comments, etc.) |
173 | stamp = ALT_LINK_STAMP | 173 | stamp = ALT_LINK_STAMP |
174 | print_link(silo_link(id), "alternate link", stamp) | 174 | print_link(silo_link(id), "alternate link", stamp) |
@@ -357,8 +357,8 @@ function silo_link(link) | |||
357 | siloed = 1 | 357 | siloed = 1 |
358 | if (ret ~ (http "youtube\\.com")) { | 358 | if (ret ~ (http "youtube\\.com")) { |
359 | sub(http "youtube\\.com", YOUTUBE_ALT_URL, ret) | 359 | sub(http "youtube\\.com", YOUTUBE_ALT_URL, ret) |
360 | } else if (ret ~ (http "reddit\\.com")) { | 360 | } else if (ret ~ (http "i\\.reddit\\.com")) { |
361 | sub(http "reddit\\.com", REDDIT_ALT_URL, ret) | 361 | sub(http "i\\.reddit\\.com", REDDIT_ALT_URL, ret) |
362 | } else if (ret ~ (http "twitter\\.com")) { | 362 | } else if (ret ~ (http "twitter\\.com")) { |
363 | sub(http "twitter\\.com", TWITTER_ALT_URL, ret) | 363 | sub(http "twitter\\.com", TWITTER_ALT_URL, ret) |
364 | } else { | 364 | } else { |