Skip to content

Commit

Permalink
External tracks now use filename if no metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
PapiOphidian committed Nov 19, 2023
1 parent 6b794ad commit b2ff7e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-website/src/music/tracktypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export class ExternalTrack extends Track {
const to = new URL(info.uri!)
let name = ""

if (!info.title) {
if (!info.title || info.title === "Unknown title") {
const match = pathnamereg.exec(to.pathname)
if (!match) name = lang.GLOBAL.UNKNOWN_TRACK
else name = match[1]
Expand Down

0 comments on commit b2ff7e4

Please sign in to comment.