Skip to content

Commit 180cc7f

Browse files
Merge pull request #35
v3.12.6
2 parents 2824be7 + 0749dbe commit 180cc7f

4 files changed

Lines changed: 11 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## v3.12.6
4+
5+
### Fixes
6+
7+
* Fix parsing of favorited submissions
8+
39
## v3.12.5
410

511
### Fixes

faapi/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.12.5"
1+
__version__ = "3.12.6"

faapi/parse.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,9 @@ def parse_submission_page(sub_page: BeautifulSoup) -> dict[str, Any]:
504504
tag_favorites: Optional[Tag] = sub_page.select_one(".submission-page-stats > div:nth-child(3) > div:nth-child(1)")
505505
tag_rating: Optional[Tag] = sub_page.select_one(".submission-page-stats > div:nth-child(4) > div:nth-child(1)")
506506
tag_type: Optional[Tag] = sub_page.select_one("div#submission_page[class^='page-content-type']")
507-
tag_fav: Optional[Tag] = sub_page.select_one('#submission-options > a[href^="/fav/"]')
507+
tag_fav: Optional[Tag] = sub_page.select_one(
508+
'#submission-options > a[href^="/fav/"], #submission-options > a[href^="/unfav/"]'
509+
)
508510
tag_category: Optional[Tag] = sub_page.select_one(
509511
".submission-content-stats > span:nth-child(2) > span:nth-child(1)"
510512
)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "faapi"
3-
version = "3.12.5"
3+
version = "3.12.6"
44
description = "Python module to implement API-like functionality for the FurAffinity.net website."
55
authors = ["Matteo Campinoti <matteo.campinoti94@gmail.com>"]
66
license = "EUPL-1.2"

0 commit comments

Comments
 (0)