diff --git a/package.json b/package.json index edc8797c5ceaf..26a4227ab5c3f 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,7 @@ "vue-router": "^3.6.5", "vue-tiny-slider": "^0.1.39", "vuex": "^3.6.2", - "youtubei.js": "^3.3.0" + "youtubei.js": "^4.0.1" }, "devDependencies": { "@babel/core": "^7.21.0", diff --git a/src/renderer/views/Watch/Watch.js b/src/renderer/views/Watch/Watch.js index 3c242d5e73028..a899d5b226699 100644 --- a/src/renderer/views/Watch/Watch.js +++ b/src/renderer/views/Watch/Watch.js @@ -1211,7 +1211,7 @@ export default defineComponent({ * @param {VideoInfo} videoInfo */ createLocalDashManifest: async function (videoInfo) { - const xmlData = videoInfo.toDash() + const xmlData = await videoInfo.toDash() const userData = await getUserDataPath() let fileLocation let uriSchema diff --git a/yarn.lock b/yarn.lock index bc08bf3d0ed57..a70fa1d692775 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9188,10 +9188,10 @@ yocto-queue@^0.1.0: resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== -youtubei.js@^3.3.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/youtubei.js/-/youtubei.js-3.3.0.tgz#e02367cad9504a0b592f819721913b580c7e0674" - integrity sha512-tPel0BFZpzaEuCaXzm5XTPwFpM9tCFLivP/TiS4a9zo+bvp4cSV1paS16XucQ8IWAaYAGHuO8Dtevterlu6LNA== +youtubei.js@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/youtubei.js/-/youtubei.js-4.0.1.tgz#062c16f806490170d0833fb9bf19b9dfe993c125" + integrity sha512-htiDtHvQfzLTpi7T0VpfSUvduNghXxvx8PnBEVFoGqMr2Wa9K1LKwpcfTdZmze3vkpycfRmTNVRapWZkaPrtNw== dependencies: jintr "^0.4.1" linkedom "^0.14.12"