Update:Podcast episode downloader only takes audio streams #2858

This commit is contained in:
advplyr 2024-04-17 17:09:36 -05:00
parent f0caf1a933
commit dbe10382fd
2 changed files with 3 additions and 2 deletions

View File

@ -104,7 +104,8 @@ module.exports.downloadPodcastEpisode = (podcastEpisodeDownload) => {
const ffmpeg = Ffmpeg(response.data) const ffmpeg = Ffmpeg(response.data)
ffmpeg.addOption('-loglevel debug') // Debug logs printed on error ffmpeg.addOption('-loglevel debug') // Debug logs printed on error
ffmpeg.outputOptions( ffmpeg.outputOptions(
'-c', 'copy', '-c:a', 'copy',
'-map', '0:a',
'-metadata', 'podcast=1' '-metadata', 'podcast=1'
) )

View File

@ -59,7 +59,7 @@ async function getFileTimestampsWithIno(path) {
ino: String(stat.ino) ino: String(stat.ino)
} }
} catch (err) { } catch (err) {
Logger.error('[fileUtils] Failed to getFileTimestampsWithIno', err) Logger.error(`[fileUtils] Failed to getFileTimestampsWithIno for path "${path}"`, err)
return false return false
} }
} }