Skip to content

Support sync endpoint for watched episodes#2226

Merged
cvium merged 5 commits intoFlexget:developfrom
dewey:develop
Oct 13, 2018
Merged

Support sync endpoint for watched episodes#2226
cvium merged 5 commits intoFlexget:developfrom
dewey:develop

Conversation

@dewey
Copy link
Copy Markdown
Contributor

@dewey dewey commented Oct 12, 2018

Motivation for changes:

Support Trakt API route to get list of watched episodes (Only if an "account" is set up): https://discuss.flexget.com/t/delete-files-if-seen-on-trakt-tv/4327

Detailed changes:

  • Set correct route if it's a watched list with type episode

Addressed issues:

# API restriction as they don't have an endpoint for collected episodes yet
if self.config['list'] == 'collection':
raise plugin.PluginError('`type` cannot be `episodes` for collection list.')
return ('sync', 'history', 'episodes')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just remembered that you need a if self.config.get('account') check here.

@cvium cvium merged commit c2c604a into Flexget:develop Oct 13, 2018
dewey added a commit to dewey/Flexget that referenced this pull request Oct 13, 2018
dewey added a commit to dewey/Flexget that referenced this pull request Oct 13, 2018
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