site specific settings - panuozzo77/StreamingCommunity GitHub Wiki

Site-Specific Settings

This section documents the site-specific configuration settings in StreamingCommunity. These settings allow you to customize behavior for specific streaming sites that require additional authentication or special handling.

Configuration Location

These settings are found in the SITE_EXTRA section of the config.json file:

{
    "SITE_EXTRA": {
        "ddlstreamitaly": {
            "ips4_device_key": "",
            "ips4_member_id": "",
            "ips4_login_key": ""
        }
    }
}

Available Site Configurations

ddlstreamitaly

The ddlstreamitaly site requires authentication credentials for access. These settings allow you to configure the necessary authentication parameters:

ips4_device_key

  • Type: String
  • Default: ""
  • Description: The device key used for authentication with the ddlstreamitaly site.
  • Usage: Enter the device key provided by the site after registration.

ips4_member_id

  • Type: String
  • Default: ""
  • Description: The member ID used for authentication with the ddlstreamitaly site.
  • Usage: Enter your member ID provided by the site after registration.

ips4_login_key

  • Type: String
  • Default: ""
  • Description: The login key used for authentication with the ddlstreamitaly site.
  • Usage: Enter the login key provided by the site after registration.

Obtaining Authentication Credentials

To obtain the required authentication credentials for ddlstreamitaly:

  1. Register an account on the ddlstreamitaly website
  2. Log in to your account
  3. Access your account settings or profile page
  4. Look for API access or device authentication settings
  5. Copy the provided keys and IDs to your configuration file

Security Considerations

  • Sensitive Information: These authentication credentials are sensitive information. Do not share your config.json file containing these values.
  • Local Storage: The credentials are stored in plain text in the config.json file. Ensure that this file is only accessible to authorized users.
  • Backup: Consider backing up your configuration file after setting up these credentials to avoid having to retrieve them again.

Adding Support for Other Sites

The StreamingCommunity project may add support for additional sites in future updates. When new sites are added that require specific configuration, they will be added to the SITE_EXTRA section with appropriate documentation.

Programmatic Access

You can access and modify these settings programmatically:

from StreamingCommunity.Util.config_json import config_manager

# Get a configuration value
device_key = config_manager.get('SITE_EXTRA', 'ddlstreamitaly', 'ips4_device_key')

# Set a configuration value
config_manager.set_nested_key('SITE_EXTRA', 'ddlstreamitaly', 'ips4_device_key', 'your_device_key')
config_manager.save_config()

Related Settings

⚠️ **GitHub.com Fallback** ⚠️