fix(import): wait for state=1 published and enable instant 720p H.264 faststart publishing without transcoding delay (v1.7.11)

This commit is contained in:
Enes Yakıştır
2026-11-04 05:02:41 +03:00
parent 2b48dce79b
commit 37849474e3
2 changed files with 4 additions and 7 deletions
+3 -6
View File
@@ -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);
+1 -1
View File
@@ -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",