nosmokingbandit / Watcher3

Other
280 stars 60 forks source link

Search not working with Jackett #177

Open leugenea opened 6 years ago

leugenea commented 6 years ago

When I searching for a movie, search window always says that there is no results. From log:

INFO [2017-12-19 14:53:39,280] core.searcher.verify.46: Pulp Fiction is older than 10, skipping verification check as Verified. INFO [2017-12-19 14:53:39,280] core.searcher.verify.79: Pulp Fiction passes verification checks, will include title in search. DEBUG [2017-12-19 14:53:39,280] core.sqldb.update.226: Updating backlog to 1 for rows that match imdbid:tt0110912 in MOVIES. DEBUG [2017-12-19 14:53:39,280] core.sqldb.execute.146: Executing SQL command: ['UPDATE MOVIES SET backlog=? WHERE imdbid=?', ('1', 'tt0110912')] INFO [2017-12-19 14:53:39,314] core.snatcher.best_release.88: Selecting best release for Pulp Fiction DEBUG [2017-12-19 14:53:39,314] core.sqldb.get_search_results.415: Retrieving Search Results for tt0110912. DEBUG [2017-12-19 14:53:39,314] core.sqldb.execute.146: Executing SQL command: ['SELECT FROM SEARCHRESULTS WHERE imdbid="tt0110912" ORDER BY score DESC, size ASC, freeleech DESC'] WARNING [2017-12-19 14:53:39,315] core.snatcher.best_release.102: Unable to automatically grab tt0110912, no results. DEBUG [2017-12-19 14:53:42,488] core.sqldb.get_library_count.362: Getting count of library. DEBUG [2017-12-19 14:53:42,488] core.sqldb.execute.146: Executing SQL command: ['SELECT COUNT(1) FROM MOVIES'] DEBUG [2017-12-19 14:53:42,752] core.sqldb.get_user_movies.327: Retrieving list of user's movies. DEBUG [2017-12-19 14:53:42,752] core.sqldb.execute.146: Executing SQL command: ['SELECT FROM MOVIES ORDER BY sort_title ASC LIMIT 50 OFFSET 0'] DEBUG [2017-12-19 14:53:47,463] core.sqldb.get_user_movies.327: Retrieving list of user's movies. DEBUG [2017-12-19 14:53:47,463] core.sqldb.execute.146: Executing SQL command: ['SELECT FROM MOVIES ORDER BY sort_title DESC LIMIT 50 OFFSET 0'] DEBUG [2017-12-19 14:53:56,788] core.sqldb.get_library_count.362: Getting count of library. DEBUG [2017-12-19 14:53:56,788] core.sqldb.execute.146: Executing SQL command: ['SELECT COUNT(1) FROM MOVIES'] DEBUG [2017-12-19 14:53:57,055] core.sqldb.get_user_movies.327: Retrieving list of user's movies. DEBUG [2017-12-19 14:53:57,055] core.sqldb.execute.146: Executing SQL command: ['SELECT FROM MOVIES ORDER BY sort_title ASC LIMIT 50 OFFSET 0'] DEBUG [2017-12-19 14:53:59,372] core.sqldb.get_user_movies.327: Retrieving list of user's movies. DEBUG [2017-12-19 14:53:59,372] core.sqldb.execute.146: Executing SQL command: ['SELECT FROM MOVIES ORDER BY sort_title ASC LIMIT 50 OFFSET 50'] DEBUG [2017-12-19 14:54:03,115] core.sqldb.get_search_results.415: Retrieving Search Results for tt0110912. DEBUG [2017-12-19 14:54:03,115] core.sqldb.execute.146: Executing SQL command: ['SELECT FROM SEARCHRESULTS WHERE imdbid="tt0110912" ORDER BY score DESC, size ASC, freeleech DESC'] DEBUG [2017-12-19 14:54:05,672] core.sqldb.get_movie_details.387: Retrieving details for movie tt0110912. DEBUG [2017-12-19 14:54:05,672] core.sqldb.execute.146: Executing SQL command: ['SELECT * FROM MOVIES WHERE imdbid="tt0110912"'] INFO [2017-12-19 14:54:05,673] core.searcher.search.185: Performing backlog search for Pulp Fiction 1994. INFO [2017-12-19 14:54:05,673] core.providers.newznab.search_all.23: Performing backlog search for all NewzNab indexers. INFO [2017-12-19 14:54:05,673] core.providers.torrent.search_all.71: Searching TorzNab indexer http://JACKETT_IP:PORT/torznab/iptorrents DEBUG [2017-12-19 14:54:05,673] core.sqldb.torznab_caps.731: Retreiving caps for http://JACKETT_IP:PORT/torznab/iptorrents/ DEBUG [2017-12-19 14:54:05,673] core.sqldb.execute.146: Executing SQL command: ['SELECT "caps" FROM CAPS WHERE url="http://JACKETT_IP:PORT/torznab/iptorrents/"'] INFO [2017-12-19 14:54:05,674] core.providers.torrent.search_all.84: http://JACKETT_IP:PORT/torznab/iptorrents/ supports imdbid search. INFO [2017-12-19 14:54:05,674] root.search_newznab.36: SEARCHING: http://JACKETT_IP:PORT/torznab/iptorrents/api?apikey=APIKEY&imdbid=tt0110912&t=movie&cat=2000 WARNING [2017-12-19 14:54:05,896] root.parse_newznab_xml.158: Traceback (most recent call last): File "/home/hd35/leugenea/Watcher3/core/providers/base.py", line 137, in parse_newznab_xml "info_link": item.get('guid', {}).get('content') if item.get('guid', {}).get('isPermaLink') else item.get('comments'), AttributeError: 'str' object has no attribute 'get'

nosmokingbandit commented 6 years ago

Should be working in 6d57865a032816d8193be267477c21c3669bde9c

Jackett doesn't always follow newznab spec, so weird things like this pop up occasionally.

leugenea commented 6 years ago

Ok, I'll try to check if it's working tomorrow.