Skip to content

IRC API endpoint #1476

Merged
liiight merged 11 commits intoFlexget:developfrom
liiight:irc_api
Oct 31, 2016
Merged

IRC API endpoint #1476
liiight merged 11 commits intoFlexget:developfrom
liiight:irc_api

Conversation

@liiight
Copy link
Copy Markdown
Member

@liiight liiight commented Oct 30, 2016

Motivation for changes:

Monitor and manage IRC plugin connections

Detailed changes:

  • Added /connections/
  • Added /restart/
  • Added /stop/

To do:

  • Return enum strings
  • Some more tests

status = {name: {}}
connection = irc_connections[name]
status[name]['thread'] = 'OK' if connection.is_alive() else 'dead'
status[name]['alive'] = True if connection.is_alive() else False
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.

Could probably just do status[name]['alive'] = connection.is_alive() 😺

@liiight liiight merged commit 1866b6a into Flexget:develop Oct 31, 2016
@liiight liiight deleted the irc_api branch October 31, 2016 15:56
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