Skip to content

Commit

Permalink
fix compress.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored Jun 6, 2024
1 parent 9f692b8 commit d6b88e6
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/compress/compress.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#
from .constants import *
#from builtins import isinstance
#from typing import Dict, List
from typing import Dict, List
#
#
class CompressClient:
Expand Down Expand Up @@ -300,7 +300,7 @@ def hls_stop(self, restreamer_name : str, stream_protocol: str ):
#} `json:"external_servers"`
# * @returns
# */
def push_start(self, restreamer_name : str, external_servers: object ):
def push_start(self, restreamer_name : str, external_servers: List ):
return self.req.post(TNGRM_BASE_URL + RESTREAMER_PUSH_START,
headers={
"Content-Type": "application/json",
Expand All @@ -309,6 +309,7 @@ def push_start(self, restreamer_name : str, external_servers: object ):
"api_key": self.api_key,
"client_id": self.client_id,
"instance_name": restreamer_name,
"external_servers": external_servers
})
)
#
Expand All @@ -325,7 +326,7 @@ def push_start(self, restreamer_name : str, external_servers: object ):
#} `json:"external_servers"`
# * @returns
# */
def push_stop(self, restreamer_name : str, external_servers: object ):
def push_stop(self, restreamer_name : str, external_servers: List ):
return self.req.post(TNGRM_BASE_URL + RESTREAMER_PUSH_STOP,
headers={
"Content-Type": "application/json",
Expand All @@ -334,6 +335,7 @@ def push_stop(self, restreamer_name : str, external_servers: object ):
"api_key": self.api_key,
"client_id": self.client_id,
"instance_name": restreamer_name,
"external_servrs": external_servers
})
)
#
Expand All @@ -348,7 +350,7 @@ def push_stop(self, restreamer_name : str, external_servers: object ):
#} `json:"external_servers"`
# * @returns
# */
def pull_start(self, restreamer_name : str, external_servers: object ):
def pull_start(self, restreamer_name : str, external_servers: List ):
return self.req.post(TNGRM_BASE_URL + RESTREAMER_PULL_START,
headers={
"Content-Type": "application/json",
Expand All @@ -357,6 +359,7 @@ def pull_start(self, restreamer_name : str, external_servers: object ):
"api_key": self.api_key,
"client_id": self.client_id,
"instance_name": restreamer_name,
"external_servers": external_servers,
})
)
#
Expand All @@ -371,7 +374,7 @@ def pull_start(self, restreamer_name : str, external_servers: object ):
#} `json:"external_servers"`
# * @returns
# */
def pull_start(self, restreamer_name : str, external_servers: object ):
def pull_start(self, restreamer_name : str, external_servers: List ):
return self.req.post(TNGRM_BASE_URL + RESTREAMER_PULL_STOP,
headers={
"Content-Type": "application/json",
Expand Down

0 comments on commit d6b88e6

Please sign in to comment.