From db96dbf29ca66f94d640c3124a511f8f3033c722 Mon Sep 17 00:00:00 2001 From: Chri Date: Tue, 13 Jul 2010 14:56:28 +0200 Subject: [PATCH] Keep the target from the path when formatting a file name. --- pl.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pl.py b/pl.py index 575a5f2..3f6eaa2 100755 --- a/pl.py +++ b/pl.py @@ -337,8 +337,7 @@ def replace_in_pl(pl, entry, new): return new_pl def format_item(item, options, indent=0): - # we remove the target from the path - return ' ' * indent + item[len(options.target):] + return ' ' * indent + item def print_version(_option, _opt_str, _value, _parser): print "playlist_checker %s" % VERSION -- 2.45.1