diff --git a/.vscode/settings.json b/.vscode/settings.json index e7fec592..96a1dd3c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -112,6 +112,7 @@ "timespec", "tmpfilename", "ungroup", + "unmark", "unnegated", "unpickleable", "Unraid", diff --git a/API.md b/API.md index 84588a36..ba5d5a29 100644 --- a/API.md +++ b/API.md @@ -25,8 +25,11 @@ This document describes the available endpoints and their usage. All endpoints r - [POST /api/history/{id}](#post-apihistoryid) - [GET /api/history/{id}](#get-apihistoryid) - [GET /api/history](#get-apihistory) + - [DELETE /api/history/{id}/archive](#delete-apihistoryidarchive) + - [POST /api/history/{id}/archive](#post-apihistoryidarchive) - [GET /api/tasks](#get-apitasks) - [PUT /api/tasks](#put-apitasks) + - [POST /api/tasks/{id}/mark](#post-apitasksidmark) - [GET /api/player/playlist/{file:.\*}.m3u8](#get-apiplayerplaylistfilem3u8) - [GET /api/player/m3u8/{mode}/{file:.\*}.m3u8](#get-apiplayerm3u8modefilem3u8) - [GET /api/player/segments/{segment}/{file:.\*}.ts](#get-apiplayersegmentssegmentfilets) @@ -35,16 +38,26 @@ This document describes the available endpoints and their usage. All endpoints r - [GET /api/file/ffprobe/{file:.\*}](#get-apifileffprobefile) - [GET /api/file/info/{file:.\*}](#get-apifileinfofile) - [GET /api/file/browser/{path:.\*}](#get-apifilebrowserpath) - - [GET /api/yt-dlp/archive/recheck](#get-apiyt-dlparchiverecheck) + - [POST /api/file/action/{path:.\*}](#post-apifileactionpath) + - [POST /api/file/download](#post-apifiledownload) + - [GET /api/file/download/{token}](#get-apifiledownloadtoken) - [GET /api/random/background](#get-apirandombackground) - [GET /api/presets](#get-apipresets) + - [GET /api/dl\_fields](#get-apidl_fields) + - [PUT /api/dl\_fields](#put-apidl_fields) - [PUT /api/presets](#put-apipresets) - [GET /api/conditions](#get-apiconditions) - [PUT /api/conditions](#put-apiconditions) + - [POST /api/conditions/test](#post-apiconditionstest) - [GET /api/logs](#get-apilogs) - [GET /api/notifications](#get-apinotifications) - [PUT /api/notifications](#put-apinotifications) + - [POST /api/yt-dlp/archive\_id/](#post-apiyt-dlparchive_id) - [POST /api/notifications/test](#post-apinotificationstest) + - [GET /api/yt-dlp/options](#get-apiyt-dlpoptions) + - [POST /api/system/shutdown](#post-apisystemshutdown) + - [GET /api/dev/loop](#get-apidevloop) + - [GET /api/dev/pip](#get-apidevpip) - [Error Responses](#error-responses) --- @@ -348,6 +361,46 @@ or an error: --- +### DELETE /api/history/{id}/archive +**Purpose**: Remove an item from archive file, allowing it to be re-downloaded. + +**Path Parameter**: +- `id`: Item ID from the history. + +**Response**: +```json +{ "message": "item '
+ The following environment variables and features are deprecated and will be removed in future releases: +
+YTP_KEEP_ARCHIVE and YTP_SOCKET_TIMEOUT will no
+ longer be user-configurable. Their behavior will be part of the default presets. To keep
+ your current behavior and avoid re-downloading, please add the following Command
+ options for yt-dlp to your presets:
+ --socket-timeout 30 --download-archive /config/archive.log
+ /config/ytdlp.cli is deprecated and will be removed. Please
+ migrate any global options into your presets.
+ + These changes help reduce confusion from multiple sources of truth. Going forward, presets + and the Command options for yt-dlp will be the single source of truth. +
+