forked from mmarcincin/HB-DRM-free-bulk-downloader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchangelog.txt
153 lines (123 loc) · 8.9 KB
/
changelog.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# HB DRM-Free bulk downloader
https://github.com/mmarcincin/HB-DRM-free-bulk-downloader/archive/master.zip
----------------------
HB DRM-free bulk downloader 0.3.5
----------------------
- it's possible to download bundles with leading/trailing space in titles now (thanks to ratinoxone from GitHub)
https://github.com/mmarcincin/HB-DRM-free-bulk-downloader/issues/7
- added several fixes for possible errors to README/changelog file based on reddit comments and GitHub (thanks to GiuseppeChillemi from GitHub)
- late thanks to Xandernardo from GitHub (added check for PowerShell 3+ in version 0.3.3)
- 'Key Already Claimed' issue is explained directly in PowerShell
- added check for another Humble Bundle issue specific to IE; for more information look up 'Possible Errors - download stuck at the beginning' in README/changelog file
- added solution for removing folder with leading/trailing space; for more information look up 'Possible Errors - unremovable folder with leading/trailing space' README/changelog file
----------------------
HB DRM-free bulk downloader 0.3.4
----------------------
- added md5 hash check/file integrity of downloaded files
md5 global switches:
- !md5+ (default, enable md5 file integrity check)
- !md5- (disable md5 file integrity check)
- !md5s+ (default, enable md5 hash check/file integrity of previously stored/downloaded files, disabled if you use !md5-)
- !md5s- (disable md5 hash check/file integrity of previously stored/downloaded files)
log files:
- LOG-all.txt -- complete log(downloads + errors)
- LOG-error.txt -- log of errors only (md5 fails and unsuccessful downloads)
- if you use !md5-, LOG-all.txt and LOG-error.txt will contain only unsuccessful downloads
----------------------
HB DRM-free bulk downloader 0.3.3
----------------------
- when trying to run the script, you will be asked to run at least PowerShell 3+
download link: https://docs.microsoft.com/en-us/powershell/scripting/install/installing-windows-powershell?view=powershell-6
----------------------
HB DRM-free bulk downloader 0.3.2
----------------------
- download links which doesn't contain DRM-Free files will be skipped after 10 sec
- corrected titles for non-bundle DRM-Free pages (like free games/store purchases)
----------------------
HB DRM-free bulk downloader 0.3.1
----------------------
- fixed: the default switch/setting didn't download all versions
----------------------
HB DRM-free bulk downloader 0.3
----------------------
- Internet Explorer instance is closed at the start of downloading bundle files now (instead of at the end)
- you're no longer left with an invisible Internet Explorer instance when you close downloader before it finishes downloading
----------------------
HB DRM-free bulk downloader 0.2
----------------------
- added support for folder/file paths with the 260+ character length
- added support for global and link preferred label/suffix/extension
To specify your preferred label/extension/format for link only, use:
- https://www.humblebundle.com/downloads?key=XXXXXXXXXXXXXXXX#pdf
- https://www.humblebundle.com/downloads?key=XXXXXXXXXXXXXXXX#pdf,epub,mp3
- link preferred label will always override global one
for global preferred label use:
- #pdf
- #pdf,epub,mp3
- https://www.humblebundle.com/downloads?key=XXXXXXXXXXXXXXXX
- https://www.humblebundle.com/downloads?key=XXXXXXXXXXXXXXXX
- #none (default, this will return to downloading all versions)
- if some book/game/audio doesn't have preferred label, it'll download first label (unless overridden by %strict)
platform global switches:
- @default (needed only when you want to reset it back, for exmaple from mac back to default for next set of links)
- @windows (usually selected by default; if you really want to reset it use @default instead)
- @mac
- @linux
- all of them works but it has to be the exact wording (e.g. @android)
other global switches:
- %strict (this will download only your preferred label)
- %normal (default, this will return to downloading at least 1 label)
- %pref (default, download first found preferred label in list and skip others)
- %all (download all preferred labels)
They can be used together in one line:
- %strict,pref (this would download only 1 specified label and skip others, even those without the pref label)
only # and % switches supports multiple parameters
----------------------
HB books bulk downloader 0.1
----------------------
It's a powershell script which allows you to download books from humble bundle pages (https://www.humblebundle.com/downloads?key=XXXXXXXXXXXXXXXX) in bulk.
It works natively for Windows 8+, Windows 7 required downloading the Powershell 3+, link below.
It uses Internet Explorer instance to retrieve the links so all you need to do is login to humble bundle through the internet explorer and that's it.
Right now the script puts bundle into its own folder, each book into the subfolder and all versions inside. The download is sequential for now.
I'll add some options later, like download only some versions (pdf, epub, etc..) and maybe different folder sorting by book version instead of book name (for example, all pdf in one folder).
To install newer Powershell for Windows 7, visit this link: https://docs.microsoft.com/en-us/powershell/scripting/install/installing-windows-powershell?view=powershell-6
Powershell ExecutionPolicy change
----------------------
start RUN.bat to launch the script
for editing the script itself open HB-books_download.ps1 in notepad (or notepad++,etc...)
If the window closes fast after starting RUN.bat, follow these steps:
1. Go to any folder (file explorer) and choose file > open windows powershell >
> open windows powershell as administrator.
2. In the Windows PowerShell window type: get-ExecutionPolicy.
3. If you are geting the 'Restricted' text, type: set-ExecutionPolicy RemoteSigned,
then just confirm with y for yes.
4. After that the RUN.bat should work as intented.
If you'd like to create a shortcut for the script, you just need to make shortcut of RUN.bat file.
Possible Errors - download stuck at the beginning
----------------------
If your bundle haven't started downloading already for 10+ sec and you were redirected here then open your Internet Explorer and go to https://www.humblebundle.com/.
Try to click on the dropdown menu button in top right corner, it doesn't respond most likely. You also can't see any bundles on the front page.
To make it work, follow these steps:
1. Open Internet Explorer, press alt (the toolbar will show up), go to Tools > Internet Options > Security Tab(at the top) > Trusted sites
- move the vertical bar to the bottom (Low option)
- click on Sites button and add 'https://www.humblebundle.com/' into the list (otherwise the site would load only partially)
2. Enable Protected Mode for Trusted sites (ReadyState was blank when this was disabled so script was stuck).
3. It's possible you'll get logged out of Humble Bundle after changing to Protected Mode so just login there again.
My script loads IE instance only for links and once the download starts, the IE instance should be already closed.
If you saw the PowerShell message to check this error, the IE instance is already closed as well.
Killing Internet Explorer instances might help if you encountered problems before it started working.
The fastest way to do it is to run this 'stop process' command in PowerShell:
get-process iexplore.exe | stop-process
You can check afterwards with 'get-process iexplore.exe', if you've got an error it means the IE doesn't have any windows opened. If you still have the iexplore.exe there it means you have to launch Powershell as administrator (option in File menu in your File Explorer) and run the same 'stop process' command again.
Possible Errors - 'Humble Bundle - Key already claimed'
----------------------
If you're getting 'Humble Bundle - Key already claimed' instead of bundle title when you run the script, it means you're not logged into your Humble Bundle account (which owns the bundle) in the Internet Explorer.
Possible Errors - 'Exception from HRESULT: 0x800A01B6'
----------------------
If you're getting 'Exception from HRESULT: 0x800A01B6' error, try launching RUN.bat as administrator.
You could also follow steps in 'Possible Errors - download stuck at the beginning' above.
Possible Errors - unremovable folder with leading/trailing space
----------------------
If my script created folder with space (" ") in name and you can't remove it now, you could try this to fix it:
quote by JustSolvedIt from https://superuser.com/questions/565334/rename-delete-windows-x64-folder-with-leading-and-trailing-space/911994#911994
> I just had a similar problem with folder "Monuments - Discography " created in linux. Windows Vista and Windows 7 couldn't recognize this folder as a valid data and when I tried to rename or remove it I got Info message saying that folder does not exist etc. The solution was to explore a dir with 7zip file manager and rename the folder by removing a white space from the end. Simple. Now I can enjoy the music once again :D