Skip to content

Commit

Permalink
Fix video links
Browse files Browse the repository at this point in the history
  • Loading branch information
TLNBS2405 committed Mar 23, 2024
1 parent ee01a0b commit 0a75b32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/frame_service/wavu/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ def _convert_json_move(move_json: Any) -> WavuMove:
if "video" in move_json and move_json["video"]:
video = _process_links(move_json["video"])
video_name = video.split(":")[-1]
video_name=video_name.replace(" ","_")
video = WAVU_VIDEO_LINK + video_name
else:
video = ""
Expand Down
2 changes: 1 addition & 1 deletion src/heihachi/embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def get_move_embed(frame_service: FrameService, character: Character, move: Move
embed.set_image(url=move.image)

if move.video:
embed.add_field(name="Video", value=move.video, inline=False)
embed.add_field(name="Video", value=f'[Link]({move.video})', inline=False)

# TODO: include move.video in a nice way

Expand Down

0 comments on commit 0a75b32

Please sign in to comment.