Closed gjedeer closed 7 years ago
Wow this one is really huge. yeah would have been good to split it up a bit.
The code looks good from a quick look, and everything seems to work. But ive noticed a bug:
Hmm, did you try the same album with freshly-started app? It seems skytorrents returns crappy results for some albums but something playing in the background shouldn't be a factor.
Or do you have any specific sequence of albums where i can reproduce that? Because it happens sometimes to me too but i didn't see that it's related to something playing.
i need to try ordering skytorrents by relevance instead of seeds.
Youre right, it probably just grabbed a bad torrent. Im not sure which exact album i tried earlier, but i think it was this one (first one if you search for "cypress hill". So same name for the album and artist. That looks like an extremely bad case, because the actual album doesnt even appear in the logs. Maybe it would help if we add the year to the torrent search?
anyway its not related to this pr, so feel free to ignore for now
I was thinking about this today and I'm wondering if I should add client side filtering of results. If the torrent name doesn't even contain full band name it's likely garbage.
I'm thinking
if ! normalize(torrent_name) ~ ".*cypress.*hill.*": gtfo
where normalize() would lower case and transliterate it from unicode to ascii.
Anyway: want to do the honors and merge?
oh of course. thanks for implementing this all :)
I think searching artist album year
could already improve the search results a lot. Maybe client side filtering wont even be necessary with that.
Worth giving a shot for sure
This is a big one, probably should have been several smaller ones:
Then I went a little crazy and added ability to run various search engines and select best results based on score. Base score: seeds+leechers. 2 if not FLAC. 50 if torrent file available (no magnet)
I know we were discussing not doing that but it increases number of played albums.