Skip to content

PTP plugin accepts no entries due to erroneous year mismatch #1982

@gryphonmyers

Description

@gryphonmyers

Expected behaviour:

When running discover plugin with passthepopcorn as an input source, entries should be accepted if found on the website.

Actual behaviour:

When running discover plugin for movies with passthepopcorn as an input source, the connection is successful and results are found, but it does not accept any of those results due to a mismatch of movie years, even though values are visibly identical (e.g. "Movie year 1980 does not match 1980"). I'm guessing this is a type coercion issue of some kind?

Steps to reproduce:

  1. Configure a task with passthepopcorn as search source for discover plugin, and produce some entries.
  2. Run the task, and note that no entries are accepted due to the non-matching (but matching) years issue above.

Config:

tasks:
  download_movie:
    free_space:
      path: REDACTED
      space: 10000
    discover:
      release_estimations:
        optimistic: 30 days
      interval: 1 day
      what:
	- movie_list:
            list_name: movies_to_snatch
            strip_year: yes
      from:
	- passthepopcorn:
            username: REDACTED
            password: REDACTED
            order_by: Runtime
            passkey: REDACTED
    quality:
      - 576p h264
      - 720p h264
      - 1080p h264
      - 480p h264
      - h264
    imdb_lookup: yes
    list_match:
      from:
	- movie_list: movies_to_snatch
    crossmatch:
      from:
	- trakt_list:
            account: REDACTED
            list: collection
            type: movies
      fields:
	- imdb_id
      action: reject
    download: REDACTED

Log:

2017-10-09 15:03 VERBOSE  discover      download_movie  Searching for `Double Suicide` with plugin `passthepopcorn` (90 of 90)
2017-10-09 15:03 DEBUG    passthepopcorn download_movie  Using search params: {'order_by': 'runtime', 'action': 'advanced', 'order_way': 'desc', 'searchstr': 'tt0064975', 'json': 'noredirect'}
2017-10-09 15:03 DEBUG    passthepopcorn download_movie  Found valid login cookie
2017-10-09 15:03 VERBOSE  utils.requests download_movie  Waiting 4.84 seconds until next request to passthepopcorn.me
2017-10-09 15:03 DEBUG    utils.requests download_movie  Fetching URL https://passthepopcorn.me/torrents.php with args () and kwargs {'cookies': {'__cfduid': 'REDACTED', 'PHPSESSID': 'REDACTED', 'session': 'REDACTED}, 'timeout': 30, 'allow_redirects': True, 'params': {'order_by': 'runtime', 'action': 'advanced', 'order_way': 'desc', 'searchstr': 'tt0064975', 'json': 'noredirect'}}
2017-10-09 15:03 DEBUG    passthepopcorn download_movie  Total results: 1
2017-10-09 15:03 DEBUG    passthepopcorn download_movie  Movie year 1969 does not match 1969
2017-10-09 15:03 DEBUG    discover      download_movie  No results from passthepopcorn
2017-10-09 15:03 VERBOSE  discover      download_movie  No search results for `Double Suicide`
2017-10-09 15:03 DEBUG    backlog       download_movie  0 entries purged from backlog
2017-10-09 15:03 VERBOSE  details       download_movie  Task didn't produce any entries.
2017-10-09 15:03 DEBUG    input_cache   download_movie  cache name: trakt_list_f8dd460df825724231ec86604c3a65dc (has: )
2017-10-09 15:03 VERBOSE  input_cache   download_movie  Restored 1445 entries from db cache
2017-10-09 15:03 DEBUG    urlrewriter   download_movie  Checking 0 entries
2017-10-09 15:03 VERBOSE  details       download_movie  Summary - Accepted: 0 (Rejected: 0 Undecided: 0 Failed: 0)
2017-10-09 15:03 DEBUG    util.simple_persistence download_movie  Flushing simple persistence for task download_movie to db.
2017-10-09 15:03 DEBUG    util.simple_persistence download_movie  Flushing simple persistence for task None to db.

Additional information:

Tried first with system 2.7 python on Centos 7 installed via pip, then tried uninstalling and reinstalling with virtualenv and python 3.5. No apparent change. I use the daemon, but am currently attempting to run the task directly. Flexget version is 2.10.97.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions