From 5c84e8dfab345a81b3f4ea9a721c7c889af2532d Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Sat, 15 Jun 2019 15:47:48 -0700 Subject: [PATCH] restreamer: Fix wrong name for parse function derp --- restreamer/restreamer/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/restreamer/restreamer/main.py b/restreamer/restreamer/main.py index 81375f8..479829a 100644 --- a/restreamer/restreamer/main.py +++ b/restreamer/restreamer/main.py @@ -202,8 +202,8 @@ def generate_media_playlist(stream, variant): if not os.path.isdir(hours_path): abort(404) - start = common.dateutil.parse_as_utc(request.args['start']) if 'start' in request.args else None - end = common.dateutil.parse_as_utc(request.args['end']) if 'end' in request.args else None + start = common.dateutil.parse_utc_only(request.args['start']) if 'start' in request.args else None + end = common.dateutil.parse_utc_only(request.args['end']) if 'end' in request.args else None if start is None or end is None: # If start or end are not given, use the earliest/latest time available first, last = time_range_for_variant(stream, variant) @@ -237,8 +237,8 @@ def cut(stream, variant): Set to true by passing "true" (case insensitive). Even if holes are allowed, a 406 may result if the resulting video would be empty. """ - start = common.dateutil.parse_as_utc(request.args['start']) - end = common.dateutil.parse_as_utc(request.args['end']) + start = common.dateutil.parse_utc_only(request.args['start']) + end = common.dateutil.parse_utc_only(request.args['end']) if end <= start: return "End must be after start", 400