Skip to content

Commit dc3e425

Browse files
AddictingGames and Newgrounds minor changes
1 parent a7f15cc commit dc3e425

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

sites/AddictingGames.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def parse(self, soup):
9393

9494
def soupify(self):
9595
# html5lib is required to parse description correctly.
96-
return fpclib.get_soup(self.src, "html5lib")
96+
return fpclib.get_soup(self.src, "html5lib") or fpclib.get_soup(self.src)
9797

9898
def get_files(self):
9999
if self.platform == "HTML5":

sites/Newgrounds.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,13 @@
2020
# This is the class to use to curate with. It is also required!
2121
class Newgrounds(fpclib.Curation):
2222
def parse(self, osoup):
23+
try:
24+
self._parse(osoup)
25+
except:
26+
url = self.url if self.url[-1] != "/" else self.url[:-1]
27+
self._parse(fpclib.get_soup(url + "/format/flash"))
2328

29+
def _parse(self, osoup):
2430
# Check for login-lock
2531
login = "requires a Newgrounds account to play" in osoup.select_one(".column").text
2632
if login:

sites/defs.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1617819373.2090414
1+
1627351461.3677385
22
AddictingGames.py
33
CoolmathGames.py
44
FreeArcade.py

0 commit comments

Comments
 (0)