Skip to content

Commit

Permalink
feat(app): update pikpak url
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Mar 29, 2024
1 parent df06e19 commit 2bb2a99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/app/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ export function getRuntimeEnv(locals: App.Locals): Env | undefined {

export function getPikPakUrlChecker(magnet: string) {
const prefix = magnet.split('&')[0];
return `https://mypikpak.com/drive/url-checker?url=${prefix}`;
const replaced = prefix.replace(/^magnet:\?xt/, 'magnet:?xt.1');
return `https://mypikpak.com/drive/url-checker?url=${replaced}`;
}

0 comments on commit 2bb2a99

Please sign in to comment.