r/PowerShell • u/Old_Employment8066 • Sep 15 '26
Script Sharing A yt-dlp front-end in one PowerShell script, with a one-click YouTube sign-in
I wanted a downloader for friends who won't use a terminal, without shipping Python or Electron. So it's a single .ps1 — the whole window is WPF, compiled to an exe with ps2exe. Unzip and run, no console window, nothing installed.
https://github.com/Pronexsteam/deviload (MIT, portable zip in Releases)
Signing in: Chrome and Edge encrypt cookies now, so most people end up installing a cookie-export extension to download anything that needs an account. Here you press one button, log into Google in a small built-in browser window, and the app saves the session for yt-dlp itself. Works for the "confirm you're not a bot" refusals, private and members-only videos.
Also: download queue, playlists, split by chapters, trim with a preview, GIF from a selection, MP3/FLAC, subtitles, SponsorBlock, light/dark, English and Russian.
PS 5.1 notes: @() over a List[Object] that came from New-Object throws "Argument types do not match" (PSObject wrapper; only [Object], only List) — [List[Object]]::new() is fine. A hidden-window launcher through start still flashes a console, a two-line .vbs doesn't.
A lot of the code was written with Claude Code; I directed it and tested every build. Questions welcome.
9
u/TheZwieb2 Sep 16 '26
This is not a constructive comment by any means— but holy moly this is cool. Trying to get cookies exported so I could download age restricted videos was a tremendous pain. Great work.
3
u/MonkeyNin Sep 16 '26 edited Sep 16 '26
What was the error? That snippet works fine
2
u/Andrew-Powershell Sep 16 '26
that's a pretty cool bot. the login process isn't the most fun for ytdlp
2
u/BuffaloFingers Sep 21 '26
This is really great! I've been trying to get yt-dlp to work with YouTube Music for a week, and there was always some issue or another. This worked perfectly the first time!
This is for adding MP3s to my Shokz headphones, so I'm going to try to cross-post this the Shokz subreddit. Fantastic job!
1
u/Old_Employment8066 Sep 24 '26
so this turned into a full rework. deviload 2.0 is out and its not powershell anymore. people kept asking for a mac version and a ps1 with a wpf window cant go there, so i rewrote the whole thing in rust + tauri
same idea but a lot more in it now: one click youtube login like before, following channels and playlists so new videos download by themselves, a small video editor, sending files to your phone with a qr code, and it updates itself. theres a mac test build too
2.0: github.com/Pronexsteam/deviload/releases/latest
the powershell version from this post is still there as 1.1.0 if you want the script: github.com/Pronexsteam/deviload/releases/tag/v1.1.0
0
u/Same-Worldliness-433 Oct 20 '26
can it download private videos?
1
u/[deleted] Oct 19 '26
[removed] — view removed comment