Skip to content

Commit

Permalink
Douban: support numeric userID for multiple
Browse files Browse the repository at this point in the history
  • Loading branch information
yuchen-lea committed Aug 7, 2024
1 parent f8bc01e commit 4267248
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Douban.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"translatorID": "fc353b26-8911-4c34-9196-f6f567c93901",
"label": "Douban",
"creator": "Ace Strong<[email protected]>",
"target": "^https?://(www|book)\\.douban\\.com/(subject|doulist|people/[a-zA-Z._]*/(do|wish|collect)|.*?status=(do|wish|collect)|group/[0-9]*?/collection|tag)",
"target": "^https?://(www|book)\\.douban\\.com/(subject|doulist|people/[a-zA-Z0-9._]*/(do|wish|collect)|.*?status=(do|wish|collect)|group/[0-9]*?/collection|tag)",
"minVersion": "2.0rc1",
"maxVersion": "",
"priority": 100,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2020-06-04 03:46:18"
"lastUpdated": "2024-08-07 08:46:18"
}

/*

Check warning on line 15 in Douban.js

View workflow job for this annotation

GitHub Actions / Lint, Check, Test

Copyright preferred to be GNU Affero General Public License
Expand Down Expand Up @@ -189,7 +189,7 @@ function scrapeAndParse(doc, url) {
// #########################

function detectWeb(doc, url) {
var pattern = /subject_search|doulist|people\/[a-zA-Z._]*?\/(?:do|wish|collect)|.*?status=(?:do|wish|collect)|group\/[0-9]*?\/collection|tag/;
var pattern = /subject_search|doulist|people\/[a-zA-Z0-9._]*?\/(?:do|wish|collect)|.*?status=(?:do|wish|collect)|group\/[0-9]*?\/collection|tag/;

if (pattern.test(url)) {
return "multiple";
Expand Down

0 comments on commit 4267248

Please sign in to comment.