[PR #495] [MERGED] api: major spring cleaning #10060

Closed
opened 2026-04-24 16:09:58 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/imputnet/cobalt/pull/495
Author: @wukko
Created: 5/15/2024
Status: Merged
Merged: 5/16/2024
Merged by: @wukko

Base: currentHead: cleanup


📝 Commits (10+)

  • ae91f8b api: move url extraction to url module
  • c195859 url: only export functions that are used externally
  • c5c3682 api: get rid of getJSON
  • 0a7cdfb match: remove redundant url argument
  • c100121 api: refactor /api/json POST handler
  • cc6345f api: move request functions to separate file
  • dd77835 request: add missing critical error
  • 13524a4 utils: clean up
  • 98e0536 api: raw stream status responses, clean up core
  • c267888 loadFromFs: clean up

📊 Changes

34 files changed (+590 additions, -557 deletions)

View changed files

📝 docs/run-an-instance.md (+8 -5)
📝 src/config.json (+0 -2)
📝 src/core/api.js (+146 -124)
📝 src/localization/languages/en.json (+3 -2)
📝 src/localization/languages/ru.json (+1 -1)
src/modules/api.js (+0 -33)
📝 src/modules/config.js (+14 -6)
📝 src/modules/processing/match.js (+34 -17)
📝 src/modules/processing/matchActionDecider.js (+14 -14)
src/modules/processing/request.js (+162 -0)
📝 src/modules/processing/services/bilibili.js (+6 -6)
📝 src/modules/processing/services/dailymotion.js (+3 -3)
📝 src/modules/processing/services/ok.js (+14 -6)
📝 src/modules/processing/services/pinterest.js (+4 -4)
📝 src/modules/processing/services/reddit.js (+15 -11)
📝 src/modules/processing/services/rutube.js (+4 -4)
📝 src/modules/processing/services/soundcloud.js (+15 -12)
📝 src/modules/processing/services/streamable.js (+4 -1)
📝 src/modules/processing/services/twitch.js (+7 -5)
📝 src/modules/processing/services/vimeo.js (+27 -15)

...and 14 more files

📄 Description

No description provided


🔄 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/495 **Author:** [@wukko](https://github.com/wukko) **Created:** 5/15/2024 **Status:** ✅ Merged **Merged:** 5/16/2024 **Merged by:** [@wukko](https://github.com/wukko) **Base:** `current` ← **Head:** `cleanup` --- ### 📝 Commits (10+) - [`ae91f8b`](https://github.com/imputnet/cobalt/commit/ae91f8b12006f1881373256a666e8a43b9fccce8) api: move url extraction to url module - [`c195859`](https://github.com/imputnet/cobalt/commit/c1958596e924aa4e0fe59e80c5d1b7edf57fa292) url: only export functions that are used externally - [`c5c3682`](https://github.com/imputnet/cobalt/commit/c5c3682462a2712df4a4a7a7f5b8fa2224f2daa6) api: get rid of getJSON - [`0a7cdfb`](https://github.com/imputnet/cobalt/commit/0a7cdfbbfe1d90d1824b0415ed8c329f095e193b) match: remove redundant `url` argument - [`c100121`](https://github.com/imputnet/cobalt/commit/c10012130b61bdf602c07c9c9abaeaa624d42d11) api: refactor /api/json POST handler - [`cc6345f`](https://github.com/imputnet/cobalt/commit/cc6345ff633b233f48f6e2f024a0e0057cb707eb) api: move request functions to separate file - [`dd77835`](https://github.com/imputnet/cobalt/commit/dd778355999687d86111552de8042aea3a1f12ce) request: add missing critical error - [`13524a4`](https://github.com/imputnet/cobalt/commit/13524a4aa15b2c98375fcc56372158369bcb43a6) utils: clean up - [`98e0536`](https://github.com/imputnet/cobalt/commit/98e05368ed411275e444486f9b0d9f7fe52d2779) api: raw stream status responses, clean up core - [`c267888`](https://github.com/imputnet/cobalt/commit/c2678888be3538c841b45340563b4ef07425d5bb) loadFromFs: clean up ### 📊 Changes **34 files changed** (+590 additions, -557 deletions) <details> <summary>View changed files</summary> 📝 `docs/run-an-instance.md` (+8 -5) 📝 `src/config.json` (+0 -2) 📝 `src/core/api.js` (+146 -124) 📝 `src/localization/languages/en.json` (+3 -2) 📝 `src/localization/languages/ru.json` (+1 -1) ➖ `src/modules/api.js` (+0 -33) 📝 `src/modules/config.js` (+14 -6) 📝 `src/modules/processing/match.js` (+34 -17) 📝 `src/modules/processing/matchActionDecider.js` (+14 -14) ➕ `src/modules/processing/request.js` (+162 -0) 📝 `src/modules/processing/services/bilibili.js` (+6 -6) 📝 `src/modules/processing/services/dailymotion.js` (+3 -3) 📝 `src/modules/processing/services/ok.js` (+14 -6) 📝 `src/modules/processing/services/pinterest.js` (+4 -4) 📝 `src/modules/processing/services/reddit.js` (+15 -11) 📝 `src/modules/processing/services/rutube.js` (+4 -4) 📝 `src/modules/processing/services/soundcloud.js` (+15 -12) 📝 `src/modules/processing/services/streamable.js` (+4 -1) 📝 `src/modules/processing/services/twitch.js` (+7 -5) 📝 `src/modules/processing/services/vimeo.js` (+27 -15) _...and 14 more files_ </details> ### 📄 Description _No description provided_ --- <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 2026-04-24 16:09:58 -05:00
Sign in to join this conversation.