From b204fc56a97bca9526363ae7777ae2b9869daa6b Mon Sep 17 00:00:00 2001 From: Peifan Li Date: Tue, 30 Dec 2025 00:05:30 -0500 Subject: [PATCH] feat: Update language support to include Russian --- README-zh.md | 4 ++-- README.md | 4 ++-- documents/en/api-endpoints.md | 13 +++++++++++++ documents/zh/api-endpoints.md | 17 +++++++++++++++-- 4 files changed, 32 insertions(+), 6 deletions(-) diff --git a/README-zh.md b/README-zh.md index 7bbdc92..c2f02d0 100644 --- a/README-zh.md +++ b/README-zh.md @@ -1,6 +1,6 @@ # MyTube -一个 YouTube/Bilibili/MissAV 视频下载和播放应用,支持频道订阅与自动下载,允许您将视频及其缩略图本地保存。将您的视频整理到收藏夹中,以便轻松访问和管理。现已支持[yt-dlp 所有网址](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md##),包括微博,小红书,X.com 等。 +支持 YouTube、Bilibili、MissAV 及 [yt-dlp 站点](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md##) 的自托管视频下载器与播放器。具备频道订阅、自动下载及本地化存储功能。UI 设计精美,支持收藏集分类管理。内置 Cloudflare Tunnel 支持,无需端口映射即可实现安全远程访问。支持 Docker 一键部署。 [![GitHub License](https://img.shields.io/github/license/franklioxygen/mytube)](https://github.com/franklioxygen/mytube) ![Docker Pulls](https://img.shields.io/docker/pulls/franklioxygen/mytube) @@ -31,7 +31,7 @@ - **收藏夹**:创建自定义收藏夹以整理您的视频。 - **订阅功能**:订阅您喜爱的频道,并在新视频发布时自动下载。 - **登录保护**:通过密码登录页面保护您的应用。 -- **国际化**:支持多种语言,包括英语、中文、西班牙语、法语、德语、日语、韩语、阿拉伯语和葡萄牙语。 +- **国际化**:支持多种语言,包括英语、中文、西班牙语、法语、德语、日语、韩语、阿拉伯语、葡萄牙语和俄语。 - **分页功能**:支持分页浏览,高效管理大量视频。 - **视频评分**:使用 5 星评级系统为您的视频评分。 - **移动端优化**:移动端友好的标签菜单和针对小屏幕优化的布局。 diff --git a/README.md b/README.md index ca86497..aff3209 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # MyTube -A YouTube/Bilibili/MissAV video downloader and player that supports channel subscriptions and auto-downloads, allowing you to save videos and thumbnails locally. Organize your videos into collections for easy access and management. Now supports [yt-dlp sites](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md##), including Weibo, Xiaohongshu, X.com, etc. +Self-hosted downloader and player for YouTube, Bilibili, MissAV, and [yt-dlp sites](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md##). Features channel subscriptions, auto-downloads, and local storage for media. Organize your library into collections with a sleek UI. Includes built-in Cloudflare Tunnel support for secure remote access without port forwarding. Docker-ready deployment. [![GitHub License](https://img.shields.io/github/license/franklioxygen/mytube)](https://github.com/franklioxygen/mytube) ![Docker Pulls](https://img.shields.io/docker/pulls/franklioxygen/mytube) @@ -30,7 +30,7 @@ A YouTube/Bilibili/MissAV video downloader and player that supports channel subs - **Search**: Search for videos locally in your library or online via YouTube. - **Collections**: Organize videos into custom collections for easy access. - **Login Protection**: Secure your application with a password login page. -- **Internationalization**: Support for multiple languages including English, Chinese, Spanish, French, German, Japanese, Korean, Arabic, and Portuguese. +- **Internationalization**: Support for multiple languages including English, Chinese, Spanish, French, German, Japanese, Korean, Arabic, Portuguese, and Russian. - **Pagination**: Efficiently browse large libraries with pagination support. - **Subscriptions**: Manage subscriptions to channels or creators to automatically download new content. - **Video Rating**: Rate your videos with a 5-star system. diff --git a/documents/en/api-endpoints.md b/documents/en/api-endpoints.md index e34a77d..69fca2d 100644 --- a/documents/en/api-endpoints.md +++ b/documents/en/api-endpoints.md @@ -14,6 +14,8 @@ - Query params: `url` (required) - `GET /api/check-bilibili-collection` - Check if a Bilibili URL is a collection/series - Query params: `url` (required) +- `GET /api/check-playlist` - Check if a URL is a supported playlist + - Query params: `url` (required) - `GET /api/download-status` - Get status of active downloads - Returns: `{ active: [], queued: [] }` @@ -68,12 +70,23 @@ - `platform`: 'YouTube' (default) or 'Bilibili' - `DELETE /api/subscriptions/:id` - Delete a subscription +## Continuous Download Tasks (Subscriptions) + +- `GET /api/subscriptions/tasks` - Get all continuous download tasks + - Query params: `page` (optional), `limit` (optional) +- `POST /api/subscriptions/tasks/playlist` - Create a new playlist download task + - Body: `{ url: string, ...options }` +- `DELETE /api/subscriptions/tasks/:id` - Cancel a continuous download task +- `DELETE /api/subscriptions/tasks/:id/delete` - Delete a task record +- `DELETE /api/subscriptions/tasks/clear-finished` - Clear all finished tasks + ## Settings & System - `GET /api/settings` - Get application settings - `POST /api/settings` - Update application settings - Body: `{ [key: string]: any }` - Settings object - Supports: `visitorMode`, `cloudDriveEnabled`, `openListApiUrl`, `openListToken`, `openListPublicUrl`, `cloudDrivePath`, and other settings +- `GET /api/settings/cloudflared/status` - Get Cloudflare Tunnel status - `GET /api/settings/password-enabled` - Check if password protection is enabled - `POST /api/settings/verify-password` - Verify login password - Body: `{ password: string }` diff --git a/documents/zh/api-endpoints.md b/documents/zh/api-endpoints.md index 24a4b07..a290a77 100644 --- a/documents/zh/api-endpoints.md +++ b/documents/zh/api-endpoints.md @@ -13,7 +13,9 @@ - 查询参数: `url` (必需) - `GET /api/check-bilibili-collection` - 检查 Bilibili URL 是否为合集/系列 - 查询参数: `url` (必需) -- `GET /api/download-status` - 获取当前下载状态 +- `GET /api/check-playlist` - 检查 URL 是否为受支持的播放列表 + - 查询参数: `url` (必需) +- `GET /api/download-status` - 获取活动下载的状态 - 返回: `{ active: [], queued: [] }` ## 视频管理 @@ -63,11 +65,22 @@ - `platform`: 'YouTube' (默认) 或 'Bilibili' - `DELETE /api/subscriptions/:id` - 删除订阅 +## 持续下载任务 (订阅) + +- `GET /api/subscriptions/tasks` - 获取所有持续下载任务 + - 查询参数: `page` (可选), `limit` (可选) +- `POST /api/subscriptions/tasks/playlist` - 创建新的播放列表下载任务 + - Body: `{ url: string, ...options }` +- `DELETE /api/subscriptions/tasks/:id` - 取消持续下载任务 +- `DELETE /api/subscriptions/tasks/:id/delete` - 删除任务记录 +- `DELETE /api/subscriptions/tasks/clear-finished` - 清除所有已完成的任务 + ## 设置与系统 - `GET /api/settings` - 获取应用设置 - `POST /api/settings` - 更新应用设置 - 请求体: `{ [key: string]: any }` - 设置对象 - - 支持: `visitorMode`, `cloudDriveEnabled`, `openListApiUrl`, `openListToken`, `openListPublicUrl`, `cloudDrivePath` 等设置 + - 支持: `visitorMode`, `cloudDriveEnabled`, `openListApiUrl`, `openListToken`, `openListPublicUrl`, `cloudDrivePath` 及其他设置 +- `GET /api/settings/cloudflared/status` - 获取 Cloudflare Tunnel 状态 - `GET /api/settings/password-enabled` - 检查是否启用了密码保护 - `POST /api/settings/verify-password` - 验证登录密码 - 请求体: `{ password: string }`