diff --git a/plugins/invidious.py b/plugins/invidious.py index ca45d8c..3ed2ab7 100644 --- a/plugins/invidious.py +++ b/plugins/invidious.py @@ -28,7 +28,7 @@ def __init__(self, options: dict[str, str]): super().__init__({'domain': os.getenv('INVIDIOUS_DOMAIN'), **options}) def get_feed(self, feed_id): - response = httpx.get(f"https://{self.options.domain}/feed/{self.options.feed_type}/{feed_id}") + response = httpx.get(f"https://{self.options.domain}/feed/{self.options.feed_type}/{feed_id}", timeout=10) sel = Selector(response.text) title = sel.css('feed > title::text').get() return PodcastFeed( diff --git a/plugins/ivoox.py b/plugins/ivoox.py index 277b588..6db55dd 100644 --- a/plugins/ivoox.py +++ b/plugins/ivoox.py @@ -28,7 +28,7 @@ def get_feed(self, feed_id): next_page_url = sel.css('.pagination li:last-child a::attr(href)').get() if next_page_url == '#': break - response = httpx.get(next_page_url) + response = httpx.get(next_page_url, follow_redirects=True) sel = Selector(response.text) videos.extend(sel.css('.modulo-type-episodio')) return PodcastFeed(