Prova test-suite
This commit is contained in:
10
tests/run.sh
10
tests/run.sh
@@ -3,10 +3,10 @@ rm tests/home/userdata/addon_data/plugin.video.kod/settings_channels/*.json
|
||||
rm tests/home/userdata/addon_data/plugin.video.kod/settings_servers/*.json
|
||||
rm tests/home/userdata/addon_data/plugin.video.kod/cookies.dat
|
||||
rm tests/home/userdata/addon_data/plugin.video.kod/kod_db.sqlite
|
||||
python3.9 -m pip install --upgrade pip
|
||||
pip3.9 install -U sakee
|
||||
pip3.9 install -U html-testRunner
|
||||
pip3.9 install -U parameterized
|
||||
python -m pip install --upgrade pip
|
||||
pip install -U sakee
|
||||
pip install -U html-testRunner
|
||||
pip install -U parameterized
|
||||
export PYTHONPATH=$PWD
|
||||
export KODI_INTERACTIVE=0
|
||||
export KODI_HOME=$PWD/tests/home
|
||||
@@ -14,4 +14,4 @@ if (( $# >= 1 ))
|
||||
then
|
||||
export KOD_TST_CH=$1
|
||||
fi
|
||||
python3.9 tests/test_generic.py
|
||||
python tests/test_generic.py
|
||||
@@ -197,7 +197,12 @@ for chItem in channel_list:
|
||||
|
||||
# if more search action (ex: movie, tvshow), firstcontent need to be changed in every menu
|
||||
if itemlist and itemlist[0].action in ('findvideos', 'episodios'):
|
||||
firstContent = re.match('[ \w]*', itemlist[0].fulltitle).group(0)
|
||||
for it2 in itemlist:
|
||||
# some sites refuse to search if the search term is too short
|
||||
title = it2.fulltitle if it2.contentType == 'movie' else it2.contentSerieName
|
||||
if title > 5:
|
||||
firstContent = re.match('[ \w]*', title).group(0)
|
||||
break
|
||||
|
||||
# some sites might have no link inside, but if all results are without servers, there's something wrong
|
||||
for resIt in itemlist:
|
||||
|
||||
Reference in New Issue
Block a user