Skip to content

feat: ✨ Add Out-PodView function for custom episode display - #3

Open
trackd wants to merge 3 commits into
jdhitsolutions:mainfrom
trackd:feature/OutPodview
Open

trackd wants to merge 3 commits into
jdhitsolutions:mainfrom
trackd:feature/OutPodview

Conversation

@trackd

@trackd trackd commented Dec 18, 2025 •

Copy link
Copy Markdown
  • Introduced Out-PodView function to format and display podcast episode information with Sixel graphics.
  • Enhanced Get-PSPodcast to include a new parameter Sixel for utilizing the custom formatter.
Get-PSPodcast -Last 1 | Out-PodView
# or
Get-PSPodcast -Last 1 -Sixel

unfortunately you can't really put sixels through the format engine, it gets destroyed.

not sure if this is something you're interested in, but i remembered you could get youtube thumbnail images.. figured it'd be a fun excercise.

basically copied your layout from the Get-AboutPSPodcast function.

image

* Introduced `Out-PodView` function to format and display podcast episode information with Sixel graphics.
* Enhanced `Get-PSPodcast` to include a new parameter `$Sixel` for utilizing the custom formatter.
Copilot AI review requested due to automatic review settings December 18, 2025 23:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new Out-PodView function that provides custom formatting and display of podcast episode information with Sixel graphics support. The enhancement allows users to view episode details with thumbnail images directly in the terminal.

Key changes:

  • Introduces Out-PodView function with Spectre.Console integration for rich visual display
  • Adds -Sixel switch parameter to Get-PSPodcast for using the custom formatter
  • Updates module manifest to export the new function

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

File Description
functions/Out-PodView.ps1 New function that formats episode data with YouTube thumbnails and podcast logo using Spectre.Console
functions/Get-PSPodcast.ps1 Added -Sixel parameter and logic to conditionally call Out-PodView instead of returning raw episode objects
PSPodcast.psd1 Added Out-PodView to the FunctionsToExport array

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread functions/Out-PodView.ps1 Resolved
Comment thread PSPodcast.psd1 Resolved
Comment thread functions/Out-PodView.ps1 Resolved
Comment thread functions/Out-PodView.ps1 Resolved
Comment thread functions/Out-PodView.ps1 Resolved
Comment thread functions/Out-PodView.ps1 Resolved
* Implemented the `Out-PodView` function to display PowerShell Podcast episode information with rich formatting.
* fixed manifest
* Added documentation for `Out-PodView` including usage examples and parameter descriptions.
@jdhitsolutions

Copy link
Copy Markdown
Owner

Because this module should work cross-platform, we should avoid creating paths using a /. Can you revise using Join-Path?

@trackd

trackd commented Dec 19, 2025

Copy link
Copy Markdown
Author

Because this module should work cross-platform, we should avoid creating paths using a /. Can you revise using Join-Path?

i already updated that to use Join-Path, but it was a straight copy from your code.

$img = Get-SpectreImage $PSScriptRoot\..\images\podcast-logo-thumbnail.jpg -MaxWidth 20

do you want me to take a look and update the other paths to use Join-Path as well?

…and update image path in `about.ps1`

* Standardized alignment values to `Left` and `Center` in the format XML.
* Updated image path construction in `Get-AboutPSPodcast` function for better compatibility.
@jdhitsolutions

Copy link
Copy Markdown
Owner

I'll check and test anything I may have missed. I may not get to incorporating your PR until after the holidays. Thanks for your contribution.

@trackd

trackd commented Dec 27, 2025

Copy link
Copy Markdown
Author

I'll check and test anything I may have missed. I may not get to incorporating your PR until after the holidays. Thanks for your contribution.

btw, i think i fixed them all in my last commit 5b08e0a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants