refactor: hardcode secret key in crypto package

This commit is contained in:
Mathis Maquenne
2026-03-01 21:57:38 +01:00
parent 650d578b80
commit cf699834f6
3 changed files with 9 additions and 12 deletions
+1 -1
View File
@@ -175,7 +175,7 @@ func (c *Client) downloadSong(ctx context.Context, resource deezer.Resource, son
fileName := song.GetFileName(c.resourceType, mediaFormat)
outputPath := path.Join(outputDir, fileName)
key := crypto.GetKey(c.appConfig.SecretKey, song.ID)
key := crypto.GetKey(song.ID)
if err := c.streamToFile(dlCtx, stream, outputPath, key); err != nil {
fileutil.DeleteFile(outputPath)
return downloadResult{err: fmt.Errorf("failed to stream to file: %w", err)}