import asyncio

from ..utils import load_plugins, invoke_plugins
from .base import ProviderError

plugins, broken_plugins = load_plugins('providers', ['thetvdb', 'tvrage'])

@asyncio.coroutine
def start(manager):
    """
    Called when the manager is starting.
    """
    yield from invoke_plugins(plugins, 'start', manager)
    for name, error in broken_plugins.items():
        log.warning('failed to load provider plugin %s: %s', name, error)

import asyncio

from ..utils import load_plugins, invoke_plugins
from .base import ProviderError

plugins, broken_plugins = load_plugins('providers', ['thetvdb'])

@asyncio.coroutine
def start(manager):
    """
    Called when the manager is starting.
    """
    yield from invoke_plugins(plugins, 'start', manager)
    for name, error in broken_plugins.items():
        log.warning('failed to load provider plugin %s: %s', name, error)

Remove tvrage from active providers as site is shut down
Remove tvrage from active providers as site is shut down

  import asyncio
  
  from ..utils import load_plugins, invoke_plugins
  from .base import ProviderError
  
- plugins, broken_plugins = load_plugins('providers', ['thetvdb', 'tvrage'])
+ plugins, broken_plugins = load_plugins('providers', ['thetvdb'])
  
  @asyncio.coroutine
  def start(manager):
      """
      Called when the manager is starting.
      """
      yield from invoke_plugins(plugins, 'start', manager)
      for name, error in broken_plugins.items():
          log.warning('failed to load provider plugin %s: %s', name, error)
  
Remove tvrage from active providers as site is shut down
## Code Before:
import asyncio

from ..utils import load_plugins, invoke_plugins
from .base import ProviderError

plugins, broken_plugins = load_plugins('providers', ['thetvdb', 'tvrage'])

@asyncio.coroutine
def start(manager):
    """
    Called when the manager is starting.
    """
    yield from invoke_plugins(plugins, 'start', manager)
    for name, error in broken_plugins.items():
        log.warning('failed to load provider plugin %s: %s', name, error)

## Instruction:
Remove tvrage from active providers as site is shut down
## Code After:
import asyncio

from ..utils import load_plugins, invoke_plugins
from .base import ProviderError

plugins, broken_plugins = load_plugins('providers', ['thetvdb'])

@asyncio.coroutine
def start(manager):
    """
    Called when the manager is starting.
    """
    yield from invoke_plugins(plugins, 'start', manager)
    for name, error in broken_plugins.items():
        log.warning('failed to load provider plugin %s: %s', name, error)
