Skip to content

Commit

Permalink
Download track title update
Browse files Browse the repository at this point in the history
  • Loading branch information
jgb-solutions committed Aug 28, 2022
1 parent eb4258d commit d51b1a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/database/requests.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ import {
RANDOM_PLAYLISTS_NUMBER,
RANDOM_ARTISTS_NUMBER,
RANDOM_ALBUMS_NUMBER,
APP_NAME,
} from '~/utils/constants'
import {
ARTIST_DEFAULT_POSTER,
DOMAIN,
TRACK_DEFAULT_POSTER,
} from '~/utils/constants.server'
import { db } from './db.server'
Expand Down Expand Up @@ -1057,7 +1059,7 @@ export async function getTrackDownload(hash: number) {
const downloadUrl = getSignedDownloadUrl({
bucket: audioBucket,
resource: audioName,
trackTitle: title,
trackTitle: `${title} by ${artist.stageName} | Downloaded from ${APP_NAME} (${DOMAIN})`,
})

return {
Expand Down
4 changes: 4 additions & 0 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ PORT = "8080"

SOCIAL_REDIRECT_URL = "https://mp3pam.com/auth"

# Buckets
IMAGE_BUCKET = "img-storage-prod.mp3pam.com"
AUDIO_BUCKET = "audio-storage-prod.mp3pam.com"

[experimental]
allowed_public_ports = []
auto_rollback = true
Expand Down

0 comments on commit d51b1a7

Please sign in to comment.