aboutsummaryrefslogtreecommitdiff
path: root/youtube_dlc/downloader/hls.py
diff options
context:
space:
mode:
authorUnknown <blackjack4494@web.de>2020-09-22 16:24:06 +0200
committerUnknown <blackjack4494@web.de>2020-09-22 16:24:06 +0200
commit11f96ac427c684d96b9f7f722c47fa0f68c2a53b (patch)
tree418fb39251427daba6fd249300461a5a2d8f0459 /youtube_dlc/downloader/hls.py
parent486ad2cd50d32482e33c370c89e7d40ebed3528d (diff)
parent1b3f7c9a7ef0f107819b59479811c5f0066f2def (diff)
Merge branch 'ytdl-org-master'
Diffstat (limited to 'youtube_dlc/downloader/hls.py')
-rw-r--r--youtube_dlc/downloader/hls.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dlc/downloader/hls.py b/youtube_dlc/downloader/hls.py
index 84bc34928..0f2c06f40 100644
--- a/youtube_dlc/downloader/hls.py
+++ b/youtube_dlc/downloader/hls.py
@@ -141,7 +141,7 @@ class HlsFD(FragmentFD):
count = 0
headers = info_dict.get('http_headers', {})
if byte_range:
- headers['Range'] = 'bytes=%d-%d' % (byte_range['start'], byte_range['end'])
+ headers['Range'] = 'bytes=%d-%d' % (byte_range['start'], byte_range['end'] - 1)
while count <= fragment_retries:
try:
success, frag_content = self._download_fragment(