IDownloadManager

class mobase.IDownloadManager

Bases: PyQt5.QtCore.QObject

Attributes Summary

downloadComplete

downloadFailed

downloadPaused

downloadRemoved

Methods Summary

downloadPath(id)

Retrieve the (absolute) path of the specified download.

startDownloadNexusFile(mod_id, file_id)

Download a file from www.nexusmods.com/<game>.

startDownloadURLs(urls)

Download a file by url.

Attributes Documentation

downloadComplete: PyQt5.QtCore.pyqtSignal = Ellipsis
downloadFailed: PyQt5.QtCore.pyqtSignal = Ellipsis
downloadPaused: PyQt5.QtCore.pyqtSignal = Ellipsis
downloadRemoved: PyQt5.QtCore.pyqtSignal = Ellipsis

Methods Documentation

downloadPath(id)

Retrieve the (absolute) path of the specified download.

Parameters

id – ID of the download.

Returns

The absolute path to the file corresponding to the given download. This file

may not exist yet if the download is incomplete.

Return type

str

startDownloadNexusFile(mod_id, file_id)

Download a file from www.nexusmods.com/<game>. <game> is always the game currently being managed.

Parameters
  • mod_id – ID of the mod to download the file from.

  • file_id – ID of the file to download.

Returns

An ID identifying the download.

Return type

int

startDownloadURLs(urls)

Download a file by url.

The list can contain alternative URLs to allow the download manager to switch in case of download problems

Parameters

urls – List of urls to download from.

Returns

An ID identifying the download.

Return type

int