From 6fc5e583e861c59119dc2f7afb52c81e4763f0dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 12 Jun 2024 22:55:36 +0300 Subject: [PATCH] Extract file_link variable for readability --- plextraktsync/commands/inspect.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plextraktsync/commands/inspect.py b/plextraktsync/commands/inspect.py index 9be2ea8414..91a33f4fe7 100644 --- a/plextraktsync/commands/inspect.py +++ b/plextraktsync/commands/inspect.py @@ -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: