talklib 3.2.1__tar.gz → 3.2.2__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
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: talklib
3
- Version: 3.2.1
3
+ Version: 3.2.2
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>
@@ -97,6 +97,7 @@ Requires-Dist: urllib3==2.2.2
97
97
  Requires-Dist: wrapt==1.16.0
98
98
  Requires-Dist: yarl==1.9.2
99
99
  Requires-Dist: zipp==3.17.0
100
+ Dynamic: license-file
100
101
 
101
102
  # talklib
102
103
 
@@ -474,7 +475,9 @@ SD.run()
474
475
 
475
476
  ### Prerequisites
476
477
 
477
- Before starting to podcast a new show, you must log in to the server and create a directory. The directory should be named the same as the base name of the audio files for that show. For example, The Nashville Scene audio files are labelled as SceneMMDDYY. The directory name on the server should be `scene` in all lower-case.
478
+ Before starting to podcast a new show, you must log in to the server, create a directory, and upload some files. The `talklib` CLI has several functions to help you with this. Run `talklib --help` in your terminal to see a list of these helper functions.
479
+
480
+ The directory should be named the same as the base name of the audio files for that show. For example, The Nashville Scene audio files are labelled as SceneMMDDYY. The directory name on the server should be `scene` in all lower-case.
478
481
 
479
482
  You must also add two files to this directory: an RSS Feed and and an image.
480
483
 
@@ -523,7 +526,7 @@ nyt.run()
523
526
 
524
527
  To disable ALL notifications, add a line like this:
525
528
 
526
- > This will disable all notifications **including** syslog messages (shell print statements will not be disabled)
529
+ > This will disable all notifications **including** syslog messages (terminal print statements will not be disabled)
527
530
 
528
531
  ````python
529
532
  from talklib import TLPod
@@ -536,6 +539,21 @@ nyt.notifications.notify.enable_all = False
536
539
  nyt.run()
537
540
  ````
538
541
 
542
+ If the name of the corresponding directory on the server is different from the `filename_to_match` value, adjust for that like this:
543
+
544
+ ````python
545
+ from talklib import TLPod
546
+
547
+ nyt = TLPod(
548
+ display_name = "New York Times",
549
+ filename_to_match = "nyt",
550
+ bucket_folder = "newyorktimes"
551
+ )
552
+ nyt.run()
553
+ ````
554
+
555
+ > This will match audio files that start with `nyt`, and will upload the files to the server directory called `newyorktimes`.
556
+
539
557
  -----
540
558
  ## Development<a id="development"></a>
541
559
 
@@ -374,7 +374,9 @@ SD.run()
374
374
 
375
375
  ### Prerequisites
376
376
 
377
- Before starting to podcast a new show, you must log in to the server and create a directory. The directory should be named the same as the base name of the audio files for that show. For example, The Nashville Scene audio files are labelled as SceneMMDDYY. The directory name on the server should be `scene` in all lower-case.
377
+ Before starting to podcast a new show, you must log in to the server, create a directory, and upload some files. The `talklib` CLI has several functions to help you with this. Run `talklib --help` in your terminal to see a list of these helper functions.
378
+
379
+ The directory should be named the same as the base name of the audio files for that show. For example, The Nashville Scene audio files are labelled as SceneMMDDYY. The directory name on the server should be `scene` in all lower-case.
378
380
 
379
381
  You must also add two files to this directory: an RSS Feed and and an image.
380
382
 
@@ -423,7 +425,7 @@ nyt.run()
423
425
 
424
426
  To disable ALL notifications, add a line like this:
425
427
 
426
- > This will disable all notifications **including** syslog messages (shell print statements will not be disabled)
428
+ > This will disable all notifications **including** syslog messages (terminal print statements will not be disabled)
427
429
 
428
430
  ````python
429
431
  from talklib import TLPod
@@ -436,6 +438,21 @@ nyt.notifications.notify.enable_all = False
436
438
  nyt.run()
437
439
  ````
438
440
 
