Skip to content

Commit

Permalink
fix: correctly process jwl playlist items with special characters (#2286
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mtdvlpr committed Nov 30, 2023
1 parent aeaba9e commit 350e40c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/components/manage/ManageMedia.vue
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ export default defineComponent({
// Get correct extension
media.map((m) => {
if (!extname(m.Label ?? '')) {
if (!extname(m.Label ?? '') || (!this.$isImage(m.Label ?? '') && !this.$isVideo(m.Label ?? '') && !this.$isAudio(m.Label ?? ''))) {
if (extname(m.FilePath ?? '')) {
m.Label += extname(m.FilePath!)
} else if (m.MimeType) {
Expand Down

0 comments on commit 350e40c

Please sign in to comment.