From 41ddc14af54f03598c3194551a9f1779315f7dd3 Mon Sep 17 00:00:00 2001 From: ArabCoders Date: Mon, 27 Jan 2025 22:30:19 +0300 Subject: [PATCH] Updated README.md --- README.md | 5 ++++- app/library/HttpSocket.py | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3a3c1101..26dbd2a0 100644 --- a/README.md +++ b/README.md @@ -14,12 +14,15 @@ YTPTube started as a fork of [meTube](https://github.com/alexta69/metube), Since * Support per link `yt-dlp JSON config or cli options`, `cookies` & `output format`. * Queue multiple URLs separated by comma. * A built in video player that can play any video file regardless of the format. **With support for sidecar external subtitles**. -* New `/api/add_batch` endpoint that allow multiple links to be sent. +* New `POST /api/history` endpoint that allow one or multiple links to be sent at the same time. +* New `GET /api/history/add?url=http://..` endpoint that allow to add single item via GET request. * Completely redesigned the frontend UI. * Switched out of binary file storage in favor of SQLite. * Basic Authentication support. * Support for curl_cffi, see [yt-dlp documentation](https://github.com/yt-dlp/yt-dlp?tab=readme-ov-file#impersonation) * Support for both advanced and basic mode for WebUI. + +For more API endpoints, please refer to the [API documentation](API.md). ### Tips Your `yt-dlp` config should include the following options for optimal working conditions. diff --git a/app/library/HttpSocket.py b/app/library/HttpSocket.py index 62d7276f..c7c74123 100644 --- a/app/library/HttpSocket.py +++ b/app/library/HttpSocket.py @@ -1,7 +1,6 @@ import asyncio import errno import functools -import json import logging import os import pty