diff --git a/client/pages/share/_slug.vue b/client/pages/share/_slug.vue index fdcbbe500..64c099632 100644 --- a/client/pages/share/_slug.vue +++ b/client/pages/share/_slug.vue @@ -364,7 +364,6 @@ export default { } const startTime = this.playbackSession.currentTime || 0 - this.localAudioPlayer.set(null, this.audioTracks, false, startTime, false) this.localAudioPlayer.on('stateChange', this.playerStateChange.bind(this)) this.localAudioPlayer.on('timeupdate', this.playerTimeUpdate.bind(this)) diff --git a/server/controllers/ShareController.js b/server/controllers/ShareController.js index 73da84a8a..3e7ea1deb 100644 --- a/server/controllers/ShareController.js +++ b/server/controllers/ShareController.js @@ -53,10 +53,6 @@ class ShareController { if (playbackSession) { if (mediaItemShare.id === playbackSession.mediaItemShareId) { Logger.debug(`[ShareController] Found share playback session ${req.cookies.share_session_id}`) - // If ?t was provided, override the cached currentTime - if (startTime > 0 && startTime < playbackSession.duration) { - playbackSession.currentTime = startTime - } mediaItemShare.playbackSession = playbackSession.toJSONForClient() return res.json(mediaItemShare) } else { diff --git a/server/utils/ffmpegHelpers.js b/server/utils/ffmpegHelpers.js index 7ad2a3aee..80832cc77 100644 --- a/server/utils/ffmpegHelpers.js +++ b/server/utils/ffmpegHelpers.js @@ -1,5 +1,4 @@ const axios = require('axios') -const ssrfFilter = require('ssrf-req-filter') const Ffmpeg = require('../libs/fluentFfmpeg') const ffmpgegUtils = require('../libs/fluentFfmpeg/utils') const fs = require('../libs/fsExtra') @@ -98,8 +97,6 @@ async function resizeImage(filePath, outputPath, width, height) { module.exports.resizeImage = resizeImage /** - * Download podcast episode - * Uses SSRF filter to prevent internal URLs * * @param {import('../objects/PodcastEpisodeDownload')} podcastEpisodeDownload * @returns {Promise<{success: boolean, isRequestError?: boolean}>} @@ -124,9 +121,7 @@ module.exports.downloadPodcastEpisode = (podcastEpisodeDownload) => { Accept: '*/*', 'User-Agent': userAgent }, - timeout: global.PodcastDownloadTimeout, - httpAgent: global.DisableSsrfRequestFilter?.(podcastEpisodeDownload.url) ? null : ssrfFilter(podcastEpisodeDownload.url), - httpsAgent: global.DisableSsrfRequestFilter?.(podcastEpisodeDownload.url) ? null : ssrfFilter(podcastEpisodeDownload.url) + timeout: global.PodcastDownloadTimeout }) Logger.debug(`[ffmpegHelpers] Successfully connected with User-Agent: ${userAgent}`)