hudman 9.0.0
Local HUD mirror manager
|
Public Member Functions | |
None | __init__ (self, hud) |
str | archivedir (self) |
None | archivedir (self, str value) |
bool | check (self) |
bool | download (self, str outdir) |
str | filename (self) |
str | gamename (self) |
None | gamename (self, str value) |
str | homepage (self) |
None | homepage (self, str value) |
str | hudname (self) |
None | hudname (self, str value) |
str | installdir (self) |
None | installdir (self, str value) |
bool | isupdated (self) |
None | isupdated (self, bool value) |
int | lastupdate (self) |
None | lastupdate (self, int value) |
str | mainuri (self) |
None | mainuri (self, str value) |
str | mirroruri (self) |
None | mirroruri (self, str value) |
str | repopath (self) |
None | repopath (self, str value) |
str | screenshoturi (self) |
None | screenshoturi (self, str value) |
str | sha512hash (self) |
None | sha512hash (self, str value) |
None | update (self, str outdir) |
str | upstreamuri (self) |
None | upstreamuri (self, str value) |
Public Attributes | |
archivedir | |
isupdated | |
lastupdate | |
mainuri | |
mirroruri | |
sha512hash | |
Private Member Functions | |
str | _downloadmain (self, str outdir) |
str | _downloadmirror (self, str outdir) |
str | _downloadupstream (self, str outdir) |
str | _genmainuri (self, str filename) |
str | _genmirroruri (self, str filename) |
int | _updatecheck (self) |
Private Attributes | |
_archivedir | |
_checkresult | |
_gamename | |
_homepage | |
_hudname | |
_installdir | |
_isupdated | |
_lastupdate | |
_mainuri | |
_mirroruri | |
_repopath | |
_screenshot | |
_sha512hash | |
_upstreamuri | |
Abstract class for working with HUDs.
None hudman.hud.HUDCommon.__init__ | ( | self, | |
hud | |||
) |
Main constructor of HUDEntry class. :param hud: A single entry from HUD database.
Reimplemented in hudman.hud.github.HUDGitHub.
|
private |
Download HUD to the output directory using main URI. :param outdir: Output directory. :return: Absolute path of the downloaded HUD file. :rtype: str
|
private |
Download HUD to the output directory using mirror URI. :param outdir: Output directory. :return: Absolute path of the downloaded HUD file. :rtype: str
|
private |
Download HUD to the output directory using upstream URI. :param outdir: Output directory. :return: Absolute path of the downloaded HUD file. :rtype: str
|
private |
Generate a new URI for the main download. :param filename: Downloaded archive file name. :return: Fully-qualified main URI. :rtype: str
|
private |
Generate a new URI for the mirror download. :param filename: Downloaded archive file name. :return: Fully-qualified mirror URI. :rtype: str
|
private |
Fetch an external source and get last modification time of the selected HUD. Abstract method. :return: Last modification time in unixtime format. :rtype: int
Reimplemented in hudman.hud.github.HUDGitHub, and hudman.hud.other.HUDOther.
str hudman.hud.HUDCommon.archivedir | ( | self | ) |
Get actual archive dir inside archive. :return: Archive directory name.
None hudman.hud.HUDCommon.archivedir | ( | self, | |
str | value | ||
) |
Set actual archive dir inside archive. :param value: Archive directory name.
bool hudman.hud.HUDCommon.check | ( | self | ) |
Check for the HUD updates. :return: Return True if the new version is available. :rtype: bool
bool hudman.hud.HUDCommon.download | ( | self, | |
str | outdir | ||
) |
Download current version of the specified HUD. :param outdir: Output directory. :return: Return True if the specified HUD was downloaded successfully. :rtype: bool
str hudman.hud.HUDCommon.filename | ( | self | ) |
Get final download filename for HUD. :return: Download filename for HUD.
str hudman.hud.HUDCommon.gamename | ( | self | ) |
Get HUD's game name. :return: Game name.
None hudman.hud.HUDCommon.gamename | ( | self, | |
str | value | ||
) |
Set HUD's game name. :param value: Game name.
str hudman.hud.HUDCommon.homepage | ( | self | ) |
Get homepage of HUD. :return: Homepage of HUD.
None hudman.hud.HUDCommon.homepage | ( | self, | |
str | value | ||
) |
Set homepage of HUD. :param value: Homepage of HUD.
str hudman.hud.HUDCommon.hudname | ( | self | ) |
Get user friendly HUD name. :return: HUD name.
None hudman.hud.HUDCommon.hudname | ( | self, | |
str | value | ||
) |
Set user friendly HUD name. :param value: HUD name.
str hudman.hud.HUDCommon.installdir | ( | self | ) |
Get installation directory of HUD. :return: HUD installation directory.
None hudman.hud.HUDCommon.installdir | ( | self, | |
str | value | ||
) |
Set installation directory of HUD. :param value: HUD installation directory.
bool hudman.hud.HUDCommon.isupdated | ( | self | ) |
Check if current HUD is up to date. :return: Update result.
None hudman.hud.HUDCommon.isupdated | ( | self, | |
bool | value | ||
) |
Set if current HUD is up to date. :param value: Update result.
int hudman.hud.HUDCommon.lastupdate | ( | self | ) |
Get last update time in Unixtime format. :return: Last update time.
None hudman.hud.HUDCommon.lastupdate | ( | self, | |
int | value | ||
) |
Set last update time in Unixtime format. :param value: Last update time.
str hudman.hud.HUDCommon.mainuri | ( | self | ) |
Get main local mirror URI. :return: Main local mirror URI.
None hudman.hud.HUDCommon.mainuri | ( | self, | |
str | value | ||
) |
Set main local mirror URI. :param value: Main local mirror URI.
str hudman.hud.HUDCommon.mirroruri | ( | self | ) |
Get local secondary server URI. :return: Mirror URI.
None hudman.hud.HUDCommon.mirroruri | ( | self, | |
str | value | ||
) |
Set local secondary server URI. :param value: Mirror URI.
str hudman.hud.HUDCommon.repopath | ( | self | ) |
Get upstream repository URL. :return: Upstream repository URL.
None hudman.hud.HUDCommon.repopath | ( | self, | |
str | value | ||
) |
Set upstream repository URL. :param value: Upstream repository URL.
str hudman.hud.HUDCommon.screenshoturi | ( | self | ) |
Get screenshot URI. :return: Screenshot URI.
None hudman.hud.HUDCommon.screenshoturi | ( | self, | |
str | value | ||
) |
Set screenshot URI. :param value: Screenshot URI.
str hudman.hud.HUDCommon.sha512hash | ( | self | ) |
Get SHA-512 hash sum of HUD file. :return: SHA-512 hash sum of HUD file.
None hudman.hud.HUDCommon.sha512hash | ( | self, | |
str | value | ||
) |
Set SHA-512 hash sum of HUD file. :param value: SHA-512 hash sum of HUD file.
None hudman.hud.HUDCommon.update | ( | self, | |
str | outdir | ||
) |
Download the latest version of the specified HUD. :param outdir: Output directory.
Reimplemented in hudman.hud.other.HUDOther.
str hudman.hud.HUDCommon.upstreamuri | ( | self | ) |
Get upstream URI. :return: Upstream URI.
None hudman.hud.HUDCommon.upstreamuri | ( | self, | |
str | value | ||
) |
Set upstream URI. :param value: Upstream URI.