diff --git a/pandora/item/views.py b/pandora/item/views.py index 66a8d6d7f..95e2c2819 100644 --- a/pandora/item/views.py +++ b/pandora/item/views.py @@ -653,11 +653,12 @@ def torrent(request, id, filename=None): return response def video(request, id, profile, index=None, format=None): - print id, profile, index, format item = get_object_or_404(models.Item, itemId=id) if index: - stream = item.streams.filter(profile=profile)[index] - path = stream.video.path + index = int(index) - 1 + path = item.main_videos()[index].video.path + #stream = item.streams.filter(profile=profile)[index] + #path = stream.video.path else: stream = get_object_or_404(item.streams, profile="%s.%s" % (profile, format)) path = stream.video.path