talklib 3.4.2__tar.gz → 3.4.3__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.4.2/src/talklib.egg-info → talklib-3.4.3}/PKG-INFO +1 -1
- {talklib-3.4.2 → talklib-3.4.3}/pyproject.toml +1 -1
- {talklib-3.4.2 → talklib-3.4.3}/src/talklib/pod.py +8 -4
- {talklib-3.4.2 → talklib-3.4.3/src/talklib.egg-info}/PKG-INFO +1 -1
- {talklib-3.4.2 → talklib-3.4.3}/LICENSE.txt +0 -0
- {talklib-3.4.2 → talklib-3.4.3}/README.md +0 -0
- {talklib-3.4.2 → talklib-3.4.3}/requirements.txt +0 -0
- {talklib-3.4.2 → talklib-3.4.3}/setup.cfg +0 -0
- {talklib-3.4.2 → talklib-3.4.3}/src/talklib/__init__.py +0 -0
- {talklib-3.4.2 → talklib-3.4.3}/src/talklib/cli.py +0 -0
- {talklib-3.4.2 → talklib-3.4.3}/src/talklib/ev.py +0 -0
- {talklib-3.4.2 → talklib-3.4.3}/src/talklib/ffmpeg.py +0 -0
- {talklib-3.4.2 → talklib-3.4.3}/src/talklib/notify.py +0 -0
- {talklib-3.4.2 → talklib-3.4.3}/src/talklib/show.py +0 -0
- {talklib-3.4.2 → talklib-3.4.3}/src/talklib/utils.py +0 -0
- {talklib-3.4.2 → talklib-3.4.3}/src/talklib.egg-info/SOURCES.txt +0 -0
- {talklib-3.4.2 → talklib-3.4.3}/src/talklib.egg-info/dependency_links.txt +0 -0
- {talklib-3.4.2 → talklib-3.4.3}/src/talklib.egg-info/entry_points.txt +0 -0
- {talklib-3.4.2 → talklib-3.4.3}/src/talklib.egg-info/requires.txt +0 -0
- {talklib-3.4.2 → talklib-3.4.3}/src/talklib.egg-info/top_level.txt +0 -0
|
@@ -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
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
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
|
|
|
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
|
|
File without changes
|