Keep the target from the path when formatting a file name.

Chri [2010-07-13 12:56]
Keep the target from the path when formatting a file name.
Filename
pl.py
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
ViewGit