Skip to content

Commit

Permalink
YouTube: Grab correct creator name on desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
AbeJellinek committed Feb 5, 2024
1 parent ac6628e commit 12021cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions YouTube.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2023-01-17 19:11:42"
"lastUpdated": "2024-02-05 18:28:26"
}

/*
Expand Down Expand Up @@ -129,7 +129,7 @@ function scrape(doc, url) {
) || jsonLD.uploadDate; // Mobile on initial page load

var author = text(doc, '#meta-contents #text-container .ytd-channel-name') // Desktop
|| text(doc, '#text-container .ytd-channel-name')
|| text(doc, '#upload-info #text-container .ytd-channel-name')
|| text(doc, '.slim-owner-channel-name'); // Mobile
if (author) {
item.creators.push({
Expand Down

0 comments on commit 12021cd

Please sign in to comment.