Repository navigation
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
I like the API-oriented hierarchy: |
|
@copilot please address the other review comments |
…Kit, awaitable batches Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
…d group stub commands Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Tyrrrz
left a comment
There was a problem hiding this comment.
@copilot added some more comments as part of this review.
Additionally, what do you think about renaming the commands to make them more natural, even though it breaks 1:1 naming parity with the library?
Examples:
videos get->video getvideos streams get->video stream getvideos streams get-manifest->video stream manifestplaylists get-videos->playlist videossearch get-videos->search videos
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
I'd go for it: singular nouns read naturally (
Two questions: should |
|
…h into one command with --filter Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Yes, I think the |
Done (ab99b8e).
|
There was a problem hiding this comment.
🟡 Changes recommended
Critical JSON deserialization defects break CLI media input, while mismatched restore and publish settings leave clean CI runners without required linker/runtime assets.
2 open issues
What changed in this PR
Adds YoutubeExplode.Cli as the yte .NET tool, exposing the library through terminal commands for scripting, downloading, and debugging, as requested in #977.
Changes:
- Adds video, stream, caption, playlist, channel, and search commands with JSON input/output and progress on stderr.
- Supports FFmpeg executable or directory paths and provides CLI installation guidance.
- Replaces the CLI demo, documents usage, and adds platform-specific binary packaging and release uploads.
| File | Description |
|---|---|
YoutubeExplode.slnx |
Replaces the demo project with the CLI. |
YoutubeExplode.Demo.Cli/YoutubeExplode.Demo.Cli.csproj |
Removes the demo project definition. |
YoutubeExplode.Demo.Cli/Utils/ConsoleProgress.cs |
Removes the demo progress renderer. |
YoutubeExplode.Demo.Cli/Program.cs |
Removes the interactive download demo. |
YoutubeExplode.Converter/FFmpeg.cs |
Resolves directory paths to FFmpeg executables. |
YoutubeExplode.Cli/YoutubeExplode.Cli.csproj |
Defines the yte tool and dependencies. |
YoutubeExplode.Cli/Utils/VideoIdConverter.cs |
Adds video ID JSON conversion. |
YoutubeExplode.Cli/Utils/UserNameConverter.cs |
Adds username JSON conversion. |
YoutubeExplode.Cli/Utils/StreamInfoDto.cs |
Maps input metadata to concrete stream types. |
YoutubeExplode.Cli/Utils/StreamInfoConverter.cs |
Enables concrete stream metadata serialization. |
YoutubeExplode.Cli/Utils/SearchResultConverter.cs |
Enables concrete search-result serialization. |
YoutubeExplode.Cli/Utils/RuntimeTypeConverter.cs |
Serializes interfaces using runtime types. |
YoutubeExplode.Cli/Utils/PlaylistIdConverter.cs |
Adds playlist ID JSON conversion. |
YoutubeExplode.Cli/Utils/JsonSerializerContext.cs |
Registers JSON models and converters. |
YoutubeExplode.Cli/Utils/IdentifierConverter.cs |
Provides shared string-based identifier conversion. |
YoutubeExplode.Cli/Utils/Extensions/ConsoleExtensions.cs |
Adds Spectre.Console progress on stderr. |
YoutubeExplode.Cli/Utils/ChannelSlugConverter.cs |
Adds channel slug JSON conversion. |
YoutubeExplode.Cli/Utils/ChannelIdConverter.cs |
Adds channel ID JSON conversion. |
YoutubeExplode.Cli/Utils/ChannelHandleConverter.cs |
Adds channel handle JSON conversion. |
YoutubeExplode.Cli/Readme.md |
Documents installation, commands, and pipelines. |
YoutubeExplode.Cli/Program.cs |
Builds and runs the CliFx application. |
YoutubeExplode.Cli/Commands/Videos/VideoGetCommand.cs |
Outputs video metadata as JSON. |
YoutubeExplode.Cli/Commands/Videos/VideoDownloadCommand.cs |
Downloads converted videos with FFmpeg guidance. |
YoutubeExplode.Cli/Commands/Videos/VideoCommand.cs |
Defines the video command group. |
YoutubeExplode.Cli/Commands/Videos/Streams/StreamManifestCommand.cs |
Outputs available stream metadata. |
YoutubeExplode.Cli/Commands/Videos/Streams/StreamGetCommand.cs |
Writes raw stream data to stdout. |
YoutubeExplode.Cli/Commands/Videos/Streams/StreamDownloadCommand.cs |
Downloads selected streams to files. |
YoutubeExplode.Cli/Commands/Videos/Streams/StreamCommand.cs |
Defines the stream command group. |
YoutubeExplode.Cli/Commands/Videos/ClosedCaptions/ClosedCaptionManifestCommand.cs |
Outputs available caption tracks. |
YoutubeExplode.Cli/Commands/Videos/ClosedCaptions/ClosedCaptionGetCommand.cs |
Outputs caption contents as JSON. |
YoutubeExplode.Cli/Commands/Videos/ClosedCaptions/ClosedCaptionDownloadCommand.cs |
Downloads caption tracks as SRT files. |
YoutubeExplode.Cli/Commands/Videos/ClosedCaptions/ClosedCaptionCommand.cs |
Defines the caption command group. |
YoutubeExplode.Cli/Commands/Search/SearchCommand.cs |
Searches with optional result-type filtering. |
YoutubeExplode.Cli/Commands/Playlists/PlaylistVideosCommand.cs |
Outputs playlist videos as a JSON array. |
YoutubeExplode.Cli/Commands/Playlists/PlaylistGetCommand.cs |
Outputs playlist metadata. |
YoutubeExplode.Cli/Commands/Playlists/PlaylistCommand.cs |
Defines the playlist command group. |
YoutubeExplode.Cli/Commands/Channels/ChannelKind.cs |
Defines supported channel identifier kinds. |
YoutubeExplode.Cli/Commands/Channels/ChannelGetCommand.cs |
Retrieves channels by identifier kind. |
YoutubeExplode.Cli/Commands/Channels/ChannelCommand.cs |
Defines the channel command group. |
YoutubeExplode.Cli/Commands/Base/StreamCommandBase.cs |
Reads stream metadata from stdin. |
YoutubeExplode.Cli/Commands/Base/CommandBase.cs |
Shares JSON handling, cancellation, and error translation. |
YoutubeExplode.Cli/Commands/Base/ClosedCaptionTrackCommandBase.cs |
Reads caption track metadata from stdin. |
Readme.md |
Links to the new CLI project. |
Directory.Packages.props |
Adds CliFx and Spectre.Console versions. |
.github/workflows/main.yml |
Publishes platform binaries and uploads release archives. |
Review effort: Balanced
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
|
@copilot please fix merge conflicts, prioritizing upstream where it's newer |
# Conflicts: # Directory.Packages.props # YoutubeExplode.Demo.Cli/YoutubeExplode.Demo.Cli.csproj Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
|
@copilot build errors on CI |
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Merged |
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Fixed in |

Implements #977.
YoutubeExplode.Cliproject (CliFx + Spectre.Console, packaged as theyte.NET tool) withvideo,video stream,video cc,playlist,channelandsearchcommands.YoutubeExplode.Converter: FFmpeg path may now be a file or a directory; a clear error is thrown when FFmpeg can't be started, and the CLI prints installation instructions.YoutubeExplode.Demo.Cli; added a local readme and linked it from the main readme.Note: the commands were not exercised against live YouTube (no network access in the dev environment); build, pack,
--helpand error paths were verified.