Skip to content

Commit f273fe9

Browse files
committed
Fix youtube connector
Fix CSS selector of the video description element.
1 parent f0649df commit f273fe9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/connectors/youtube.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const videoSelector = '.html5-main-video';
2121
const chapterNameSelector = '.html5-video-player .ytp-chapter-title-content';
2222
const videoTitleSelector = '.html5-video-player .ytp-title-link';
2323
const channelNameSelector = '#top-row .ytd-channel-name a';
24+
const videoDescriptionSelector = '#meta-contents #description';
2425

2526
// Dummy category indicates an actual category is being fetched
2627
const categoryPending = 'YT_DUMMY_CATEGORY_PENDING';
@@ -206,7 +207,7 @@ async function readConnectorOptions() {
206207
}
207208

208209
function getVideoDescription() {
209-
return $('#description').text();
210+
return Util.getTextFromSelectors(videoDescriptionSelector);
210211
}
211212

212213
function getTrackInfoFromDescription() {

0 commit comments

Comments
 (0)