-
Notifications
You must be signed in to change notification settings - Fork 481
API inject not passing the --now switch #1132
Copy link
Copy link
Closed
Labels
Description
I have two tasks to process HD and SD movies, this tasks are set to interval 4 hours in their configuration, to be accepted by HD movies score has to be higher than 7.7 in imdb. The now switch passed in the payload looks like being ignored.
The following is a stdout from a bash script pushing into the API. The entry is a movie in the imdblist
First the HD entry being processed by both tasks
inject_flexget "The Witch 2015 720p BluRay x264-DRONES" "https://www.domain.org/rss/download/726148/THEKEY/The%20Witch%202015%20720p%20BluRay%20x264-DRONES.torrent" "4.44 GB"
+ _flexget_inject 'The Witch 2015 720p BluRay x264-DRONES' https://www.domain.org/rss/download/726148/THEKEY/The%20Witch%202015%20720p%20BluRay%20x264-DRONES.torrent '4.44 GB' SD_movies
+ curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{
"disable-tracking": true,
"discover-now": true,
"entry_dump": false,
"inject": [
{
"accept": true,
"fields": { "tracker": "manual", "content_size": "4.44 GB" },
"force": false,
"title": "The Witch 2015 720p BluRay x264-DRONES",
"url": "https://www.domain.org/rss/download/726148/THEKEY/The%20Witch%202015%20720p%20BluRay%20x264-DRONES.torrent"
}
],
"learn": false,
"loglevel": "verbose",
"no-cache": true,
"now": true,
"progress": false,
"summary": true,
"tasks": [
"SD_movies"
]
}' http://flexget:flexget@10.10.10.12:5050/api/inject/
{"stream": [{"tasks": [{"id": "421221", "name": "SD_Movies"}]},
{"log": "2016-05-04 13:58 VERBOSE interval SD_Movies Interval 4 hours not met on task SD_Movies. Use --now to override.\n"},
{"log": "2016-05-04 13:58 WARNING backlog SD_Movies No input snapshot available for `The Witch 2015 720p BluRay x264-DRONES`, using current state\n"},
{}]}+ _flexget_inject 'The Witch 2015 720p BluRay x264-DRONES' https://www.domain.org/rss/download/726148/THEKEY/The%20Witch%202015%20720p%20BluRay%20x264-DRONES.torrent '4.44 GB' HD_movies
+ curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{
"disable-tracking": true,
"discover-now": true,
"entry_dump": false,
"inject": [
{
"accept": true,
"fields": { "tracker": "manual", "content_size": "4.44 GB" },
"force": false,
"title": "The Witch 2015 720p BluRay x264-DRONES",
"url": "https://www.domain.org/rss/download/726148/THEKEY/The%20Witch%202015%20720p%20BluRay%20x264-DRONES.torrent"
}
],
"learn": false,
"loglevel": "verbose",
"no-cache": true,
"now": true,
"progress": false,
"summary": true,
"tasks": [
"HD_movies"
]
}' http://flexget:flexget@10.10.10.12:5050/api/inject/
{"stream": [{"tasks": [{"id": "897202", "name": "HD_movies"}]},
{"log": "2016-05-04 13:58 VERBOSE interval HD_movies Interval 4 hours not met on task HD_movies. Use --now to override.\n"},
{"log": "2016-05-04 13:58 WARNING backlog HD_movies No input snapshot available for `The Witch 2015 720p BluRay x264-DRONES`, using current state\n"},
{}]}+ set +x
Now SD Entry, processed by both tasks also
inject_flexget "The Witch 2015 BDRip x264-DRONES" "https://www.domain.org/rss/download/726149/THEKEY/The%20Witch%202015%20BDRip%20x264-DRONES.torrent" "490.69 MB"
+ _flexget_inject 'The Witch 2015 BDRip x264-DRONES' https://www.domain.org/rss/download/726149/THEKEY/The%20Witch%202015%20BDRip%20x264-DRONES.torrent '490.69 MB' SD_movies
+ curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{
"disable-tracking": true,
"discover-now": true,
"entry_dump": false,
"inject": [
{
"accept": true,
"fields": { "tracker": "manual", "content_size": "490.69 MB" },
"force": false,
"title": "The Witch 2015 BDRip x264-DRONES",
"url": "https://www.domain.org/rss/download/726149/THEKEY/The%20Witch%202015%20BDRip%20x264-DRONES.torrent"
}
],
"learn": false,
"loglevel": "verbose",
"no-cache": true,
"now": true,
"progress": false,
"summary": true,
"tasks": [
"SD_movies"
]
}' http://flexget:flexget@10.10.10.12:5050/api/inject/
{"stream": [{"tasks": [{"id": "215558", "name": "SD_Movies"}]},
{"log": "2016-05-04 13:59 VERBOSE interval SD_Movies Interval 4 hours not met on task SD_Movies. Use --now to override.\n"},
{"log": "2016-05-04 13:59 WARNING backlog SD_Movies No input snapshot available for `The Witch 2015 BDRip x264-DRONES`, using current state\n"},
{}]}+ _flexget_inject 'The Witch 2015 BDRip x264-DRONES' https://www.domain.org/rss/download/726149/THEKEY/The%20Witch%202015%20BDRip%20x264-DRONES.torrent '490.69 MB' HD_movies
+ curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{
"disable-tracking": true,
"discover-now": true,
"entry_dump": false,
"inject": [
{
"accept": true,
"fields": { "tracker": "manual", "content_size": "490.69 MB" },
"force": false,
"title": "The Witch 2015 BDRip x264-DRONES",
"url": "https://www.domain.org/rss/download/726149/THEKEY/The%20Witch%202015%20BDRip%20x264-DRONES.torrent"
}
],
"learn": false,
"loglevel": "verbose",
"no-cache": true,
"now": true,
"progress": false,
"summary": true,
"tasks": [
"HD_movies"
]
}' http://flexget:flexget@10.10.10.12:5050/api/inject/
{"stream": [{"tasks": [{"id": "535454", "name": "HD_movies"}]},
{"log": "2016-05-04 13:59 VERBOSE interval HD_movies Interval 4 hours not met on task HD_movies. Use --now to override.\n"},
{"log": "2016-05-04 13:59 WARNING backlog HD_movies No input snapshot available for `The Witch 2015 BDRip x264-DRONES`, using current state\n"},
{}]}+ set +x
Now disabling interval in both tasks, and set manual:yes, first the HD entry
inject_flexget "The Witch 2015 720p BluRay x264-DRONES" "https://www.domain.org/rss/download/726148/THEKEY/The%20Witch%202015%20720p%20BluRay%20x264-DRONES.torrent" "4.44 GB"
+ _flexget_inject 'The Witch 2015 720p BluRay x264-DRONES' https://www.domain.org/rss/download/726148/THEKEY/The%20Witch%202015%20720p%20BluRay%20x264-DRONES.torrent '4.44 GB' SD_movies
+ curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{
"disable-tracking": true,
"discover-now": true,
"entry_dump": false,
"inject": [
{
"accept": true,
"fields": { "tracker": "manual", "content_size": "4.44 GB" },
"force": false,
"title": "The Witch 2015 720p BluRay x264-DRONES",
"url": "https://www.domain.org/rss/download/726148/THEKEY/The%20Witch%202015%20720p%20BluRay%20x264-DRONES.torrent"
}
],
"learn": false,
"loglevel": "verbose",
"no-cache": true,
"now": true,
"progress": false,
"summary": true,
"tasks": [
"SD_movies"
]
}' http://flexget:flexget@10.10.10.12:5050/api/inject/
{"stream": [{"tasks": [{"id": "880750", "name": "SD_Movies"}]},
{"log": "2016-05-04 14:00 VERBOSE assume_quality SD_Movies New assumption: !720p !1080p is 480p\n"},
{"log": "2016-05-04 14:00 INFO task SD_Movies Plugin discover is not executed because input phase is disabled (e.g. --test)\n"},
{"log": "2016-05-04 14:00 INFO task SD_Movies Plugin inputs is not executed because input phase is disabled (e.g. --test)\n"},
{"log": "2016-05-04 14:00 VERBOSE assume_quality SD_Movies The Witch 2015 720p BluRay x264-DRONES\n"},
{"log": "2016-05-04 14:00 VERBOSE assume_quality SD_Movies New quality: 720p bluray h264\n"},
{"log": "2016-05-04 14:00 VERBOSE task SD_Movies REJECTED: `The Witch 2015 720p BluRay x264-DRONES` by quality plugin because 720p bluray h264 does not match quality requirement [<Requirements(480p bluray|dvdrip h264 !1080p !720p)>]\n"},
{"log": "2016-05-04 14:00 VERBOSE details SD_Movies Summary - Accepted: 0 (Rejected: 1 Undecided: 0 Failed: 0)\n"},
{"log": "2016-05-04 14:00 VERBOSE list_queue SD_Movies removing accepted entries from movie_list - imdblist\n"},
{"summary": {"undecided": 0, "abort_reason": null, "rejected": 1, "failed": 0, "aborted": false, "accepted": 0}},
{}]}+ _flexget_inject 'The Witch 2015 720p BluRay x264-DRONES' https://www.domain.org/rss/download/726148/THEKEY/The%20Witch%202015%20720p%20BluRay%20x264-DRONES.torrent '4.44 GB' HD_movies
+ curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{
"disable-tracking": true,
"discover-now": true,
"entry_dump": false,
"inject": [
{
"accept": true,
"fields": { "tracker": "manual", "content_size": "4.44 GB" },
"force": false,
"title": "The Witch 2015 720p BluRay x264-DRONES",
"url": "https://www.domain.org/rss/download/726148/THEKEY/The%20Witch%202015%20720p%20BluRay%20x264-DRONES.torrent"
}
],
"learn": false,
"loglevel": "verbose",
"no-cache": true,
"now": true,
"progress": false,
"summary": true,
"tasks": [
"HD_movies"
]
}' http://flexget:flexget@10.10.10.12:5050/api/inject/
{"stream": [{"tasks": [{"id": "202710", "name": "HD_movies"}]},
{"log": "2016-05-04 14:00 INFO task HD_movies Plugin discover is not executed because input phase is disabled (e.g. --test)\n"},
{"log": "2016-05-04 14:00 INFO task HD_movies Plugin inputs is not executed because input phase is disabled (e.g. --test)\n"},
{"log": "2016-05-04 14:00 VERBOSE task HD_movies REJECTED: `The Witch 2015 720p BluRay x264-DRONES` by if plugin because matched requirement: imdb_score < 7.7\n"},
{"log": "2016-05-04 14:00 VERBOSE details HD_movies Summary - Accepted: 0 (Rejected: 1 Undecided: 0 Failed: 0)\n"},
{"log": "2016-05-04 14:00 VERBOSE list_queue HD_movies removing accepted entries from movie_list - imdblist\n"},
{"summary": {"undecided": 0, "abort_reason": null, "rejected": 1, "failed": 0, "aborted": false, "accepted": 0}},
{}]}+ set +x
Now the SD entry, this is finally accepted
inject_flexget "The Witch 2015 BDRip x264-DRONES" "https://www.domain.org/rss/download/726149/THEKEY/The%20Witch%202015%20BDRip%20x264-DRONES.torrent" "490.69 MB"
+ _flexget_inject 'The Witch 2015 BDRip x264-DRONES' https://www.domain.org/rss/download/726149/THEKEY/The%20Witch%202015%20BDRip%20x264-DRONES.torrent '490.69 MB' SD_movies
+ curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{
"disable-tracking": true,
"discover-now": true,
"entry_dump": false,
"inject": [
{
"accept": true,
"fields": { "tracker": "manual", "content_size": "490.69 MB" },
"force": false,
"title": "The Witch 2015 BDRip x264-DRONES",
"url": "https://www.domain.org/rss/download/726149/THEKEY/The%20Witch%202015%20BDRip%20x264-DRONES.torrent"
}
],
"learn": false,
"loglevel": "verbose",
"no-cache": true,
"now": true,
"progress": false,
"summary": true,
"tasks": [
"SD_movies"
]
}' http://flexget:flexget@10.10.10.12:5050/api/inject/
{"stream": [{"tasks": [{"id": "921788", "name": "SD_Movies"}]},
{"log": "2016-05-04 14:00 VERBOSE assume_quality SD_Movies New assumption: !720p !1080p is 480p\n"},
{"log": "2016-05-04 14:00 INFO task SD_Movies Plugin discover is not executed because input phase is disabled (e.g. --test)\n"},
{"log": "2016-05-04 14:00 INFO task SD_Movies Plugin inputs is not executed because input phase is disabled (e.g. --test)\n"},
{"log": "2016-05-04 14:00 VERBOSE assume_quality SD_Movies The Witch 2015 BDRip x264-DRONES\n"},
{"log": "2016-05-04 14:00 VERBOSE assume_quality SD_Movies New quality: 480p bluray h264\n"},
{"log": "2016-05-04 14:00 VERBOSE exists_movie SD_Movies Using cached scan for /videos/peliculas/ ...\n"},
{"log": "2016-05-04 14:00 INFO download SD_Movies Downloading: The Witch 2015 BDRip x264-DRONES\n"},
{"log": "2016-05-04 14:00 VERBOSE details SD_Movies Summary - Accepted: 1 (Rejected: 0 Undecided: 0 Failed: 0)\n"},
{"log": "2016-05-04 14:00 INFO transmission SD_Movies \"The Witch 2015 BDRip x264-DRONES\" torrent added to transmission\n"},
{"log": "2016-05-04 14:00 WARNING transmission SD_Movies No files in \"The Witch 2015 BDRip x264-DRONES\" are > 90% of content size, no files renamed.\n"},
{"log": "2016-05-04 14:01 VERBOSE list_queue SD_Movies removing accepted entries from movie_list - imdblist\n"},
{"summary": {"undecided": 0, "abort_reason": null, "rejected": 0, "failed": 0, "aborted": false, "accepted": 1}},
{}]}+ _flexget_inject 'The Witch 2015 BDRip x264-DRONES' https://www.domain.org/rss/download/726149/THEKEY/The%20Witch%202015%20BDRip%20x264-DRONES.torrent '490.69 MB' HD_movies
+ curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{
"disable-tracking": true,
"discover-now": true,
"entry_dump": false,
"inject": [
{
"accept": true,
"fields": { "tracker": "manual", "content_size": "490.69 MB" },
"force": false,
"title": "The Witch 2015 BDRip x264-DRONES",
"url": "https://www.domain.org/rss/download/726149/THEKEY/The%20Witch%202015%20BDRip%20x264-DRONES.torrent"
}
],
"learn": false,
"loglevel": "verbose",
"no-cache": true,
"now": true,
"progress": false,
"summary": true,
"tasks": [
"HD_movies"
]
}' http://flexget:flexget@10.10.10.12:5050/api/inject/
{"stream": [{"tasks": [{"id": "975483", "name": "HD_movies"}]},
{"log": "2016-05-04 14:01 INFO task HD_movies Plugin discover is not executed because input phase is disabled (e.g. --test)\n"},
{"log": "2016-05-04 14:01 INFO task HD_movies Plugin inputs is not executed because input phase is disabled (e.g. --test)\n"},
{"log": "2016-05-04 14:01 VERBOSE task HD_movies REJECTED: `The Witch 2015 BDRip x264-DRONES` by seen plugin because entry with title `The Witch 2015 BDRip x264-DRONES` is already marked seen in the task SD_Movies at 2016-05-04 14:01\n"},
{"log": "2016-05-04 14:01 VERBOSE details HD_movies Summary - Accepted: 0 (Rejected: 1 Undecided: 0 Failed: 0)\n"},
{"log": "2016-05-04 14:01 VERBOSE list_queue HD_movies removing accepted entries from movie_list - imdblist\n"},
{"summary": {"undecided": 0, "abort_reason": null, "rejected": 1, "failed": 0, "aborted": false, "accepted": 0}},
{}]}+ set +x
Reactions are currently unavailable