[PR #709] [CLOSED] feat: api route for best audio only #10676

Closed
opened 2026-04-27 15:03:30 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/imputnet/cobalt/pull/709
Author: @SmilerRyan
Created: 9/2/2024
Status: Closed

Base: currentHead: current


📝 Commits (3)

  • 57c6283 api: add /api/best_audio route
  • c98b0eb docs/api: Add /api/best_audio route information
  • a2eb743 api: update /api/best_audio route error handling

📊 Changes

2 files changed (+40 additions, -0 deletions)

View changed files

📝 docs/api.md (+7 -0)
📝 src/core/api.js (+33 -0)

📄 Description

Mostly solves issues #707 and #708.

Adds an endpoint to directly get a link to the best available audio.
Tested with a YouTube Video and Instagram photo. Example Endpoint URLs:

http://localhost:9000/api/best_audio?url=https://www.youtube.com/watch?v=wcT7zgL6gug
http://localhost:9000/api/best_audio?url=https://www.threads.net/@soren.iverson/post/C8PdJ59pMLr


🔄 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/709 **Author:** [@SmilerRyan](https://github.com/SmilerRyan) **Created:** 9/2/2024 **Status:** ❌ Closed **Base:** `current` ← **Head:** `current` --- ### 📝 Commits (3) - [`57c6283`](https://github.com/imputnet/cobalt/commit/57c628378d0c9f5f92c568f9913770897d8d7ae8) api: add /api/best_audio route - [`c98b0eb`](https://github.com/imputnet/cobalt/commit/c98b0eb120744e75cf448f91ebe18f9fff76e1e2) docs/api: Add /api/best_audio route information - [`a2eb743`](https://github.com/imputnet/cobalt/commit/a2eb7432228918c98bc46b5d4b58b51f4f8e7dde) api: update /api/best_audio route error handling ### 📊 Changes **2 files changed** (+40 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/api.md` (+7 -0) 📝 `src/core/api.js` (+33 -0) </details> ### 📄 Description Mostly solves issues #707 and #708. Adds an endpoint to directly get a link to the best available audio. Tested with a YouTube Video and Instagram photo. Example Endpoint URLs: http://localhost:9000/api/best_audio?url=https://www.youtube.com/watch?v=wcT7zgL6gug http://localhost:9000/api/best_audio?url=https://www.threads.net/@soren.iverson/post/C8PdJ59pMLr --- <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-27 15:03:30 -05:00
Sign in to join this conversation.