talklib 3.4.2__tar.gz → 3.4.5__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,28 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: talklib
3
- Version: 3.4.2
3
+ Version: 3.4.5
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>
7
- License: MIT License
8
-
9
- Permission is hereby granted, free of charge, to any person obtaining a copy
10
- of this software and associated documentation files (the "Software"), to deal
11
- in the Software without restriction, including without limitation the rights
12
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
- copies of the Software, and to permit persons to whom the Software is
14
- furnished to do so, subject to the following conditions:
15
-
16
- The above copyright notice and this permission notice shall be included in all
17
- copies or substantial portions of the Software.
18
-
19
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
- SOFTWARE.
7
+ License-Expression: MIT-open-group
26
8
  Project-URL: Repository, https://github.com/talkinglibrary/talklib
27
9
  Project-URL: Issues, https://github.com/talkinglibrary/talklib/issues
28
10
  Requires-Python: >=3.10
@@ -1,9 +1,10 @@
1
1
  [project]
2
2
  name = "talklib"
3
- version = "3.4.2"
3
+ version = "3.4.5"
4
4
  description = "A package to automate processing of shows/segments airing on the TL"
5
5
  readme = "README.md"
6
- license = {file = "LICENSE.txt"}
6
+ license = "MIT-open-group"
7
+ license-files = ["LICENSE.txt"]
7
8
  authors = [{name = "Ben Weddle", email = "ben.weddle@gmail.com"}]
8
9
  maintainers = [{name = "Ben Weddle", email = "ben.weddle@gmail.com"}]
9
10
  requires-python = ">=3.10"
@@ -497,11 +497,15 @@ class TLPod(BaseModel):
497
497
  def download_preroll(self):
498
498
  download_URL = "https://assets.library.nashville.gov/talkinglibrary/pod_preroll.mp3"
499
499
  input_file = 'preroll.mp3'
500
+ self.notifications.prep_syslog(message=f"Attempting to download preroll audio from {download_URL}...")
500
501
  with open (input_file, mode='wb') as downloaded_file:
501
- self.notifications.prep_syslog(message=f"downloading preroll audio from {download_URL}...")
502
- a = requests.get(download_URL)
503
- downloaded_file.write(a.content)
504
- downloaded_file.close()
502
+ try:
503
+ a = requests.get(download_URL)
504
+ downloaded_file.write(a.content)
505
+ downloaded_file.close()
506
+ except (Exception, requests.exceptions.RequestException) as e:
507
+ self.notifications.send_notifications(message=f"Cannot download {download_URL}. Exception: {e}", subject="Error")
508
+ raise e
505
509
  self.notifications.prep_syslog(message="preroll audio successfully downloaded")
506
510
  return downloaded_file.name
507
511
 
@@ -1,28 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: talklib
3
- Version: 3.4.2
3
+ Version: 3.4.5
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>
7
- License: MIT License
8
-
9
- Permission is hereby granted, free of charge, to any person obtaining a copy
10
- of this software and associated documentation files (the "Software"), to deal
11
- in the Software without restriction, including without limitation the rights
12
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
- copies of the Software, and to permit persons to whom the Software is
14
- furnished to do so, subject to the following conditions:
15
-
16
- The above copyright notice and this permission notice shall be included in all
17
- copies or substantial portions of the Software.
18
-
19
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
- SOFTWARE.
7
+ License-Expression: MIT-open-group
26
8
  Project-URL: Repository, https://github.com/talkinglibrary/talklib
27
9
  Project-URL: Issues, https://github.com/talkinglibrary/talklib/issues
28
10
  Requires-Python: >=3.10
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