@TopGrunt wrote:
Hi All,
Seeing some unexpected behaviour with ordering in the discover plugin and was hoping someone could point me in the right direction. Specifically, I am trying to order search results by seeders but the plugin is not downloading the entry with the highest seeders.
Relevant config (tried this with and without
sort_by: torrent_seeds
and got same results):templates: movie_qualities: quality: 1080p bluray content_size: max: 20480 lookup: imdb_lookup: yes trakt_lookup: account: '{? trakt.account ?}' local_seen: seen: local seen_movies: scope: local tasks: download_movie_queue: priority: 10 template: - out - local_seen - movie_qualities - lookup discover: what: - movie_list: list_name: queued_movies strip_year: yes from: - alpharatio: username: '{? ar.uname ?}' password: '{? ar.password ?}' category: moviehd order_by: seeders sort_by: torrent_seeds list_match: from: - movie_list: queued_movies
Here in the logs can be seen that the entries are being created in the correct order with the correct number of seeders:
2017-05-28 13:11 DEBUG utils.requests download_movie_queue Fetching URL https://alpharatio.cc/torrents.php with args () and kwargs {'cookies': {u'session': <REDACTED>'}, 'params': {u'searchstr': u'<MOVIE_NAME>', u'filter_cat[7]': 1, u'freele ech': 0, u'order_way': u'desc', u'search_submit': 1, u'action': u'basic', u'order_by': u'seeders'}, 'allow_redirects': True, u'timeout': 30} 2017-05-28 13:11 DEBUG alpharatio download_movie_queue requesting: https://alpharatio.cc/torrents.php?searchstr=<MOVIE_NAME>&filter_cat%5B7%5D=1&freeleech=0&order_way=desc&search_submit=1&action =basic&order_by=seeders 2017-05-28 13:11 DEBUG alpharatio download_movie_queue AlphaRatio size: 8.38 GB 2017-05-28 13:11 TRACE entry download_movie_queue ENTRY SET: title = u'<TORRENT_WITH_5_SEEDERS>' -------------------------------- SNIP --------------------------------- 2017-05-28 13:11 TRACE entry download_movie_queue ENTRY SET: torrent_seeds = 5 -------------------------------- SNIP --------------------------------- 2017-05-28 13:11 DEBUG alpharatio download_movie_queue AlphaRatio size: 11.15 GB 2017-05-28 13:11 TRACE entry download_movie_queue ENTRY SET: title = u'<TORRENT_WITH_1_SEEDER>' -------------------------------- SNIP --------------------------------- 2017-05-28 13:11 TRACE entry download_movie_queue ENTRY SET: torrent_seeds = 1 -------------------------------- SNIP --------------------------------- 2017-05-28 13:11 VERBOSE details download_movie_queue Produced 2 entries.
But lower down, the one with the lower seeders is being processed first (looks like alphabetical ordering?) and the one with the higher seeders is being left in the undecided state:
2017-05-28 13:11 DEBUG content_size download_movie_queue <TORRENT_WITH_1_SEEDER> size 10633.4686279 MB 2017-05-28 13:11 DEBUG content_size download_movie_queue <TORRENT_WITH_5_SEEDERS> size 7991.79077148 MB 2017-05-28 13:11 DEBUG sort_by download_movie_queue sorting entries by: torrent_seeds 2017-05-28 13:11 DEBUG api_trakt download_movie_queue Found <TORRENT_WITH_1_SEEDER> in previous search results as <MOVIE_NAME> 2017-05-28 13:11 DEBUG api_trakt download_movie_queue movie `<MOVIE_NAME>` age 14 expires in 72 days -------------------------------- SNIP --------------------------------- 2017-05-28 13:11 VERBOSE task download_movie_queue ACCEPTED: <TORRENT_WITH_1_SEEDER>` by list_match plugin 2017-05-28 13:11 DEBUG api_trakt download_movie_queue Found <TORRENT_WITH_5_SEEDERS> in previous search results as <MOVIE_NAME> 2017-05-28 13:11 DEBUG api_trakt download_movie_queue movie `<MOVIE_NAME>` age 14 expires in 72 days -------------------------------- SNIP --------------------------------- 2017-05-28 13:11 INFO download download_movie_queue Downloading: <TORRENT WITH 1 SEEDER>
Thanks in advance for any help!
Posts: 1
Participants: 1