Skip to content

Commit

Permalink
Fixing feeds only exporting 1 feed item per run
Browse files Browse the repository at this point in the history
  • Loading branch information
geirawsm committed Jun 20, 2024
1 parent 0dc5068 commit cbff9a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions sausage_bot/util/feeds_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ async def get_items_from_rss(
if test:
max_items = 1
else:
max_items = 3
max_items = 5
items_out = {
'filters': filters_in,
'items': [],
Expand All @@ -106,8 +106,8 @@ async def get_items_from_rss(
# Gets Youtube feed
elif soup.find('yt:channelId'):
log.debug('Found Youtube feed')
all_entries = soup.find_all('entry')
for item in all_entries[0:max_items]:
all_entries = soup.find_all('entry')[0:max_items]
for item in all_entries:
temp_info = items_info.copy()
temp_info['type'] = 'youtube'
temp_info['title'] = item.find('title').text
Expand Down
2 changes: 1 addition & 1 deletion sausage_bot/util/net_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def post_based_on_filter(item, filters_in):
links_out.append(item)
else:
links_out.append(item)
return links_out
return links_out


def make_event_start_stop(date, time=None):
Expand Down

0 comments on commit cbff9a5

Please sign in to comment.