fastfeedparser 0.5.7__tar.gz → 0.5.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fastfeedparser-0.5.7/src/fastfeedparser.egg-info → fastfeedparser-0.5.8}/PKG-INFO +1 -1
- {fastfeedparser-0.5.7 → fastfeedparser-0.5.8}/setup.cfg +1 -1
- {fastfeedparser-0.5.7 → fastfeedparser-0.5.8}/src/fastfeedparser/main.py +16 -2
- {fastfeedparser-0.5.7 → fastfeedparser-0.5.8/src/fastfeedparser.egg-info}/PKG-INFO +1 -1
- {fastfeedparser-0.5.7 → fastfeedparser-0.5.8}/LICENSE +0 -0
- {fastfeedparser-0.5.7 → fastfeedparser-0.5.8}/README.md +0 -0
- {fastfeedparser-0.5.7 → fastfeedparser-0.5.8}/pyproject.toml +0 -0
- {fastfeedparser-0.5.7 → fastfeedparser-0.5.8}/src/fastfeedparser/__init__.py +0 -0
- {fastfeedparser-0.5.7 → fastfeedparser-0.5.8}/src/fastfeedparser.egg-info/SOURCES.txt +0 -0
- {fastfeedparser-0.5.7 → fastfeedparser-0.5.8}/src/fastfeedparser.egg-info/dependency_links.txt +0 -0
- {fastfeedparser-0.5.7 → fastfeedparser-0.5.8}/src/fastfeedparser.egg-info/requires.txt +0 -0
- {fastfeedparser-0.5.7 → fastfeedparser-0.5.8}/src/fastfeedparser.egg-info/top_level.txt +0 -0
- {fastfeedparser-0.5.7 → fastfeedparser-0.5.8}/tests/test_encoding.py +0 -0
- {fastfeedparser-0.5.7 → fastfeedparser-0.5.8}/tests/test_integration.py +0 -0
|
@@ -991,8 +991,19 @@ def _parse_feed_info(
|
|
|
991
991
|
for link in channel.findall(f"{{{atom_ns}}}link"):
|
|
992
992
|
rel = link.get("rel")
|
|
993
993
|
href = link.get("href") or link.get("link")
|
|
994
|
-
if rel
|
|
994
|
+
if rel == "alternate" and href and not feed_link:
|
|
995
995
|
feed_link = href
|
|
996
|
+
feed_links.append(
|
|
997
|
+
{
|
|
998
|
+
"rel": rel,
|
|
999
|
+
"type": link.get("type"),
|
|
1000
|
+
"href": href,
|
|
1001
|
+
"title": link.get("title"),
|
|
1002
|
+
}
|
|
1003
|
+
)
|
|
1004
|
+
elif rel is None and href:
|
|
1005
|
+
if not feed_link:
|
|
1006
|
+
feed_link = href
|
|
996
1007
|
elif rel not in {"hub", "self", "replies", "edit"}:
|
|
997
1008
|
feed_links.append(
|
|
998
1009
|
{
|
|
@@ -1134,7 +1145,10 @@ def _populate_entry_links_from_elements(
|
|
|
1134
1145
|
"title": link.get("title"),
|
|
1135
1146
|
}
|
|
1136
1147
|
if rel == "alternate":
|
|
1137
|
-
alternate_link
|
|
1148
|
+
if alternate_link is None:
|
|
1149
|
+
alternate_link = link_dict
|
|
1150
|
+
else:
|
|
1151
|
+
entry_links.append(link_dict)
|
|
1138
1152
|
elif rel not in {"edit", "self"}:
|
|
1139
1153
|
entry_links.append(link_dict)
|
|
1140
1154
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fastfeedparser-0.5.7 → fastfeedparser-0.5.8}/src/fastfeedparser.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|