From 693549f86fdfef6e02659b7f25fd6439fffe580f Mon Sep 17 00:00:00 2001 From: William McBrine Date: Tue, 28 Feb 2012 18:58:49 -0500 Subject: [PATCH] Allow for missing "Range" header in the request from the TiVo. --- plugins/video/video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/video/video.py b/plugins/video/video.py index aae4415..f14a8ce 100644 --- a/plugins/video/video.py +++ b/plugins/video/video.py @@ -96,7 +96,7 @@ class Video(Plugin): compatible = (not needs_tivodecode and transcode.tivo_compatible(path, tsn, mime)[0]) - offset = handler.headers.getheader('Range') + offset = handler.headers.getheader('Range', 'bytes=0-') if offset: offset = int(offset[6:-1]) # "bytes=XXX-" -- 2.11.4.GIT