Skip to content

Commit

Permalink
feat(playlist): assume playlists in the root dir without a user dir b…
Browse files Browse the repository at this point in the history
…elong to admin (#499)
  • Loading branch information
xxxserxxx authored May 1, 2024
1 parent 559c910 commit f5893ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playlist/playlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (s *Store) Read(relPath string) (*Playlist, error) {

playlist.UserID, err = userIDFromPath(relPath)
if err != nil {
return nil, fmt.Errorf("convert id to str: %w", err)
playlist.UserID = 1
}

playlist.Name = strings.TrimSuffix(filepath.Base(relPath), filepath.Ext(relPath))
Expand Down

0 comments on commit f5893ea

Please sign in to comment.