diff --git a/pandora/item/models.py b/pandora/item/models.py index 7ce7acd05..ccb945902 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -1182,6 +1182,7 @@ class Item(models.Model): media_path = media_path.encode('utf-8') if isinstance(video, unicode): video = video.encode('utf-8') + media_path = os.path.relpath(media_path, os.path.dirname(video)) os.symlink(media_path, video) size = v.media.size duration = v.duration @@ -1197,6 +1198,7 @@ class Item(models.Model): media_path = media_path.encode('utf-8') if isinstance(video, unicode): video = video.encode('utf-8') + media_path = os.path.relpath(media_path, os.path.dirname(video)) os.symlink(media_path, video) size += v.media.size duration += v.duration