From 0582892b33fb303ce76a0016152f935e51f59367 Mon Sep 17 00:00:00 2001 From: Przemyslaw Gorszkowski Date: Thu, 30 May 2019 11:02:17 +0200 Subject: [PATCH] add support for 'Bandwidth' identifier for URL template --- dashproxy.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dashproxy.py b/dashproxy.py index 5482ef6..a35a9f9 100755 --- a/dashproxy.py +++ b/dashproxy.py @@ -245,10 +245,12 @@ def download_template(self, template, representation=None, segment=None): def render_template(self, template, representation=None, segment=None): template = template.replace('$RepresentationID$', '{representation_id}') template = template.replace('$Time$', '{time}') + template = template.replace('$Bandwidth$', '{bandwidth}') args = {} if representation is not None: args['representation_id'] = representation.attrib.get('id', '') + args['bandwidth'] = representation.attrib.get('bandwidth', '') if segment is not None: args['time'] = segment.attrib.get('t', '')