MrMonkey42 / stremio-addon-debrid-search

Stremio Addon to search downloads and torrents in your Debrid cloud
https://68d69db7dc40-debrid-search.baby-beamup.club
Apache License 2.0
67 stars 19 forks source link

Search not able to identify movie result in real-debrid torrents list with non-standard filename #31

Open SudhamshM opened 5 months ago

SudhamshM commented 5 months ago

Hi,

I am using real-debrid and added a few torrents to my account, and tried to see if it shows up with the Debrid Search addon, but it is not returning any results most likely due to the fuse.js fuzzy search "threshold" being at 0.1 (https://github.com/MrMonkey42/stremio-addon-debrid-search/blob/main/lib/stream-provider.js#L38) and excluding the movie name.

It is not there in well-known public trackers or the trackers supported by Torrentio so I wanted to use this addon to help get the stream for the movie.

Movie Name: Love Me If You Dare (2024) IMDb: https://www.imdb.com/title/tt32084930/ Stremio web URL showing no streams: https://web.stremio.com/#/detail/movie/tt32084930 Torrent filename: www.1TamilMV.eu - Love Me if You Dare (2024) Telugu TRUE WEB-DL - 1080p - AVC - (DD+5.1 - 640Kbps & AAC) - 2.5GB - ESub.mkv Magnet hash if you would like to add to your own library to test: magnet:?xt=urn:btih:8a0aecab7d2301a4ec88b587e02c7f22a8998f85

(There is a release/group name prepended to the movie name so maybe that is impacting the movie/series search filter) I tried the fuse search code with 0.1 threshold and it returned empty, but with 0.3 it returned the object. Is it possible we could configure this threshold in the addon settings?

Addon list (in order): image

image

SudhamshM commented 5 months ago

Here's the code I tested the fuse search with 0.3 threshold which returned the results as opposed to 0.1:

import Fuse from 'fuse.js'

const torrents = [
    {
        info: {
            title: 'www.1TamilMV.eu - Love Me If You Dare (2024) Telugu TRUE WEB-DL - 1080p - AVC - (DD+5.1 - 640Kbps & AAC) - 2.5GB - ESub.mkv'
        },
    },
    {
        info: {
            title: 'Love.Me.Again.2024.1080p.x264.DD5.1-TamilMV'
            // testing if it catches this movie title or not
        }
    }
]
const fuse = new Fuse(torrents, {
    keys: ['info.title'],
    threshold: 0.1,
    minMatchCharLength: 2
})

const fuse2 = new Fuse(torrents, {
    keys: ['info.title'],
    threshold: 0.3,
    minMatchCharLength: 2
})

console.log(JSON.stringify(fuse.search('Love Me If You Dare'))) // returns empty list
console.log(JSON.stringify(fuse2.search('Love Me If You Dare'))) // returns match