Skip to content

[added] btn - Search by season when the entry is a season pack#1778

Merged
liiight merged 1 commit intoFlexget:developfrom
tubedogg:btn_season_packs
Apr 7, 2017
Merged

[added] btn - Search by season when the entry is a season pack#1778
liiight merged 1 commit intoFlexget:developfrom
tubedogg:btn_season_packs

Conversation

@tubedogg
Copy link
Copy Markdown
Contributor

@tubedogg tubedogg commented Apr 7, 2017

Motivation for changes:

The recent addition of season pack support to Flexget allows discovering by season, but the BTN search plugin is currently hardcoded to search for episodes. This change enables searching by season pack when appropriate.

Detailed changes:

  • Search in category "Season" when season_pack_lookup is in the entry (based on entries created by new_series_seasons.py)
  • When the above is true, search for "Season X", which is BTN's required titling for season packs

Config usage if relevant (new plugin or updated schema):

No change to config.

Log and/or tests output (preferably both):

2017-04-06 19:56 DEBUG    utils.requests catchup_btn_search_seasons Fetching URL https://api.broadcasthe.net/ with args () and kwargs {'headers': {u'Content-type': u'application/json'}, 'json': None, 'data': '{"params": ["api-key", {"category": "Season", "series": "My Show", "name": "Season 1"}], "method": "getTorrents", "id": 1}', u'timeout': 30}

(There obviously is more log than this, but since it's used with the discover plugin, the rest of it isn't from the BTN plugin itself.)

@liiight liiight merged commit dfdffaf into Flexget:develop Apr 7, 2017
@tubedogg tubedogg deleted the btn_season_packs branch May 24, 2017 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants