Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SudhamshM opened this issue Jun 26, 2024 · 2 comments

Comments

@SudhamshM
Copy link

SudhamshM commented Jun 26, 2024

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
Copy link
Author

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

@MrMonkey42
Copy link
Owner

threshold can be made configurable during addon installation, but changing it can have side effects which can increase/decrease the accuracy of overall search results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants