aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--stella.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/stella.js b/stella.js
index 6beb85a..5c2cf2e 100644
--- a/stella.js
+++ b/stella.js
@@ -934,10 +934,14 @@ Thanks:
get pageinfo () {
let doc = content.document;
+ let wd = doc.querySelector('#watch-description > div > span > span.watch-video-date');
+ let desc = wd.nextSibling;
+ while (desc && desc.tagName != 'SPAN')
+ desc = desc.nextSibling;
return [
[
'comment',
- doc.querySelector('#watch-description > div > span > span > a').nextSibling.textContent.trim()
+ desc ? desc.textContent.trim() : ''
],
[
'tags',