diff options
author | Papoteur <papoteur@mageialinux-online.org> | 2016-10-02 20:58:17 +0200 |
---|---|---|
committer | Papoteur <papoteur@mageialinux-online.org> | 2016-10-02 20:58:17 +0200 |
commit | 8cea3291d8db51f9ad5c684689c8610b78622089 (patch) | |
tree | 416c121448e4a7a19096b1f757ad881fd97ffb7c /autodownload.py | |
parent | f17f9c10aac23dac0b4809e80889a156a39111cf (diff) | |
download | doc-8cea3291d8db51f9ad5c684689c8610b78622089.tar doc-8cea3291d8db51f9ad5c684689c8610b78622089.tar.gz doc-8cea3291d8db51f9ad5c684689c8610b78622089.tar.bz2 doc-8cea3291d8db51f9ad5c684689c8610b78622089.tar.xz doc-8cea3291d8db51f9ad5c684689c8610b78622089.zip |
Updated scripts for draklive and dealing all languages in the same process
Diffstat (limited to 'autodownload.py')
-rw-r--r-- | autodownload.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/autodownload.py b/autodownload.py index 24108656..11ba0cad 100644 --- a/autodownload.py +++ b/autodownload.py @@ -23,13 +23,13 @@ from html.parser import HTMLParser manual_name_prefix = {"installer": "DrakX-", - "MCC": "MCC-"} + "MCC": "MCC-", "draklive": "DrakLive-"} manual_name_suffix = "WebHelp-zipped.zip" def usage(): print("python3 autodownlaod.py <manual> [<server_url>]") - print("\t <manual>: MCC or installer") + print("\t <manual>: MCC, installer or draklive") print("\t <server_url>: (optional) if not given: " + "http://docteam.mageia.nl/zipped/ will be used") @@ -82,8 +82,8 @@ if __name__ == "__main__": if len(sys.argv) == 3: base_url = sys.argv[2] else: - base_url = "http://docteam.mageia.nl/zipped/" - base_url = base_url + "/" + manual + "/" + base_url = "http://docteam.mageia.nl/zipped" + base_url = base_url + "/" + manual print(base_url) language_list = getPage(base_url) for elem in language_list: |