diff --git a/client.js b/client.js index 1179490..ace4897 100644 --- a/client.js +++ b/client.js @@ -1016,15 +1016,18 @@ try { return; } - if (img.src && (img.src.includes('logo') || img.className.includes('logo'))) { - img.setAttribute('alt', getInstanceName() + ' Logo'); - return; - } - var parentLink = img.closest('a'); if (parentLink && parentLink.textContent && parentLink.textContent.trim().length > 0) { img.setAttribute('alt', ''); - } else if (parentLink && parentLink.getAttribute('title')) { + return; + } + + if (img.src && (img.src.includes('logo') || img.className.includes('logo'))) { + img.setAttribute('alt', getInstanceName()); + return; + } + + if (parentLink && parentLink.getAttribute('title')) { img.setAttribute('alt', parentLink.getAttribute('title')); } else { img.setAttribute('alt', 'Görsel'); diff --git a/package.json b/package.json index be9a5fc..07d071e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "peertube-plugin-yaktube-ondemand", - "version": "1.7.1", + "version": "1.7.2", "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",