Skip to content

next_series_episodes does not advance to next season if only season packs are in series database #1776

@tubedogg

Description

@tubedogg

Expected behaviour:

next_series_episodes finds that the next episode to obtain is S03E01.

Actual behaviour:

next_series_episodes sees two seasons in the series database and never tries to determine if there were episodes beyond that. There are no calls to TVmaze.

I have a show in my database for which I used a learn task to indicate that I have two complete seasons.

┌Review─────┬────────────┬───────────────────────────────────┬──────────────────────┬────────┐
│ Entity ID │ Latest age │ Release titles                    │ Release Quality      │ Proper │
├───────────┼────────────┼───────────────────────────────────┼──────────────────────┼────────┤
│ S01       │ 0h         │ Review S01 720p hdtv h264 dd5.1 * │ 720p hdtv h264 dd5.1 │        │
│ S02       │ 0h         │ Review S02 720p hdtv h264 dd5.1 * │ 720p hdtv h264 dd5.1 │        │
└───────────┴────────────┴───────────────────────────────────┴──────────────────────┴────────┘
 * Downloaded

Currently S03 is airing (eps 1, 2, and 3 have aired). I am trying to use discover to search a site for these three episodes, but according to the log, it gives up after skipping S01 and S02 - it never tries to find out what the next episode should be.

Note that I know for a fact the config works okay if there are previously downloaded episodes in the season, as I ran it with another show and it worked fine.

Steps to reproduce:

  • Step 1: ...

Config:

  catchup_btn_search_eps:
    manual: yes
    template:
      - https_fix
      - deluge-connect_tv
    configure_series:
      from:
        entry_list: catchup
      settings:
        exact: yes
        quality: 720p hdtv|webdl|webrip h264
        identified_by: ep
    discover:
      what:
        - next_series_episodes: yes
      from:
        - btn: '{? btn.api_key ?}'
      interval: 1 minute
    list_add:
      - entry_list: catchup_log
    set:
      tracker: tv
      step: '1'

Note the entry-list contains one entry:

┌─────────────────┬───────────────────┐
│    Field name   │ Value             │
├─────────────────┼───────────────────┤
│   original_url  │ http://myshow.com │
│      proper     │ False             │
│   proper_count  │ 0                 │
│  series_episode │ 3                 │
│ series_episodes │ 1                 │
│    series_id    │ S03E01            │
│  series_season  │ 3                 │
│      title      │ Review            │
│       url       │ http://myshow.com │
└─────────────────┴───────────────────┘

Log:

2017-04-05 23:40 DEBUG    manager                       Figuring out config load paths
2017-04-05 23:40 DEBUG    manager                       Found config: /Users/plex/.flexget/config.yml
2017-04-05 23:40 DEBUG    manager                       Config file /Users/plex/.flexget/config.yml selected
2017-04-05 23:40 DEBUG    manager                       sys.defaultencoding: ascii
2017-04-05 23:40 DEBUG    manager                       sys.getfilesystemencoding: utf-8
2017-04-05 23:40 DEBUG    manager                       flexget detected io encoding: utf-8
2017-04-05 23:40 DEBUG    manager                       os.path.supports_unicode_filenames: True
There is a FlexGet process already running for this config, sending execution there.
2017-04-05 23:40 DEBUG    manager                       Sending command to running FlexGet process: [u'-L', u'debug', u'execute', u'--tasks', u'catchup_btn_search_eps']
2017-04-05 23:40 DEBUG    cron_env                      Encoding utf-8 stored
2017-04-05 23:40 DEBUG    util.simple_persistence                 setting key terminal_encoding value 'utf-8'
2017-04-05 23:40 DEBUG    task          catchup_btn_search_eps executing catchup_btn_search_eps
2017-04-05 23:40 DEBUG    template      catchup_btn_search_eps Merging template https_fix into task catchup_btn_search_eps
2017-04-05 23:40 DEBUG    template      catchup_btn_search_eps Merging template deluge-connect_tv into task catchup_btn_search_eps
2017-04-05 23:40 DEBUG    remember_rej  catchup_btn_search_eps Task config has changed since last run, purging remembered entries.
2017-04-05 23:40 DEBUG    series        catchup_btn_search_eps connecting series Review to task catchup_btn_search_eps
2017-04-05 23:40 DEBUG    series        catchup_btn_search_eps no downloaded episodes found for series 'Review', season: None, downloaded: True
2017-04-05 23:40 DEBUG    next_series_episodes catchup_btn_search_eps season 2 is marked as completed, skipping
2017-04-05 23:40 DEBUG    next_series_episodes catchup_btn_search_eps season 1 is marked as completed, skipping
2017-04-05 23:40 WARNING  discover      catchup_btn_search_eps Input next_series_episodes did not return anything
2017-04-05 23:40 VERBOSE  discover      catchup_btn_search_eps Discovering 0 titles ...
2017-04-05 23:40 DEBUG    backlog       catchup_btn_search_eps 0 entries purged from backlog
2017-04-05 23:40 VERBOSE  details       catchup_btn_search_eps Task didn't produce any entries.
2017-04-05 23:40 VERBOSE  manipulate    catchup_btn_search_eps Modified 0 entries.
2017-04-05 23:40 DEBUG    urlrewriter   catchup_btn_search_eps Checking 0 entries
2017-04-05 23:40 VERBOSE  details       catchup_btn_search_eps Summary - Accepted: 0 (Rejected: 0 Undecided: 0 Failed: 0)
2017-04-05 23:40 DEBUG    list_add      catchup_btn_search_eps no accepted entries, nothing to add
2017-04-05 23:40 DEBUG    series        catchup_btn_search_eps on_task_learn
2017-04-05 23:40 DEBUG    util.simple_persistence catchup_btn_search_eps Flushing simple persistence for task catchup_btn_search_eps to db.
2017-04-05 23:40 DEBUG    util.simple_persistence catchup_btn_search_eps Flushing simple persistence for task None to db.

Additional information:

  • Flexget Version: 2.10.27
  • Python Version: 2.7.13
  • Installation method: pip
  • OS and version: macOS El Capitan 10.11.6
  • Link to crash log: n/a

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions