Changement des musiques pour celles que Bing connais
This commit is contained in:
parent
12eba5cde7
commit
9bcbc81c2f
8
V6.py
8
V6.py
|
@ -356,7 +356,7 @@ def explore_on_bing(activity: str, config: Config):
|
||||||
|
|
||||||
if "lyrics" in activity:
|
if "lyrics" in activity:
|
||||||
search_bing(
|
search_bing(
|
||||||
f"paroles de {['The Black Dog', 'The Alchemy', 'The Albatross', 'The Bolter', 'Imgonnagetyouback'][randint(0, 4)]}")
|
f"paroles de {['Gata', 'Pyramide', 'Dolce Camara', 'Position', 'Mami Wata'][randint(0, 4)]}") # merci bing copilot pour les titres
|
||||||
elif "flight" in activity:
|
elif "flight" in activity:
|
||||||
search_bing(
|
search_bing(
|
||||||
f"vol {['Paris - New York', 'Londres Amsterdam', 'Bora-Bora Miami', 'Los Angeles Toulouse', 'Rome Dubai'][randint(0, 4)]}")
|
f"vol {['Paris - New York', 'Londres Amsterdam', 'Bora-Bora Miami', 'Los Angeles Toulouse', 'Rome Dubai'][randint(0, 4)]}")
|
||||||
|
@ -365,6 +365,8 @@ def explore_on_bing(activity: str, config: Config):
|
||||||
elif "movie" in activity:
|
elif "movie" in activity:
|
||||||
search_bing(
|
search_bing(
|
||||||
f"Distribution {['Code 8 part 2', 'The Hunger Games: The ballad of Songbirds & Snakes', 'Rebel Moon: Part Two', 'Dune II', 'Wonka'][randint(0, 4)]}")
|
f"Distribution {['Code 8 part 2', 'The Hunger Games: The ballad of Songbirds & Snakes', 'Rebel Moon: Part Two', 'Dune II', 'Wonka'][randint(0, 4)]}")
|
||||||
|
else:
|
||||||
|
log_error(f"Explore on bing: {activity} not found.")
|
||||||
|
|
||||||
|
|
||||||
# Find out which type of action to do
|
# Find out which type of action to do
|
||||||
|
@ -425,11 +427,11 @@ def try_play(nom="unknown", activity=""):
|
||||||
warning(f"recovery detected. quiz : {number}")
|
warning(f"recovery detected. quiz : {number}")
|
||||||
play(number - 1)
|
play(number - 1)
|
||||||
elif "exploreonbing" in activity:
|
elif "exploreonbing" in activity:
|
||||||
info("Explore on bing")
|
info(f"Explore on bing: {activity}")
|
||||||
explore_on_bing(activity, config)
|
explore_on_bing(activity, config)
|
||||||
custom_sleep(uniform(3, 5))
|
custom_sleep(uniform(3, 5))
|
||||||
else:
|
else:
|
||||||
info(f"Nothing obvious to do on page `{nom}`. Activity: {activity}")
|
info(f"Nothing obvious to do on page `{nom}`.")
|
||||||
custom_sleep(uniform(3, 5))
|
custom_sleep(uniform(3, 5))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue