Skip to content

Commit

Permalink
Extract file_link variable for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Jun 12, 2024
1 parent 83fda50 commit 6fc5e58
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plextraktsync/commands/inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@ def inspect_media(plex_id: PlexId):
print("Parts:")
for index, part in enumerate(pm.parts, start=1):
size = naturalsize(part.size, binary=True)
print(
f" Part {index} (exists: {part.exists}): [link=file://{quote_plus(part.file)}]{escape(part.file)}[/link] {size}"
file_link = (
f"[link=file://{quote_plus(part.file)}]{escape(part.file)}[/link]"
)
print(f" Part {index} (exists: {part.exists}): {file_link} {size}")

print("Markers:")
for marker in pm.markers:
Expand Down

0 comments on commit 6fc5e58

Please sign in to comment.