mirror of
https://github.com/kaaninchen/Gleiswechsel.git
synced 2026-07-21 19:52:47 +00:00
URL zu embeds hinzugefügt
This commit is contained in:
@@ -60,6 +60,7 @@ def build_info_embed() -> discord.Embed | None:
|
||||
route_lines.append(f"• {stop_name}")
|
||||
|
||||
embed.add_field(name="Route", value="\n".join(route_lines))
|
||||
embed.add_field(name="Weitere Informationen", value=info['url'].rsplit('.', 1)[0], inline=False)
|
||||
|
||||
slogans = operator_infos.get("slogan")
|
||||
footer_text = (
|
||||
|
||||
+2
-1
@@ -68,7 +68,8 @@ def get_train_info(station, train_ID, train_type):
|
||||
arrival_iso = dep.get("route_post_diff", [])[-1].get("sched_arr")
|
||||
return {
|
||||
"arrival": arrival_iso,
|
||||
"operators": dep.get("operators")
|
||||
"operators": dep.get("operators"),
|
||||
"url": url
|
||||
}
|
||||
|
||||
def format_via_list(via: list[str]):
|
||||
|
||||
Reference in New Issue
Block a user