Skip to content

Trakt_released field data type #1260

@Tommatheussen

Description

@Tommatheussen

Expected behaviour:

Trakt_released should have the same type as tmdb_released, to be consistent across similar fields on different lookups. Changing lookups should not break stuff after updating the field names.

Actual behaviour:

Trakt_released is a Date field, tmdb_released is a DateTime field, causing some stuff to function differently.

Steps to reproduce:

  • Step 1: Update first config to second config
  • Step 2: Check logs from the IF statement

Config:

First config

  tmdb_lookup: yes
  if:
    - tmdb_released > now - timedelta(days=30): reject

Second config

  trakt_lookup: yes
  if:
    - trakt_released > now - timedelta(days=30): reject

Log:

First config, no logs related to if statement (other than normal reject)
Second config:

2016-06-28 15:12 ERROR    if            FillMovieQueue  Error occured while evaluating statement `trakt_released > now - timedelta(days=30)`. (can't compare datetime.datetime to datetime.date)
2016-06-28 15:12 ERROR    if            FillMovieQueue  Error occured while evaluating statement `trakt_released > now - timedelta(days=30)`. (can't compare datetime.datetime to datetime.date)
2016-06-28 15:12 ERROR    if            FillMovieQueue  Error occured while evaluating statement `trakt_released > now - timedelta(days=30)`. (can't compare datetime.datetime to datetime.date)

Additional information:

  • Flexget Version: 2.1.3
  • Python Version: 2.7.6
  • Installation method: Pip
  • OS and version: Ubuntu 14.04 32bit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions