github voc0der/ytdl-material v1.4.0
ytdl-material v1.4.0

34 minutes ago

🚀 ytdl-material 1.4.0

Stream a link without downloading it, find videos in Discover, and follow downloads from a ring in the toolbar.

✨ What's new

  • Stream without downloading. Search results get a Play here button (▶). For a single link in the box, once its quality, language and subtitle choices have loaded, the ⋯ menu offers Stream, at the quality you picked (Best means up to 1080p), or audio alone with Only Audio on. The player opens over the page with the library player's controls. Download queues the link at the default settings and keeps playing, and Original page opens the source. The server fetches the media as you watch and writes nothing to disk. One file a browser can play, such as YouTube's 360p, seeks like a library file. Anything else, which includes every higher YouTube quality, is copied into an MP4 by ffmpeg as it plays, and seeking past what has arrived starts that copy again from there. A video with ads before it takes a few seconds longer to start, because YouTube holds its media back until then; if it holds it back for over a minute, the stream is refused, so download that one instead. In Safari, pick 360p or lower. A stream lasts four hours. API clients start one with POST /api/createStream and play it from GET /api/streamRemote/{id}. #750 #753 #756
  • Discover. A third library tab, after Videos and Playlists, for finding YouTube videos to stream or download. It is off until an administrator turns it on under Settings → Main → Discover, or with ytdl_discover_enabled=true, and then everyone who can download can use it. Popular is YouTube's most popular chart when the YouTube API key is set, for the country in ytdl_discover_region (the US when blank). Without a key it is YouTube's Top 100 Music Videos Global chart, the one ranking YouTube still shows without one. Recommended appears when the server has a cookies file, and shows that account's home feed to everyone. Search lists channels before videos, and a channel shows its uploads. Every video plays in the stream player, and a card's download button queues it at the default settings without leaving the page. Not in Library, on at the start, hides what you already have; turned off, those videos show an In library badge. With Items per page on Auto, Discover loads the next page as you scroll and fits as many columns as Videos. #751 #758 #759
  • A progress ring instead of the downloads popup. A new download no longer opens a menu. The toolbar shows a ring that fills with the average progress of every download under way, with the percentage in the middle and a count beside it when there is more than one. Select it to see each download, pause or cancel it, or open the Downloads page. When everything has finished, it turns into a green check for a moment. A failed download turns it red, or adds a red dot while others carry on, until you open it; the failure is listed there with its error and a Restart button. A download you cancel counts as neither. #759

🛠️ Fixes

  • A clip no longer stands in for its video. A download trimmed with Crop file kept the video's id, file name and duplicate key, and went into the archive. Downloading the whole video afterwards was then skipped as a duplicate, saved as Title [duplicate-…], or refused by the archive. A clip is now a file of its own, named for its range as in Title [clip 00.10-00.25].mp4, with an .info.json of its own. A clip, from Crop file or Snip, is never a duplicate of its video, is not written to the archive, and is not grouped with the video on the Duplicates page, so removing duplicates never deletes it. #760
  • Rename clips. Clips downloaded before 1.4.0 still have their video's name. Turn on Rename clips in the options of Tasks → Find duplicate files in DB and run it. It lists them, and confirming renames each one, with its .info.json, cover art, .nfo and subtitles, to Title [clip 00.10-00.25] while its download is still listed under Downloads, or to Title [clip 00.03 long], by its length, once it isn't. It also removes the archive entry the clip wrote, unless the library has a copy of the video. Nothing is overwritten. Until it has run, pasted lists, Discover's In library badges and playback links by YouTube id can still take such a clip for its video. #760
  • Warn on duplicate no longer takes another file for the download. With Warn on duplicate on, a file already at a download's path that is not a copy of it now gets the [duplicate-…] name, as it already did with the setting off. Before, yt-dlp treated the file already there as the download. #760
  • The bell turns red only for a failure. Its count is a quiet tint while it only has finished downloads and tasks to report. It turns red, with a different icon, only while an unread notification is a failed download, and a cancelled one does not count. It also fetches when one of your downloads ends, so the notification shows without a reload. #759

📦 Under the hood

  • A stream belongs to the account that started it and expires after four hours. Each account keeps at most 16 and runs at most 3 ffmpeg copies at once, and the server at most 16 copies, after which it answers 503. ffmpeg stops as soon as the viewer leaves. Only http(s) links are streamed, ffmpeg may only use network protocols, so a playlist cannot point it at a local file, and cookies are not forwarded. When ffmpeg fails, the log gives its first error as well as its last. #750 #753 #756
  • De-duped library, a read-only row at the end of Settings → Main → Users, says what multi-user mode already does: each account keeps its own copy of everything it downloads. Sharing one copy is not built, so ytdl_dedupe_library stays false, and the server switches it back off, with a warning in the log, if it is set. #760
  • The image still contains npm 12.2.3's own copy of tar 7.5.22, as 1.3.8's did. GitHub published 19 high-severity advisories against it in December, all about unpacking a hostile archive. npm only uses it to unpack the packages it installs, while the image is built and when the in-app updater runs, so the image scan makes an exception for those 19 in .grype.yaml until npm moves to tar 8.
  • Merges labelled nightly start the nightly build again. GitHub stopped allowing pull_request_target by default on 2 December, so the workflow now runs on pushes to main. #752
  • README badges restyled. #749
  • Dependency refreshes, including Angular 22.3.2 and axios 1.22.0. #754 #755 #757

Full Changelog: v1.3.8...v1.4.0

Changes by @voc0der.

Don't miss a new ytdl-material release

NewReleases is sending notifications on new releases.