Fixes another bug with retrieving all Dinosaur Comics
This commit is contained in:
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "comic_download"
|
||||
version = "0.2.1"
|
||||
version = "0.2.2"
|
||||
authors = [
|
||||
{name = "Markil 3", email = "markil3@singlepilot.net"}
|
||||
]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[metadata]
|
||||
name = comic_download
|
||||
version = 0.2.1
|
||||
version = 0.2.2
|
||||
|
||||
[options]
|
||||
package_dir=
|
||||
|
||||
@@ -64,7 +64,8 @@ class DinosaurComic(Comic):
|
||||
self.strip_index = {}
|
||||
date_pat = re.compile(r'(\d+)(st|nd|rd|th)')
|
||||
for archive_month in archives:
|
||||
link_el = archive_month.find("a")
|
||||
for line_item in archive_month.find_all("li"):
|
||||
link_el = line_item.find("a")
|
||||
if link_el:
|
||||
parsed_index = urlparse(link_el["href"])
|
||||
identifier = int(parse_qs(parsed_index.query)["comic"][0])
|
||||
|
||||
Reference in New Issue
Block a user