fix magnet link generation
add magnet link to detail pages