Fix TheTVDB and AniUlt

This commit is contained in:
Michel Roux 2021-03-08 14:05:20 +01:00
parent b3da95bec5
commit 2b6ac41af9
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -34,7 +34,7 @@
{% block add_button %}{% endblock %}
{% if request.args.get('q') %}
<a class="navbar-item has-tooltip-bottom has-tooltip-hidden-desktop" data-tooltip="TVDB"
href="https://www.thetvdb.com/search?menu%5Btype%5D=TV&query={{ request.args.get('q') }}"
href="https://www.thetvdb.com/search?menu%5Btype%5D=series&query={{ request.args.get('q') }}"
target="_blank">
<i class="fa fa-television"></i><i>&nbsp;</i>
<span class="is-hidden-mobile">TVDB</span>