Skip to content

Commit

Permalink
Merge pull request #740 from lovegaoshi/dev
Browse files Browse the repository at this point in the history
feat: biliseries new url format
  • Loading branch information
lovegaoshi authored Jan 22, 2025
2 parents a7b4dd6 + 6dd4865 commit 2cec31b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/utils/BiliSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,12 @@ const reExtractions: ReExtraction<NoxNetwork.NoxRegexFetch>[] = [
match: biliSeriesFetch.regexSearchMatch,
fetch: biliSeriesFetch.regexFetch,
},
{
match: biliSeriesFetch.regexSearchMatch2,
fetch: biliSeriesFetch.regexFetch,
},
{ match: biliColleFetch.regexSearchMatch, fetch: biliColleFetch.regexFetch },
{ match: biliColleFetch.regexSearchMatch2, fetch: biliColleFetch.regexFetch },
{
match: biliChannelFetch.regexSearchMatch,
fetch: biliChannelFetch.regexFetch,
Expand Down
2 changes: 2 additions & 0 deletions src/utils/mediafetch/bilicolle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ const resolveURL = () => undefined;
export default {
regexSearchMatch:
/space.bilibili\.com\/(\d+)\/channel\/collectiondetail\?sid=(\d+)/,
// https://space.bilibili.com/1112031857/lists/1269104?type=season
regexSearchMatch2: /space.bilibili\.com\/(\d+)\/lists\/(\d+)\?type=season/,
regexFetch,
regexResolveURLMatch: /^null-/,
resolveURL,
Expand Down
2 changes: 2 additions & 0 deletions src/utils/mediafetch/biliseries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ const resolveURL = () => undefined;
export default {
regexSearchMatch:
/space.bilibili\.com\/(\d+)\/channel\/seriesdetail\?sid=(\d+)/,
//https://space.bilibili.com/3493283607088082/lists/4107910?type=series
regexSearchMatch2: /space.bilibili\.com\/(\d+)\/lists\/(\d+)\?type=series/,
regexFetch,
regexResolveURLMatch: /^null-/,
resolveURL,
Expand Down

0 comments on commit 2cec31b

Please sign in to comment.