Everything is in memory now without libs

This commit is contained in:
Ben Sarmiento
2023-10-18 02:06:01 +02:00
parent 0886c93250
commit bd72dc4540
6 changed files with 128 additions and 101 deletions

View File

@@ -79,7 +79,7 @@ func extractIDFromFilename(filename string) (string, string) {
}
// findLinkByFragment finds a link by a fragment, it might be wrong
func findLinkByFragment(torrents []realdebrid.Torrent, fragment string) string {
func findLinkByFragment(torrents []torrent.Torrent, fragment string) string {
for _, torrent := range torrents {
for _, link := range torrent.Links {
if strings.HasPrefix(link, fmt.Sprintf("https://real-debrid.com/d/%s", fragment)) {