talklib 3.4.0__tar.gz → 3.4.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.
- {talklib-3.4.0/src/talklib.egg-info → talklib-3.4.2}/PKG-INFO +1 -1
- {talklib-3.4.0 → talklib-3.4.2}/pyproject.toml +1 -1
- {talklib-3.4.0 → talklib-3.4.2}/src/talklib/pod.py +7 -3
- {talklib-3.4.0 → talklib-3.4.2/src/talklib.egg-info}/PKG-INFO +1 -1
- {talklib-3.4.0 → talklib-3.4.2}/LICENSE.txt +0 -0
- {talklib-3.4.0 → talklib-3.4.2}/README.md +0 -0
- {talklib-3.4.0 → talklib-3.4.2}/requirements.txt +0 -0
- {talklib-3.4.0 → talklib-3.4.2}/setup.cfg +0 -0
- {talklib-3.4.0 → talklib-3.4.2}/src/talklib/__init__.py +0 -0
- {talklib-3.4.0 → talklib-3.4.2}/src/talklib/cli.py +0 -0
- {talklib-3.4.0 → talklib-3.4.2}/src/talklib/ev.py +0 -0
- {talklib-3.4.0 → talklib-3.4.2}/src/talklib/ffmpeg.py +0 -0
- {talklib-3.4.0 → talklib-3.4.2}/src/talklib/notify.py +0 -0
- {talklib-3.4.0 → talklib-3.4.2}/src/talklib/show.py +0 -0
- {talklib-3.4.0 → talklib-3.4.2}/src/talklib/utils.py +0 -0
- {talklib-3.4.0 → talklib-3.4.2}/src/talklib.egg-info/SOURCES.txt +0 -0
- {talklib-3.4.0 → talklib-3.4.2}/src/talklib.egg-info/dependency_links.txt +0 -0
- {talklib-3.4.0 → talklib-3.4.2}/src/talklib.egg-info/entry_points.txt +0 -0
- {talklib-3.4.0 → talklib-3.4.2}/src/talklib.egg-info/requires.txt +0 -0
- {talklib-3.4.0 → talklib-3.4.2}/src/talklib.egg-info/top_level.txt +0 -0
|
@@ -48,7 +48,7 @@ class Notifications(BaseModel):
|
|
|
48
48
|
self.prep_syslog(message=message, level=syslog_level)
|
|
49
49
|
|
|
50
50
|
class SSH(BaseModel):
|
|
51
|
-
server: str = "assets.library.nashville.
|
|
51
|
+
server: str = "assets.library.nashville.gov"
|
|
52
52
|
user: str = EV().pod_server_uname
|
|
53
53
|
connection: Type[Connection] = Connection(host=server, user=user)
|
|
54
54
|
notifications: Notifications = Notifications()
|
|
@@ -192,7 +192,7 @@ class Episode(BaseModel):
|
|
|
192
192
|
return size_in_bytes
|
|
193
193
|
|
|
194
194
|
def enclosure(self) -> str:
|
|
195
|
-
enclosure = f"https://dts.podtrac.com/redirect.mp3/assets.library.nashville.
|
|
195
|
+
enclosure = f"https://dts.podtrac.com/redirect.mp3/assets.library.nashville.gov/talkinglibrary/shows/{self.bucket_folder}/{self.audio_filename}"
|
|
196
196
|
self.notifications.prep_syslog(message=f"enclosure will be {enclosure}")
|
|
197
197
|
return enclosure
|
|
198
198
|
|
|
@@ -361,6 +361,7 @@ class TLPod(BaseModel):
|
|
|
361
361
|
max_episodes_in_feed: int = Field(ge=1, default=5)
|
|
362
362
|
override_filename: bool = False
|
|
363
363
|
short_timestamp: bool = False
|
|
364
|
+
preroll: bool = True
|
|
364
365
|
audio_folders:list = EV().destinations
|
|
365
366
|
notifications: Type[Notifications] = Notifications()
|
|
366
367
|
episode: Type[Episode] = Episode()
|
|
@@ -485,13 +486,16 @@ class TLPod(BaseModel):
|
|
|
485
486
|
raise ffmpeg_exception
|
|
486
487
|
|
|
487
488
|
def concat(self, preroll:str, program_audio: str, output_filename: str):
|
|
489
|
+
if not self.preroll:
|
|
490
|
+
os.rename(program_audio, output_filename)
|
|
491
|
+
return output_filename
|
|
488
492
|
self.notifications.prep_syslog(message="concatenating preroll and program audio together...")
|
|
489
493
|
subprocess.run(f'ffmpeg -hide_banner -loglevel quiet -i "concat:{preroll}|{program_audio}" -c copy {output_filename}')
|
|
490
494
|
self.notifications.prep_syslog(message=f"files successfully concatenated as: {output_filename}")
|
|
491
495
|
return output_filename
|
|
492
496
|
|
|
493
497
|
def download_preroll(self):
|
|
494
|
-
download_URL = "https://assets.library.nashville.
|
|
498
|
+
download_URL = "https://assets.library.nashville.gov/talkinglibrary/pod_preroll.mp3"
|
|
495
499
|
input_file = 'preroll.mp3'
|
|
496
500
|
with open (input_file, mode='wb') as downloaded_file:
|
|
497
501
|
self.notifications.prep_syslog(message=f"downloading preroll audio from {download_URL}...")
|
|
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
|