Skip to content

Commit

Permalink
Format Python code with psf/black (#126)
Browse files Browse the repository at this point in the history
Co-authored-by: ltzmax <[email protected]>
  • Loading branch information
github-actions[bot] and ltzmax authored Jan 19, 2024
1 parent c677a45 commit 91ed71a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions themoviedb/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ async def build_tvshow_embed(ctx, data, tv_id, i, results):
if not data:
return None
embed = discord.Embed(
title=data.get("title", "No title available.")[:256] if data and data.get("title") else "No title available.",
title=data.get("title", "No title available.")[:256]
if data and data.get("title")
else "No title available.",
url=f"https://www.themoviedb.org/tv/{tv_id}",
description=data["overview"][:1048]
if data["overview"]
Expand Down Expand Up @@ -205,7 +207,9 @@ async def build_movie_embed(ctx, data, movie_id, i, results):
if not data:
return None
embed = discord.Embed(
title=data.get("title", "No title available.")[:256] if data and data.get("title") else "No title available.",
title=data.get("title", "No title available.")[:256]
if data and data.get("title")
else "No title available.",
url=f"https://www.themoviedb.org/movie/{movie_id}",
description=data["overview"][:1048]
if data["overview"]
Expand Down

0 comments on commit 91ed71a

Please sign in to comment.