From 115152eb27fc919b82f469d5f77afc684c69b67f Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Tue, 28 May 2024 08:52:26 +0000 Subject: [PATCH] vimeo: use playlists directly instead of using master playlist --- src/modules/processing/services/vimeo.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/modules/processing/services/vimeo.js b/src/modules/processing/services/vimeo.js index 69a36eca..c3b8b856 100644 --- a/src/modules/processing/services/vimeo.js +++ b/src/modules/processing/services/vimeo.js @@ -89,11 +89,14 @@ export default async function(obj) { bestVideo = masterJSON_Video.find(i => resolutionMatch[i.width] === quality) } - let masterM3U8 = `${masterJSONURL.split("/sep/")[0]}/sep/video/${bestVideo.id}/master.m3u8`; + const playlistTemplate = `${masterJSONURL.split("/sep/")[0]}/sep/{type}/${bestVideo.id}/playlist.m3u8`; const fallbackResolution = bestVideo.height > bestVideo.width ? bestVideo.width : bestVideo.height; return { - urls: masterM3U8, + urls: [ + playlistTemplate.replace('{type}', 'video'), + playlistTemplate.replace('{type}', 'audio') + ], isM3U8: true, fileMetadata: fileMetadata, filenameAttributes: {