Skip to content

Commit

Permalink
Make filenames as file:// links
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Dec 19, 2021
1 parent 80b6afe commit 3001806
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
@@ -1,4 +1,5 @@
import click
from urllib.parse import quote_plus as urlencode

from plextraktsync.factory import factory
from plextraktsync.version import version
Expand Down Expand Up @@ -52,7 +53,7 @@ def inspect_media(id):

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

print("Guids:")
for guid in pm.guids:
Expand Down

0 comments on commit 3001806

Please sign in to comment.