441
+ If the name of the corresponding directory on the server is different from the `filename_to_match` value, adjust for that like this:
442
+
443
+ ````python
444
+ from talklib import TLPod
445
+
446
+ nyt = TLPod(
447
+ display_name = "New York Times",
448
+ filename_to_match = "nyt",
449
+ bucket_folder = "newyorktimes"
450
+ )
451
+ nyt.run()
452
+ ````
453
+
454
+ > This will match audio files that start with `nyt`, and will upload the files to the server directory called `newyorktimes`.
455
+
439
456
  -----
440
457
  ## Development<a id="development"></a>
441
458
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "talklib"
3
- version = "3.2.1"
3
+ version = "3.2.2"
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"}
@@ -43,7 +43,7 @@ class Notifications(BaseModel):
43
43
  self.prep_send_mail(message=message, subject=subject)
44
44
  self.prep_syslog(message=message, level=syslog_level)
45
45
  else:
46
- self.send_sms_if_enabled(message=message)
46
+ self.send_sms_if_enabled(message=self.prefix + ": " + message)
47
47
  self.prep_send_mail(message=message, subject=subject)
48
48
  self.prep_syslog(message=message, level=syslog_level)
49
49
 
@@ -192,7 +192,7 @@ It looks like the downloaded file is empty. Please check manually! Yesterday's f
192
192
  self.__prep_send_mail(message=message, subject=subject)
193
193
  self.__prep_syslog(message=message, level=syslog_level)
194
194
  else:
195
- self.__send_sms_if_enabled(message=message)
195
+ self.__send_sms_if_enabled(message=self.show + ": " + message)
196
196
  self.__prep_send_mail(message=message, subject=subject)
197
197
  self.__prep_syslog(message=message, level=syslog_level)
198
198
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: talklib
3
- Version: 3.2.1
3
+ Version: 3.2.2
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>
@@ -97,6 +97,7 @@ Requires-Dist: urllib3==2.2.2
97
97
  Requires-Dist: wrapt==1.16.0
98
98
  Requires-Dist: yarl==1.9.2
99
99
  Requires-Dist: zipp==3.17.0
100
+ Dynamic: license-file
100
101
 
101
102
  # talklib
102
103
 
@@ -474,7 +475,9 @@ SD.run()
474
475
 
475
476
  ### Prerequisites
476
477
 
477
- Before starting to podcast a new show, you must log in to the server and create a directory. The directory should be named the same as the base name of the audio files for that show. For example, The Nashville Scene audio files are labelled as SceneMMDDYY. The directory name on the server should be `scene` in all lower-case.
478
+ Before starting to podcast a new show, you must log in to the server, create a directory, and upload some files. The `talklib` CLI has several functions to help you with this. Run `talklib --help` in your terminal to see a list of these helper functions.
479
+
480
+ The directory should be named the same as the base name of the audio files for that show. For example, The Nashville Scene audio files are labelled as SceneMMDDYY. The directory name on the server should be `scene` in all lower-case.
478
481
 
479
482
  You must also add two files to this directory: an RSS Feed and and an image.
480
483
 
@@ -523,7 +526,7 @@ nyt.run()
523
526
 
524
527
  To disable ALL notifications, add a line like this:
525
528
 
526
- > This will disable all notifications **including** syslog messages (shell print statements will not be disabled)
529
+ > This will disable all notifications **including** syslog messages (terminal print statements will not be disabled)
527
530
 
528
531
  ````python
529
532
  from talklib import TLPod
@@ -536,6 +539,21 @@ nyt.notifications.notify.enable_all = False
536
539
  nyt.run()
537
540
  ````
538
541
 
542
+ If the name of the corresponding directory on the server is different from the `filename_to_match` value, adjust for that like this:
543
+
544
+ ````python
545
+ from talklib import TLPod
546
+
547
+ nyt = TLPod(
548
+ display_name = "New York Times",
549
+ filename_to_match = "nyt",
550
+ bucket_folder = "newyorktimes"
551
+ )
552
+ nyt.run()
553
+ ````
554
+
555
+ > This will match audio files that start with `nyt`, and will upload the files to the server directory called `newyorktimes`.
556
+
539
557
  -----
540
558
  ## Development<a id="development"></a>
541
559
 
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