burst.providers package

Submodules

burst.providers.burst_overrides module

Default Burst overrides

burst.providers.burst_overrides.overrides

Default overrides dictionary

burst.providers.burst_overrides.source()[source]

See source

Note

This just a dummy method for documentation

burst.providers.definitions module

Definitions and overrides loader

burst.providers.definitions.load_providers(path, custom=False, fix_seasons=False)[source]

Definitions loader for json files

Parameters:
  • path (str) – Path to json file to be loaded
  • custom (bool) – Boolean flag to specify if this is a custom provider
  • fix_seasons (bool) – Boolean flag to apply default fix to seasons keywords
burst.providers.definitions.load_overrides(path, custom=False)[source]

Overrides loader for Python files

Note

Overrides must be in an overrides dictionary.

Parameters:
  • path (str) – Path to Python file to be loaded
  • custom (bool) – Boolean flag to specify if this is a custom overrides file
burst.providers.definitions.update_definitions(provider, definition, custom=False, fix_seasons=False)[source]

Updates global definitions with a single provider’s definitions

Parameters:
  • provider (str) – Provider ID
  • definition (dict) – Loaded provider’s definitions to be merged with the global definitions
  • custom (bool) – Boolean flag to specify if this is a custom provider
  • fix_seasons (bool) – Boolean flag to apply default fix to seasons keywords
burst.providers.definitions.update(d, u)[source]

Utility method to recursively merge dictionary values of definitions

Parameters:
  • d (dict) – Current provider definitions
  • u (dict) – Dictionary of definitions to be updated

burst.providers.helpers module

Helpers for providers that need special filtering

burst.providers.helpers.t411season(season)[source]
burst.providers.helpers.t411episode(episode)[source]