Skip to content

Commit

Permalink
Fixed case where links could be missed
Browse files Browse the repository at this point in the history
- Fixed case where links could be missed
- Updated download sites
  • Loading branch information
bbtufty committed Oct 25, 2024
1 parent 522d90a commit 47c4646
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
0.3 (Unreleased)
================

- Fixed case where links could be missed [#13]
- GUI updates [#12]
- Logging updates [#11]
- Update docs to reflect region preferences [#10]
Expand Down
1 change: 1 addition & 0 deletions nxbrew_dl/configs/general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ dl_sites:
- "FreeDL"
- "GoFile"
- "HexLoad"
- "HexUpload"
- "MegaUp"
- "MixDrop"

Expand Down
7 changes: 6 additions & 1 deletion nxbrew_dl/util/download_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,12 @@ def parse_base_game(
finding_links = False

# Finally, hunt through to the next tag WITHOUT a link in
tag = tag.find_next("p", href=False)
found_links = True
while found_links:
tag = tag.find_next("p", href=False)
links = tag.find_all("a", href=True)
if len(links) == 0:
found_links = False

return tag, base_game_dict

Expand Down

0 comments on commit 47c4646

Please sign in to comment.