parameters: (self, address: str, remote_task_id: int, path: str)
return_statement: return task_data
docstring: Fetch the completed remote task data
  
          :param address:
          :param remote_task_id:
          :param path:
          :return:
docstring_summary: Fetch the completed remote task data
docstring_tokens: Fetch the completed remote task data
function: def fetch_remote_task_data(self, address: str, remote_task_id: int, path: str):
          """
          Fetch the completed remote task data
  
          :param address:
          :param remote_task_id:
          :param path:
          :return:
          """
          task_data = {}
          try:
              # Request API generate a DL link
              link_info = self.remote_api_get(address, '/unmanic/api/v2/pending/download/data/id/{}'.format(remote_task_id))
              if link_info.get('link_id'):
                  # Download the data file
                  res = self.remote_api_get_download(address, '/unmanic/downloads/{}'.format(link_info.get('link_id')), path)
                  if res and os.path.exists(path):
                      with open(path) as f:
                          task_data = json.load(f)
          except requests.exceptions.Timeout:
              self._log("Request to fetch remote task data timed out", level='warning')
          except requests.exceptions.RequestException as e:
              self._log("Request to fetch remote task data failed", message2=str(e), level='warning')
          except Exception as e:
              self._log("Failed to fetch remote task data", message2=str(e), level='error')
          return task_data
function_tokens: def fetch_remote_task_data ( self , address : str , remote_task_id : int , path : str ) : task_data = { } try : # Request API generate a DL link link_info = self . remote_api_get ( address , '/unmanic/api/v2/pending/download/data/id/{}' . format ( remote_task_id ) ) if link_info . get ( 'link_id' ) : # Download the data file res = self . remote_api_get_download ( address , '/unmanic/downloads/{}' . format ( link_info . get ( 'link_id' ) ) , path ) if res and os . path . exists ( path ) : with open ( path ) as f : task_data = json . load ( f ) except requests . exceptions . Timeout : self . _log ( "Request to fetch remote task data timed out" , level = 'warning' ) except requests . exceptions . RequestException as e : self . _log ( "Request to fetch remote task data failed" , message2 = str ( e ) , level = 'warning' ) except Exception as e : self . _log ( "Failed to fetch remote task data" , message2 = str ( e ) , level = 'error' ) return task_data