Skip to content

Commit

Permalink
fix: dmhy detail magnet tag
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Jun 14, 2023
1 parent f6a8ec8 commit 3587647
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/animegarden/src/dmhy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,9 @@ export async function fetchDmhyDetail(
const description = $('.topic-nfo').html()?.trim() ?? '';

const magnetUser = $('#resource-tabs #tabs-1 p:nth-child(1) a').attr('href')?.trim() ?? '';
const magnetHref = $('#resource-tabs #tabs-1 p:nth-child(2) a').attr('href')?.trim() ?? '';
const magnetHref2 = $('#resource-tabs #tabs-1 #magnet2').attr('href')?.trim() ?? '';
const magnetDdplay =
$('#resource-tabs #tabs-1 p:nth-child(8) a:first-of-type').attr('href')?.trim() ?? '';
const magnetHref = $('#a_magnet').attr('href')?.trim() ?? '';
const magnetHref2 = $('#magnet2').attr('href')?.trim() ?? '';
const magnetDdplay = $('#ddplay').attr('href')?.trim() ?? '';

let hasMoreFiles = false;
const files = $('.file_list li')
Expand Down

0 comments on commit 3587647

Please sign in to comment.