|
hudman 9.0.0
Local HUD mirror manager
|
Public Member Functions | |
| 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 = DnManager.findarchivedir(hudfile, self.archivedir) | |
| filename | |
| bool | isupdated = True |
| int | lastupdate = self._checkresult |
| str | mainuri |
| str | mirroruri |
| str | sha512hash = DnManager.sha512hash(hudfile) |
Protected 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) |
Class for working with HUDs stored on any other file hostings.
|
protectedinherited |
Download HUD to the output directory using main URI. :param outdir: Output directory. :return: Absolute path of the downloaded HUD file. :rtype: str
|
protectedinherited |
Download HUD to the output directory using mirror URI. :param outdir: Output directory. :return: Absolute path of the downloaded HUD file. :rtype: str
|
protectedinherited |
Download HUD to the output directory using upstream URI. :param outdir: Output directory. :return: Absolute path of the downloaded HUD file. :rtype: str
|
protectedinherited |
Generate a new URI for the main download. :param filename: Downloaded archive file name. :return: Fully-qualified main URI. :rtype: str
|
protectedinherited |
Generate a new URI for the mirror download. :param filename: Downloaded archive file name. :return: Fully-qualified mirror URI. :rtype: str
|
protected |
Call HTTP HEAD method to retrieve last modification time of specified URL. :return: Last modification time in the unixtime format. :rtype: int
Reimplemented from hudman.hud.HUDCommon.
|
inherited |
Get actual archive dir inside archive. :return: Archive directory name.
|
inherited |
Set actual archive dir inside archive. :param value: Archive directory name.
|
inherited |
Check for the HUD updates. :return: Return True if the new version is available. :rtype: bool
|
inherited |
Download current version of the specified HUD. :param outdir: Output directory. :return: Return True if the specified HUD was downloaded successfully. :rtype: bool
|
inherited |
Get final download filename for HUD. :return: Download filename for HUD.
|
inherited |
Get HUD's game name. :return: Game name.
|
inherited |
Set HUD's game name. :param value: Game name.
|
inherited |
Get homepage of HUD. :return: Homepage of HUD.
|
inherited |
Set homepage of HUD. :param value: Homepage of HUD.
|
inherited |
Get user friendly HUD name. :return: HUD name.
|
inherited |
Set user friendly HUD name. :param value: HUD name.
|
inherited |
Get installation directory of HUD. :return: HUD installation directory.
|
inherited |
Set installation directory of HUD. :param value: HUD installation directory.
|
inherited |
Check if current HUD is up to date. :return: Update result.
|
inherited |
Set if current HUD is up to date. :param value: Update result.
|
inherited |
Get last update time in Unixtime format. :return: Last update time.
|
inherited |
Set last update time in Unixtime format. :param value: Last update time.
|
inherited |
Get main local mirror URI. :return: Main local mirror URI.
|
inherited |
Set main local mirror URI. :param value: Main local mirror URI.
|
inherited |
Get local secondary server URI. :return: Mirror URI.
|
inherited |
Set local secondary server URI. :param value: Mirror URI.
|
inherited |
Get upstream repository URL. :return: Upstream repository URL.
|
inherited |
Set upstream repository URL. :param value: Upstream repository URL.
|
inherited |
Get screenshot URI. :return: Screenshot URI.
|
inherited |
Set screenshot URI. :param value: Screenshot URI.
|
inherited |
Get SHA-512 hash sum of HUD file. :return: SHA-512 hash sum of HUD file.
|
inherited |
Set SHA-512 hash sum of HUD file. :param value: SHA-512 hash sum of HUD file.
| None hudman.hud.other.HUDOther.update | ( | self, | |
| str | outdir ) |
Download the latest version of the specified HUD. :param outdir: Output directory.
Reimplemented from hudman.hud.HUDCommon.
|
inherited |
Get upstream URI. :return: Upstream URI.
|
inherited |
Set upstream URI. :param value: Upstream URI.