Compare commits

..

No commits in common. "2f827d594c5f3f1a9af76837fbc2a8579e182087" and "3b2fc819ce303d17dc0ecd885bec720de4a47706" have entirely different histories.

1 changed files with 1 additions and 7 deletions

View File

@ -17,12 +17,7 @@ load_dotenv()
env_user = os.environ.get('FRITZ_USERNAME')
env_pass = os.environ.get('FRITZ_PASSWORD')
env_ip = os.environ.get('FRITZ_IP')
env_voicebox = os.environ.get('FRITZ_VOICEBOX_PATH')
env_tmp = os.environ.get('TEMP_DIR')
if env_voicebox is None:
env_voicebox = "/fritz.nas/FRITZ/voicebox/"
if env_tmp is None:
env_tmp = "/tmp"
@ -44,8 +39,7 @@ def main():
# Build the url to download the message via smb
def build_download_url(mid, tam=0):
recording = "rec." + str(tam) + r"." + str(mid).zfill(3)
url = os.path.join("//",env_ip,env_voicebox,"rec",recording)
url = r"//" + env_ip + r"/fritz.nas/FRITZ/voicebox/rec/rec." + str(tam) + r"." + str(mid).zfill(3)
return url
def download_speex_file(smb_url):