Skip to content

Commit

Permalink
Fix spam flag length bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchdowney committed Apr 17, 2024
1 parent 402092a commit dede7c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ export const parseFeedUrl = async (feedUrl, forceReparsing = false, cacheBust =

if (
podcast.flag_status !== 'always-allow' &&
(parsedEpisodes?.length >= 1 || parsedLiveItemEpisodes?.length >= 1)
(parsedEpisodes?.length >= 10000 || parsedLiveItemEpisodes?.length >= 10000)
) {
console.log('Aborting parser: too many episodes. Marking podcast as spam.')
podcast.flag_status = 'spam'
Expand Down

0 comments on commit dede7c8

Please sign in to comment.