-
Notifications
You must be signed in to change notification settings - Fork 12
docs: add Spanish README #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
webbrain-one
wants to merge
1
commit into
alexeichhorn:cloudflare-worker
Choose a base branch
from
webbrain-one:webbrain/readme-translation
base: cloudflare-worker
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
|
|
||
|
|
||
| # YouTubeKit Server | ||
|
|
||
| Servidor de extracción remota para [YouTubeKit](https://github.com/alexeichhorn/YouTubeKit), que se ejecuta en Cloudflare Workers. | ||
|
|
||
| ## Descripción general | ||
|
|
||
| Este servidor permite la extracción remota de transmisiones de YouTube cuando la extracción local falla. Utiliza una arquitectura basada en WebSocket en la que el servidor orquesta solicitudes HTTP a través del dispositivo del cliente, asegurando que las URLs de las transmisiones sigan siendo reproducibles en la red del cliente. | ||
|
|
||
| ## Cómo funciona | ||
|
|
||
| 1. El cliente establece una conexión WebSocket con el ID del video | ||
| 2. El servidor utiliza [youtubei.js](https://github.com/LuanRT/YouTube.js) para determinar las solicitudes necesarias | ||
| 3. El servidor envía las especificaciones de las solicitudes HTTP al cliente a través de WebSocket | ||
| 4. El cliente ejecuta las solicitudes y devuelve las respuestas | ||
| 5. El servidor procesa las respuestas y extrae las URLs de las transmisiones | ||
| 6. Las URLs de las transmisiones se envían de vuelta al cliente | ||
|
|
||
| Esta arquitectura garantiza que las transmisiones funcionen con la dirección IP y ubicación del cliente, evitando restricciones geográficas. | ||
|
|
||
| ## Despliegue | ||
|
|
||
| ### Requisitos previos | ||
|
|
||
| - Cuenta de [Cloudflare Workers](https://workers.cloudflare.com/) | ||
| - [Wrangler CLI](https://developers.cloudflare.com/workers/wrangler/) instalado | ||
|
|
||
| ### Desplegar en Cloudflare Workers | ||
|
|
||
| ```bash | ||
| npm install | ||
| npm run deploy | ||
| ``` | ||
|
|
||
| Para desarrollo local: | ||
|
|
||
| ```bash | ||
| npm run dev | ||
| ``` | ||
|
|
||
| ## Limitación de tasa | ||
|
|
||
| Las solicitudes están limitadas por ID de aplicación (`X-AppID-v1`) utilizando un Durable Object con ventanas ancladas: | ||
|
|
||
| - la ventana diaria comienza con la primera solicitud y dura 24 horas | ||
| - la ventana semanal comienza con la primera solicitud y dura 7 días | ||
| - cuando una ventana expira, la siguiente solicitud inicia una nueva ventana | ||
|
|
||
| Configure los límites mediante variables de entorno en `wrangler.toml`: | ||
|
|
||
| - `RATE_LIMIT_DAILY_REQUESTS`: solicitudes máximas por ID de aplicación en cada ventana de 24 horas. | ||
| - `RATE_LIMIT_WEEKLY_REQUESTS`: solicitudes máximas por ID de aplicación en cada ventana de 7 días. | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Evita una garantía absoluta sobre las restricciones geográficas.
La frase indica que la arquitectura “garantiza” el funcionamiento y evita las restricciones geográficas. El flujo descrito no demuestra ese resultado en todos los casos. Usa una formulación condicionada y documenta las limitaciones aplicables.
🤖 Prompt for AI Agents