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

add multiple entrypoint support - fixes #63 #64

Merged
merged 2 commits into from
Jul 18, 2018

Conversation

cwoac
Copy link
Contributor

@cwoac cwoac commented Jul 17, 2018

Since you cannot specify the same environment variable multiple times, and minidnla requires each media directory to be passed as a separate parameter, I added another check for any environment variable starting with MEDIA_DIR. This would resolve #63. Existing configs using MINIDNLA_MEDIA_DIR= will still work as well.

@cwoac cwoac requested a review from vladgh as a code owner July 17, 2018 22:21
@cwoac cwoac changed the title add multiple entrypoint support - fixes add multiple entrypoint support - fixes #63 Jul 17, 2018
@cwoac cwoac force-pushed the multiple_media_dirs branch from eb30e70 to cb93672 Compare July 17, 2018 22:25
@vladgh vladgh self-assigned this Jul 18, 2018
Copy link
Owner

@vladgh vladgh left a comment

Choose a reason for hiding this comment

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

Thank you for this PR. It's a very elegant solution to declaring multiple media_dirs. However, I would like to make a few changes. First, it would be best if the variable name stays in the MINIDLNA_ namespace (so that means for example MINIDLNA_MEDIA_DIR_1). In addition, nesting the IF will get rid of duplicate code. I'll try to change it.

@vladgh
Copy link
Owner

vladgh commented Jul 18, 2018

Let me know what you think.

@cwoac
Copy link
Contributor Author

cwoac commented Jul 18, 2018

That seems a perfectly fine way of doing it.

@vladgh vladgh merged commit 262d8e9 into vladgh:master Jul 18, 2018
@cwoac cwoac deleted the multiple_media_dirs branch August 10, 2018 09:35
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.

Multiple "media_dir" configuration not supported in MiniDLNA container
2 participants