Skip to content

Commit

Permalink
Update author metadata after pcgames.de redesign.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mailaender committed Dec 2, 2023
1 parent 7bf0dfb commit 7efbbf6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PC Games.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2021-04-06 11:16:12"
"lastUpdated": "2023-12-02 16:51:38"
}

/*
***** BEGIN LICENSE BLOCK *****
Copyright © 2021 Matthias Mailänder
Copyright © 2021-2023 Matthias Mailänder
This file is part of Zotero.
Expand Down Expand Up @@ -61,7 +61,7 @@ function scrape(doc, url) {
item.publicationTitle = "PC Games";
item.language = "de-DE";
item.creators = []; // reset bad author metadata
var authorMetadata = doc.querySelectorAll('a[class="editorNameLink "]');
var authorMetadata = doc.querySelectorAll('a[class="authorName"]');

Check warning on line 64 in PC Games.js

View workflow job for this annotation

GitHub Actions / Lint, Check, Test

Prefer .class over [class="class"]
for (let author of authorMetadata) {
item.creators.push(ZU.cleanAuthor(author.text, "author"));
}
Expand Down

0 comments on commit 7efbbf6

Please sign in to comment.