Skip to content

Commit

Permalink
update new link format from douban app
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name authored and alphatownsman committed Oct 13, 2024
1 parent 944b6e6 commit 736a2f4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions catalog/sites/douban_book.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class DoubanBook(AbstractSite):
r"\w+://book\.douban\.com/subject/(\d+)/{0,1}",
r"\w+://m.douban.com/book/subject/(\d+)/{0,1}",
r"\w+://www.douban.com/doubanapp/dispatch\?uri=/book/(\d+)/",
r"\w+://www.douban.com/doubanapp/dispatch/book/(\d+)",
]
WIKI_PROPERTY_ID = "?"
DEFAULT_MODEL = Edition
Expand Down
6 changes: 5 additions & 1 deletion catalog/sites/douban_drama.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ class DoubanDramaVersion(AbstractSite):

SITE_NAME = SiteName.Douban
ID_TYPE = IdType.DoubanDramaVersion
URL_PATTERNS = [r"\w+://www.douban.com/location/drama/(\d+)/#(\d+)$"]
URL_PATTERNS = [
r"\w+://www.douban.com/location/drama/(\d+)/#(\d+)$",
r"\w+://www.douban.com/doubanapp/dispatch\?uri=/drama/(\d+)/",
r"\w+://www.douban.com/doubanapp/dispatch/drama/(\d+)",
]

WIKI_PROPERTY_ID = "?"
DEFAULT_MODEL = PerformanceProduction
Expand Down
1 change: 1 addition & 0 deletions catalog/sites/douban_game.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class DoubanGame(AbstractSite):
r"\w+://www\.douban\.com/game/(\d+)/{0,1}",
r"\w+://m.douban.com/game/subject/(\d+)/{0,1}",
r"\w+://www.douban.com/doubanapp/dispatch\?uri=/game/(\d+)/",
r"\w+://www.douban.com/doubanapp/dispatch/game/(\d+)",
]
WIKI_PROPERTY_ID = ""
DEFAULT_MODEL = Game
Expand Down
1 change: 1 addition & 0 deletions catalog/sites/douban_movie.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class DoubanMovie(AbstractSite):
r"\w+://movie\.douban\.com/subject/(\d+)/{0,1}",
r"\w+://m.douban.com/movie/subject/(\d+)/{0,1}",
r"\w+://www.douban.com/doubanapp/dispatch\?uri=/movie/(\d+)/",
r"\w+://www.douban.com/doubanapp/dispatch/movie/(\d+)",
]
WIKI_PROPERTY_ID = "?"
# no DEFAULT_MODEL as it may be either TV Season and Movie
Expand Down
1 change: 1 addition & 0 deletions catalog/sites/douban_music.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class DoubanMusic(AbstractSite):
r"\w+://music\.douban\.com/subject/(\d+)/{0,1}",
r"\w+://m.douban.com/music/subject/(\d+)/{0,1}",
r"\w+://www.douban.com/doubanapp/dispatch\?uri=/music/(\d+)/",
r"\w+://www.douban.com/doubanapp/dispatch/music/(\d+)",
]
WIKI_PROPERTY_ID = ""
DEFAULT_MODEL = Album
Expand Down

0 comments on commit 736a2f4

Please sign in to comment.