talklib 3.2.0__tar.gz → 3.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {talklib-3.2.0/src/talklib.egg-info → talklib-3.2.1}/PKG-INFO +1 -1
- {talklib-3.2.0 → talklib-3.2.1}/pyproject.toml +1 -1
- {talklib-3.2.0 → talklib-3.2.1}/src/talklib/cli.py +1 -1
- {talklib-3.2.0 → talklib-3.2.1}/src/talklib/pod.py +12 -8
- {talklib-3.2.0 → talklib-3.2.1/src/talklib.egg-info}/PKG-INFO +1 -1
- {talklib-3.2.0 → talklib-3.2.1}/LICENSE.txt +0 -0
- {talklib-3.2.0 → talklib-3.2.1}/README.md +0 -0
- {talklib-3.2.0 → talklib-3.2.1}/requirements.txt +0 -0
- {talklib-3.2.0 → talklib-3.2.1}/setup.cfg +0 -0
- {talklib-3.2.0 → talklib-3.2.1}/src/talklib/__init__.py +0 -0
- {talklib-3.2.0 → talklib-3.2.1}/src/talklib/ev.py +0 -0
- {talklib-3.2.0 → talklib-3.2.1}/src/talklib/ffmpeg.py +0 -0
- {talklib-3.2.0 → talklib-3.2.1}/src/talklib/notify.py +0 -0
- {talklib-3.2.0 → talklib-3.2.1}/src/talklib/show.py +0 -0
- {talklib-3.2.0 → talklib-3.2.1}/src/talklib/utils.py +0 -0
- {talklib-3.2.0 → talklib-3.2.1}/src/talklib.egg-info/SOURCES.txt +0 -0
- {talklib-3.2.0 → talklib-3.2.1}/src/talklib.egg-info/dependency_links.txt +0 -0
- {talklib-3.2.0 → talklib-3.2.1}/src/talklib.egg-info/entry_points.txt +0 -0
- {talklib-3.2.0 → talklib-3.2.1}/src/talklib.egg-info/requires.txt +0 -0
- {talklib-3.2.0 → talklib-3.2.1}/src/talklib.egg-info/top_level.txt +0 -0
|
@@ -60,7 +60,7 @@ def new_podcast_dir(name: str):
|
|
|
60
60
|
|
|
61
61
|
print("generating new podcast directory called " + name)
|
|
62
62
|
|
|
63
|
-
ssh =
|
|
63
|
+
ssh = get_SSH()
|
|
64
64
|
ssh.make_new_folder(folder=name)
|
|
65
65
|
ssh.upload_file(file="feed.xml", folder=name)
|
|
66
66
|
ssh.upload_file(file="image.jpg", folder=name)
|
|
@@ -370,16 +370,20 @@ class TLPod(BaseModel):
|
|
|
370
370
|
|
|
371
371
|
self.display_name = f"{self.display_name} ({datetime.now().strftime('%a, %d %b')})"
|
|
372
372
|
|
|
373
|
-
# before we carry on, make sure we can successfully connect to the server
|
|
374
|
-
# try:
|
|
375
|
-
# self.ssh.connection.run("ls")
|
|
376
|
-
# except Exception as e:
|
|
377
|
-
# to_send:str = f"Cannot connect to server. Are you sure the SSH keys are set up correctly? Here is the error: {e}"
|
|
378
|
-
# self.notifications.send_notifications(message=to_send, subject="Error")
|
|
379
|
-
# raise e
|
|
380
|
-
|
|
381
373
|
return self
|
|
382
374
|
|
|
375
|
+
# @model_validator(mode='after')
|
|
376
|
+
# def confirm_SSH_connection(self):
|
|
377
|
+
# # before we carry on, make sure we can successfully connect to the server
|
|
378
|
+
# try:
|
|
379
|
+
# connection = self.ssh.connection.run("ls")
|
|
380
|
+
# except Exception as e:
|
|
381
|
+
# to_send:str = f"Cannot connect to server. Are you sure the SSH keys are set up correctly? Here is the error: {e}"
|
|
382
|
+
# self.notifications.send_notifications(message=to_send, subject="Error")
|
|
383
|
+
# raise e
|
|
384
|
+
|
|
385
|
+
# return self
|
|
386
|
+
|
|
383
387
|
def get_filename_to_match(self) -> str:
|
|
384
388
|
if self.override_filename:
|
|
385
389
|
self.notifications.prep_syslog(message="filename override is turned ON")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|