From e43bd0258369850b9b1587debc7b9e89b6bde401 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Mon, 3 Oct 2016 20:29:24 -0700 Subject: [PATCH] else --- OpenDirDL/README.md | 3 +++ OpenDirDL/opendirdl.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/OpenDirDL/README.md b/OpenDirDL/README.md index 48531e5..25471c3 100644 --- a/OpenDirDL/README.md +++ b/OpenDirDL/README.md @@ -7,6 +7,9 @@ Requires `pip install beautifulsoup4`. See inside opendirdl.py for usage instructions. +- 2016 10 03 + - **[bugfix]** Fix KeyError caused by the 'root' -> 'domain' rename. + - 2016 10 01 - **[bugfix]** Fixed the download function so it actually passes `headers` into downloady. - **[change]** `url_split` key 'root' has been renamed to 'domain'. diff --git a/OpenDirDL/opendirdl.py b/OpenDirDL/opendirdl.py index 3d4167f..e89359f 100644 --- a/OpenDirDL/opendirdl.py +++ b/OpenDirDL/opendirdl.py @@ -519,7 +519,7 @@ def build_file_tree(databasename): if len(all_items) == 0: return - path_form = '{root}\\{folder}\\{filename}' + path_form = '{domain}\\{folder}\\{filename}' all_items = [ { 'url': item[SQL_URL],