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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: talklib
3
- Version: 3.2.0
3
+ Version: 3.2.1
4
4
  Summary: A package to automate processing of shows/segments airing on the TL
5
5
  Author-email: Ben Weddle <ben.weddle@gmail.com>
6
6
  Maintainer-email: Ben Weddle <ben.weddle@gmail.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "talklib"
3
- version = "3.2.0"
3
+ version = "3.2.1"
4
4
  description = "A package to automate processing of shows/segments airing on the TL"
5
5
  readme = "README.md"
6
6
  license = {file = "LICENSE.txt"}
@@ -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 = 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")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: talklib
3
- Version: 3.2.0
3
+ Version: 3.2.1
4
4
  Summary: A package to automate processing of shows/segments airing on the TL
5
5
  Author-email: Ben Weddle <ben.weddle@gmail.com>
6
6
  Maintainer-email: Ben Weddle <ben.weddle@gmail.com>
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