Skip to content

Commit

Permalink
Client: Process pushes properly after manifest or an initial download…
Browse files Browse the repository at this point in the history
… has been initiated
  • Loading branch information
Aniketh01 committed Sep 20, 2020
1 parent b3c4e28 commit a98ae29
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion clients/dash_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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()
Expand Down
2 changes: 0 additions & 2 deletions clients/h3_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down

0 comments on commit a98ae29

Please # to comment.