-
Notifications
You must be signed in to change notification settings - Fork 756
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Douban: support numeric userID for multiple
- Loading branch information
1 parent
f8bc01e
commit 4267248
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
} | ||
|
||
/* | ||
|
@@ -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"; | ||
|