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

Fixes #306, load playlists from server-local directory #307

Closed
wants to merge 2 commits into from

Conversation

xxxserxxx
Copy link
Contributor

This is a naïve implementation of loading playlists from a directory on the server. It adds a configuration option for telling the server where the directory of playlists is, and it will (recursively) load any .m3u and .m3u8 files it finds there. The playlists are added under the default admin user, and are set public.

Playlists are loaded into the DB as if they'd been uploaded by the user through the UI. The code for doing so was reused; the biggest change was relocating the code that does that from the ctrladmin package to the scanner package.

As discussed in #306, this may not be the way gonic wants to handle playlists going forward; however, that sort of change would (a) require more discussion and/or design, and (b) be a lot bigger. I believe that this PR would neither impede nor make such a more radical design change more difficult to implement, and as it addresses the request I'm submitting it even though it may not be the ideal, ultimate design.

sentriz added a commit that referenced this pull request Apr 22, 2023
sentriz added a commit that referenced this pull request Apr 22, 2023
sentriz added a commit that referenced this pull request May 6, 2023
sentriz added a commit that referenced this pull request May 6, 2023
@sentriz sentriz closed this in #311 May 6, 2023
sentriz added a commit that referenced this pull request May 6, 2023
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.

None yet

1 participant