From 2b6ac41af9ca1176ecdfb2a8b7b9d8c262a8d09b Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Mon, 8 Mar 2021 14:05:20 +0100 Subject: [PATCH] Fix TheTVDB and AniUlt --- pynyaata/connectors/animeultime.py | 2 +- pynyaata/templates/layout.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pynyaata/connectors/animeultime.py b/pynyaata/connectors/animeultime.py index 0163310..124d81b 100644 --- a/pynyaata/connectors/animeultime.py +++ b/pynyaata/connectors/animeultime.py @@ -37,7 +37,7 @@ class AnimeUltime(ConnectorCore): title = html.select('div.title') player = html.select('div.AUVideoPlayer') - if 'Recherche' in title[0].get_text(): + if len(title) > 0 and 'Recherche' in title[0].get_text(): trs = html.select('table.jtable tr') for i, tr in enumerate(trs): diff --git a/pynyaata/templates/layout.html b/pynyaata/templates/layout.html index ca1543f..b35e586 100644 --- a/pynyaata/templates/layout.html +++ b/pynyaata/templates/layout.html @@ -34,7 +34,7 @@ {% block add_button %}{% endblock %} {% if request.args.get('q') %}   TVDB