Skip to content

sok.media.games.dlc

DLC class for downloadable content and game expansions.

DLC

class DLC(name: str, language: str, media_manager, platform: str = 'PC')

Bases: Game

Class for managing game DLCs and expansions.

Extends Game class with DLC-specific attributes.

Additional Attributes:

base_game (str): Parent game title
base_game_id (str): Parent game ID
dlc_type (str): Type (expansion, cosmetic, season pass, etc.)
file_size (int): Download size in MB

Example:

>>> manager = UniversalMediaManager()
>>> dlc = DLC("Blood and Wine", "en", manager, platform="PC")
>>> dlc.base_game = "The Witcher 3: Wild Hunt"
>>> dlc.dlc_type = "expansion"

Initialize a DLC instance.

Parameters

NameTypeDefaultDescription
namestr
languagestr
platformstr'PC'
Source

Attributes

NameType
base_gameOptional[str]
base_game_idOptional[str]
dlc_typestr
file_sizeint

get_formatted_name

def get_formatted_name() -> str:

Returns formatted DLC name with base game.

Source
Built with Kiln