-
Notifications
You must be signed in to change notification settings - Fork 481
Trakt_released field data type #1260
Copy link
Copy link
Closed
Milestone
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels