File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import dayjs from "dayjs";
22import fs from "fs" ;
33import { execWithPromise } from "./exec.js" ;
44import { LOG_LEVELS , logMessage } from "./logger.js" ;
5- import { escapeArgForShell } from "./util.js" ;
5+ import { escapeArgForShell , isWin } from "./util.js" ;
66
77export const runFfmpeg = async ( {
88 feed,
@@ -52,14 +52,18 @@ export const runFfmpeg = async ({
5252 artist,
5353 album_artist : artist ,
5454 title,
55- subtitle,
56- comment,
5755 disc,
5856 track,
5957 "episode-type" : episodeType ,
6058 date,
6159 } ;
6260
61+ if ( ! isWin ) {
62+ // Due to limited escape options, these metadata fields often break in Windows
63+ metaKeysToValues . comment = comment ;
64+ metaKeysToValues . subtitle = subtitle
65+ }
66+
6367 const metadataString = Object . keys ( metaKeysToValues )
6468 . map ( ( key ) => {
6569 if ( ! metaKeysToValues [ key ] ) {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import path from "path";
33import rssParser from "rss-parser" ;
44import { logErrorAndExit , logMessage } from "./logger.js" ;
55
6- const isWin = process . platform === "win32" ;
6+ export const isWin = process . platform === "win32" ;
77
88export const defaultRssParserConfig = {
99 defaultRSS : 2.0 ,
You can’t perform that action at this time.
0 commit comments