mirror of
https://github.com/chrisbenincasa/tunarr.git
synced 2026-04-18 09:03:35 -04:00
refactor: log full error when subtitle download fails
This commit is contained in:
@@ -69,7 +69,8 @@ export class ExternalSubtitleDownloader {
|
||||
|
||||
if (subtitlesRes.isFailure()) {
|
||||
this.logger.warn(
|
||||
'Error while requesting external subtitle stream from Jellyfin: %s',
|
||||
subtitlesRes.error,
|
||||
'Error while requesting external subtitle stream: %s',
|
||||
subtitlesRes.error.message ?? '',
|
||||
);
|
||||
return;
|
||||
|
||||
@@ -474,6 +474,7 @@ export class PlexStreamDetails extends ExternalStreamDetailsFetcher<PlexT> {
|
||||
|
||||
this.logger.warn(
|
||||
'Skipping external subtitles at index %d because download failed. Please check logs and file an issue for assistance.',
|
||||
stream.index ?? -1,
|
||||
);
|
||||
|
||||
return;
|
||||
@@ -536,25 +537,4 @@ export class PlexStreamDetails extends ExternalStreamDetailsFetcher<PlexT> {
|
||||
|
||||
return streamDetails;
|
||||
}
|
||||
|
||||
// private getPlexTranscodeStreamUrl(key: string) {
|
||||
// const query = querystring.encode({
|
||||
// ...DefaultPlexHeaders,
|
||||
// 'X-Plex-Token': this.server.accessToken,
|
||||
// Connection: 'keep-alive',
|
||||
// path: key,
|
||||
// mediaIndex: 0,
|
||||
// partIndex: 0,
|
||||
// fastSeek: 1,
|
||||
// directPlay: true,
|
||||
// directStream: true,
|
||||
// directStreamAudio: true,
|
||||
// copyts: false,
|
||||
// });
|
||||
|
||||
// return `${trimEnd(
|
||||
// this.server.uri,
|
||||
// '/',
|
||||
// )}/video/:/transcode/universal/start.m3u8?${query}`;
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user