[PR #1064] [MERGED] api: add support for xiaohongshu (rednote) #1307

Closed
opened 2025-11-09 10:10:18 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/imputnet/cobalt/pull/1064
Author: @wukko
Created: 1/20/2025
Status: Merged
Merged: 1/20/2025
Merged by: @github-actions[bot]

Base: 10.6Head: xiaohongshu-support


📝 Commits (10+)

  • 9bdcb9d api/utils: update getRedirectingURL to accept more statuses & dispatcher
  • 63b2681 api/match-action: always proxy photos
  • ed8f435 api/processing: add support for xiaohongshu
  • ad6f29a api/tests: add xiaohongshu tests
  • cd466a4 api/tests/bsky: fix expected photo test status
  • cd0a2a4 api/tests/pinterest: update expected photo status
  • de5eca1 api/utils: replace redirectStatuses array with a set
  • 3cbed87 api/xiaohongshu: update initial state extraction regex
  • 4963c9f api/xiaohongshu: remove duplicated extraction error
  • e39b0ae api/xiaohongshu: deduplicate h264 stream extraction

📊 Changes

13 files changed (+246 additions, -29 deletions)

View changed files

📝 api/src/misc/utils.js (+11 -3)
📝 api/src/processing/match-action.js (+3 -1)
📝 api/src/processing/match.js (+10 -0)
📝 api/src/processing/service-config.js (+8 -0)
📝 api/src/processing/service-patterns.js (+4 -0)
api/src/processing/services/xiaohongshu.js (+116 -0)
📝 api/src/processing/url.js (+18 -8)
📝 api/src/util/tests/bsky.json (+1 -1)
📝 api/src/util/tests/pinterest.json (+4 -4)
api/src/util/tests/xiaohongshu.json (+58 -0)
📝 docs/api.md (+1 -1)
📝 web/i18n/en/settings.json (+3 -3)
📝 web/src/routes/settings/video/+page.svelte (+9 -8)

📄 Description

closes #1025


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/imputnet/cobalt/pull/1064 **Author:** [@wukko](https://github.com/wukko) **Created:** 1/20/2025 **Status:** ✅ Merged **Merged:** 1/20/2025 **Merged by:** [@github-actions[bot]](https://github.com/apps/github-actions) **Base:** `10.6` ← **Head:** `xiaohongshu-support` --- ### 📝 Commits (10+) - [`9bdcb9d`](https://github.com/imputnet/cobalt/commit/9bdcb9d8216940aea0b1d499e80478477683b182) api/utils: update getRedirectingURL to accept more statuses & dispatcher - [`63b2681`](https://github.com/imputnet/cobalt/commit/63b2681017df728f1aeeffae393f5da5a663805a) api/match-action: always proxy photos - [`ed8f435`](https://github.com/imputnet/cobalt/commit/ed8f4353ea3346982d69eb2aadc4cfa5a8c26855) api/processing: add support for xiaohongshu - [`ad6f29a`](https://github.com/imputnet/cobalt/commit/ad6f29a3c83047de5b7f007d6cd103b03f9aac34) api/tests: add xiaohongshu tests - [`cd466a4`](https://github.com/imputnet/cobalt/commit/cd466a418ac18b85d3685a3af34a0885ea138ba5) api/tests/bsky: fix expected photo test status - [`cd0a2a4`](https://github.com/imputnet/cobalt/commit/cd0a2a47c9eb6a4a29c75db1cbcdfe55133d4b37) api/tests/pinterest: update expected photo status - [`de5eca1`](https://github.com/imputnet/cobalt/commit/de5eca19a5c3d82462b691b8831034985c98a847) api/utils: replace redirectStatuses array with a set - [`3cbed87`](https://github.com/imputnet/cobalt/commit/3cbed87c3ebaae58b3bab01a67c852d0f0c495cd) api/xiaohongshu: update initial state extraction regex - [`4963c9f`](https://github.com/imputnet/cobalt/commit/4963c9f128fc71cf822dca661e34f94f3dca9417) api/xiaohongshu: remove duplicated extraction error - [`e39b0ae`](https://github.com/imputnet/cobalt/commit/e39b0ae7b3b09e1a0444810a6f35bf703f1ed604) api/xiaohongshu: deduplicate h264 stream extraction ### 📊 Changes **13 files changed** (+246 additions, -29 deletions) <details> <summary>View changed files</summary> 📝 `api/src/misc/utils.js` (+11 -3) 📝 `api/src/processing/match-action.js` (+3 -1) 📝 `api/src/processing/match.js` (+10 -0) 📝 `api/src/processing/service-config.js` (+8 -0) 📝 `api/src/processing/service-patterns.js` (+4 -0) ➕ `api/src/processing/services/xiaohongshu.js` (+116 -0) 📝 `api/src/processing/url.js` (+18 -8) 📝 `api/src/util/tests/bsky.json` (+1 -1) 📝 `api/src/util/tests/pinterest.json` (+4 -4) ➕ `api/src/util/tests/xiaohongshu.json` (+58 -0) 📝 `docs/api.md` (+1 -1) 📝 `web/i18n/en/settings.json` (+3 -3) 📝 `web/src/routes/settings/video/+page.svelte` (+9 -8) </details> ### 📄 Description closes #1025 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-09 10:10:18 -06:00
Sign in to join this conversation.