From a98ae29b7e3510b1ac348286b4ca949a18d3ad83 Mon Sep 17 00:00:00 2001 From: Aniketh01 Date: Mon, 21 Sep 2020 01:30:47 +0530 Subject: [PATCH] Client: Process pushes properly after manifest or an initial download has been initiated --- clients/dash_client.py | 2 +- clients/h3_client.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/clients/dash_client.py b/clients/dash_client.py index ec36bc2..1789689 100644 --- a/clients/dash_client.py +++ b/clients/dash_client.py @@ -89,7 +89,6 @@ async def download_manifest(self) -> None: logger.info("Downloading Manifest file") # Include is hard-coded to be False as JSON parser would fail to # parse any parameters which aren't valid JSON format. - process_http_pushes(client=self.protocol, include=self.args.include, output_dir=self.args.output_dir) res = await perform_http_request(client=self.protocol, url=self.args.urls[0], data=self.args.data, @@ -105,6 +104,7 @@ async def download_manifest(self) -> None: async def dash_client_set_config(self) -> None: logger.info("DASH client initialization in process") await self.download_manifest() + process_http_pushes(client=self.protocol, include=self.args.include, output_dir=self.args.output_dir) self.abr_algorithm = select_abr_algorithm(self.manifest_data, self.args) self.currentSegment = self.manifest_data['start_number'] self.totalSegments = self.getTotalSegments() diff --git a/clients/h3_client.py b/clients/h3_client.py index 7fbe5ee..d613e7b 100644 --- a/clients/h3_client.py +++ b/clients/h3_client.py @@ -182,9 +182,7 @@ def process_http_pushes( include: bool, output_dir: Optional[str], ) -> None: - print(client.pushes.items()) for _, http_events in client.pushes.items(): - print("ANIKEGH ANIKEHT NAIKETH") method = "" octets = 0 path = ""