diff --git a/client.js b/client.js index 6a4e793..1f2ba0c 100644 --- a/client.js +++ b/client.js @@ -4361,12 +4361,12 @@ try { ); } - if (sData.isPublished || (sData.hasFiles && !sData.isImporting && !sData.isFailed && attempts >= 4)) { + if (sData.isPublished) { clearInterval(pollInterval); showModal('🎉 Video Hazır!', 'Video kütüphanenize eklendi. Oynatıcı açılıyor...'); setTimeout(function () { window.location.href = '/videos/watch/' + (sData.uuid || videoUuid); - }, 500); + }, 400); } else if (sData.isFailed) { clearInterval(pollInterval); btn.disabled = false; @@ -6328,10 +6328,7 @@ try { } fetchPluginJson('/status/' + videoId) .then(function (sData) { - if ( - sData && - (sData.isPublished || (sData.hasFiles && !sData.isImporting && !sData.isFailed && attempts >= 4)) - ) { + if (sData && sData.isPublished) { clearInterval(smartPrefetchState.pollTimer); smartPrefetchState.pollTimer = null; var watchUrl = '/videos/watch/' + (sData.uuid || videoUuid); diff --git a/package.json b/package.json index cb4aa40..ac5c515 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "peertube-plugin-yaktube-ondemand", - "version": "1.7.10", + "version": "1.7.11", "description": "Accessible On-Demand YouTube Import, Live Streams, Smart Recommendations, Sleep Timer, Touch Gestures, Voice Assistant & A11y Engine for PeerTube", "main": "main.js", "library": "./main.js",