Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default - allow slideshow to play directories, update dependencies #200

Merged
merged 2 commits into from
Nov 29, 2024

Conversation

walterjwhite
Copy link
Contributor

I tested this for small directories only, this will be a problem for larger directories.

cmd/slideshow.go Outdated
if !fileInfo.Mode().IsDir() {
filename := path

if strings.HasSuffix(strings.ToLower(path), "jpg") {
Copy link
Owner

Choose a reason for hiding this comment

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

Do you mind updating this to be a list of all supported filetypes if we're going to filter like this: https://github.com/vishen/go-chromecast/blob/master/application/application.go#L714-L722?

If you wanted, feel free to add a flag to filter only specific image types.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I updated this to use the list of file extensions in the other file.

Thanks,

Walter

@vishen vishen merged commit da6e6c1 into vishen:master Nov 29, 2024
12 checks passed
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.

2 participants