Skip to content

Commit

Permalink
Merge pull request #1738 from glensc/inspect-escape
Browse files Browse the repository at this point in the history
Fix: Escape filename in inspect
  • Loading branch information
glensc authored Jan 15, 2024
2 parents 0b954d8 + f27cc20 commit 3176f0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plextraktsync/commands/inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from urllib.parse import quote_plus

from plexapi.utils import millisecondToHumanstr
from rich.markup import escape

from plextraktsync.factory import factory
from plextraktsync.plex.PlexId import PlexId
Expand Down Expand Up @@ -59,7 +60,7 @@ def inspect_media(plex_id: PlexId):

print("Parts:")
for index, part in enumerate(pm.parts, start=1):
print(f" Part {index}: [link=file://{quote_plus(part.file)}]{part.file}[/link] {part.size} bytes")
print(f" Part {index}: [link=file://{quote_plus(part.file)}]{escape(part.file)}[/link] {part.size} bytes")

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

0 comments on commit 3176f0b

Please sign in to comment.