Changeset e2c3d09 in Klonkt for src/routes/admin-playlists.js
- Timestamp:
- 07/31/2026 12:33:18 PM (6 weeks ago)
- Branches:
- main
- Children:
- 2dd1dc4
- Parents:
- 859b1707
- File:
-
- 1 edited
-
src/routes/admin-playlists.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/admin-playlists.js
r859b1707 re2c3d09 23 23 import { requireGod } from '../middleware/auth.js'; 24 24 import PlaylistService from '../services/PlaylistService.js'; 25 import { mediaDir } from '../config/paths.js'; 25 26 26 27 // Cover storage — same convention as track covers so a single physical 27 28 // directory holds all album/track artwork. Existing covers in the DB 28 29 // already point at /media/audio-covers/<filename> so we reuse the path. 29 const __dirname = path.dirname(new URL(import.meta.url).pathname); 30 const COVER_DIR = path.resolve( 31 process.env.COVER_PATH || path.join(__dirname, '..', '..', 'storage', 'media', 'audio-covers') 32 ); 30 const COVER_DIR = mediaDir('COVER_PATH', 'audio-covers'); 33 31 fs.mkdirSync(COVER_DIR, { recursive: true }); 34 32
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)