diff --git a/stations/station.py b/stations/station.py index e8b69c4..ed36bd1 100644 --- a/stations/station.py +++ b/stations/station.py @@ -143,7 +143,7 @@ def create_custom_station(station_url): NOTE: it cannot be a FetcherStation because you can't define the fetching function. """ - is_rss_feed = feedparser.parse(station_url).entries > 0 + is_rss_feed = len(feedparser.parse(station_url).entries) > 0 if is_rss_feed: clazz = RSSStation else: