Skip to content

Commit fbefb6e

Browse files
committed
Bug Fix
Fixed a bug that sent a wrong url to get_comic_url Signed-off-by: Victor Otieno Omondi <vickz84259@gmail.com>
1 parent ab4bcbd commit fbefb6e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
xkcd.cfg
22
xkcd.log
33

4+
*.py[cod]
5+
46
.codeintel/
57
vick.sublime-project
68
vick.sublime-workspace

XKCD/web.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# [SublimeLinter @python:2]
33

44
__author__ = 'Victor Otieno Omondi'
5-
__version__ = '2.0.0-alpha'
65

76
import logging
87
import os

scripts/download_xkcd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# download_xkcd.py - Downloads comics from xkcd.com.
44

55
__author__ = 'Victor Otieno Omondi'
6-
__version__ = '2.0.0-alpha'
6+
__version__ = '2.0.1-alpha'
77

88
# Standard library modules
99
import logging
@@ -97,7 +97,7 @@ def download_comic(path, start=1, end=0):
9797
end = start + 1
9898

9999
for i in range(start, end):
100-
url_queue.put('http://xkcd.com/{}'.format(i))
100+
url_queue.put('http://xkcd.com/{}/info.0.json'.format(i))
101101

102102
for i in range(download_workers):
103103
t = workers.DownloadWorker(path, download_queue)

0 commit comments

Comments
 (0)