Skip to content

Commit edec91d

Browse files
committedMar 6, 2025
Fix incorrect XML path for items in RSS feed parsing
Updated the XPath from 'channel/items' to 'channel/item' to correctly fetch RSS feed items. This resolves parsing issues and ensures accurate episode count extraction.
1 parent f293e27 commit edec91d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎code/code_with_me/podcast/service.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ def download_info():
1515

1616
dom = ElementTree.fromstring(resp.text)
1717

18-
items = dom.findall('channel/items')
18+
items = dom.findall('channel/item')
19+
# Probably right here, smell, smell
1920
episode_count = len(items)
2021

2122
for idx, item in enumerate(items):

0 commit comments

Comments
 (0)
Please sign in to comment.