talklib 3.7.4__tar.gz → 3.7.6__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.7.4/src/talklib.egg-info → talklib-3.7.6}/PKG-INFO +3 -3
- {talklib-3.7.4 → talklib-3.7.6}/pyproject.toml +1 -1
- {talklib-3.7.4 → talklib-3.7.6}/requirements.txt +2 -2
- {talklib-3.7.4 → talklib-3.7.6}/src/talklib/utils.py +17 -8
- {talklib-3.7.4 → talklib-3.7.6/src/talklib.egg-info}/PKG-INFO +3 -3
- {talklib-3.7.4 → talklib-3.7.6}/src/talklib.egg-info/requires.txt +2 -2
- {talklib-3.7.4 → talklib-3.7.6}/LICENSE.txt +0 -0
- {talklib-3.7.4 → talklib-3.7.6}/README.md +0 -0
- {talklib-3.7.4 → talklib-3.7.6}/setup.cfg +0 -0
- {talklib-3.7.4 → talklib-3.7.6}/src/talklib/__init__.py +0 -0
- {talklib-3.7.4 → talklib-3.7.6}/src/talklib/cli.py +0 -0
- {talklib-3.7.4 → talklib-3.7.6}/src/talklib/ev.py +0 -0
- {talklib-3.7.4 → talklib-3.7.6}/src/talklib/ffmpeg.py +0 -0
- {talklib-3.7.4 → talklib-3.7.6}/src/talklib/notify.py +0 -0
- {talklib-3.7.4 → talklib-3.7.6}/src/talklib/pod.py +0 -0
- {talklib-3.7.4 → talklib-3.7.6}/src/talklib/show.py +0 -0
- {talklib-3.7.4 → talklib-3.7.6}/src/talklib.egg-info/SOURCES.txt +0 -0
- {talklib-3.7.4 → talklib-3.7.6}/src/talklib.egg-info/dependency_links.txt +0 -0
- {talklib-3.7.4 → talklib-3.7.6}/src/talklib.egg-info/entry_points.txt +0 -0
- {talklib-3.7.4 → talklib-3.7.6}/src/talklib.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: talklib
|
|
3
|
-
Version: 3.7.
|
|
3
|
+
Version: 3.7.6
|
|
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>
|
|
@@ -11,7 +11,7 @@ Requires-Python: >=3.12
|
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
12
|
License-File: LICENSE.txt
|
|
13
13
|
Requires-Dist: aiohappyeyeballs==2.6.1
|
|
14
|
-
Requires-Dist: aiohttp==3.14.
|
|
14
|
+
Requires-Dist: aiohttp==3.14.3
|
|
15
15
|
Requires-Dist: aiohttp-retry==2.8.3
|
|
16
16
|
Requires-Dist: aiosignal==1.4.0
|
|
17
17
|
Requires-Dist: annotated-types==0.7.0
|
|
@@ -24,7 +24,7 @@ Requires-Dist: cffi==2.0.0
|
|
|
24
24
|
Requires-Dist: charset-normalizer==2.1.1
|
|
25
25
|
Requires-Dist: colorama==0.4.6
|
|
26
26
|
Requires-Dist: coverage==6.5.0
|
|
27
|
-
Requires-Dist: cryptography==
|
|
27
|
+
Requires-Dist: cryptography==50.0.0
|
|
28
28
|
Requires-Dist: decorator==5.1.1
|
|
29
29
|
Requires-Dist: Deprecated==1.2.14
|
|
30
30
|
Requires-Dist: docutils==0.20.1
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
aiohappyeyeballs==2.6.1
|
|
2
|
-
aiohttp==3.14.
|
|
2
|
+
aiohttp==3.14.3
|
|
3
3
|
aiohttp-retry==2.8.3
|
|
4
4
|
aiosignal==1.4.0
|
|
5
5
|
annotated-types==0.7.0
|
|
@@ -12,7 +12,7 @@ cffi==2.0.0
|
|
|
12
12
|
charset-normalizer==2.1.1
|
|
13
13
|
colorama==0.4.6
|
|
14
14
|
coverage==6.5.0
|
|
15
|
-
cryptography==
|
|
15
|
+
cryptography==50.0.0
|
|
16
16
|
decorator==5.1.1
|
|
17
17
|
Deprecated==1.2.14
|
|
18
18
|
docutils==0.20.1
|
|
@@ -27,16 +27,25 @@ def today_is_weekday() -> bool:
|
|
|
27
27
|
|
|
28
28
|
def metadata_to_icecast(title):
|
|
29
29
|
notify = Notify()
|
|
30
|
-
notify.syslog.send_syslog_message(message=f'attempting to send "{title}" to Icecast')
|
|
31
30
|
user = os.environ['icecast_user']
|
|
32
31
|
password = os.environ['icecast_pass']
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
32
|
+
URLs: tuple = (f'https://npl.streamguys1.com/admin/metadata?mount=/live&mode=updinfo&song={title}',
|
|
33
|
+
f"https://stream.talkinglibrary.nashville.gov/admin/metadata?mount=/live_64_intro.mp3&mode=updinfo&song={title}")
|
|
34
|
+
for url in URLs:
|
|
35
|
+
try:
|
|
36
|
+
notify.syslog.send_syslog_message(message=f'attempting to send "{title}" to {url}')
|
|
37
|
+
send = requests.get(url, auth = (user, password))
|
|
38
|
+
if send.status_code == 200:
|
|
39
|
+
notify.syslog.send_syslog_message(message=f'Successfully sent "{title}" to {url}')
|
|
40
|
+
continue
|
|
41
|
+
else: notify_on_metadata_problem(title=title, url=url, error=send.status_code)
|
|
42
|
+
|
|
43
|
+
except Exception as e:
|
|
44
|
+
notify_on_metadata_problem(title=title, url=url, error=e)
|
|
45
|
+
|
|
46
|
+
def notify_on_metadata_problem(title: str, url: str, error: str | int):
|
|
47
|
+
notify = Notify()
|
|
48
|
+
to_send = f'There was a problem sending metadata ({title}) to {url}: {error}'
|
|
40
49
|
if today_is_weekday():
|
|
41
50
|
notify.syslog.send_syslog_message(message=to_send, level='error')
|
|
42
51
|
notify.send_mail(subject='Error', message=to_send)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: talklib
|
|
3
|
-
Version: 3.7.
|
|
3
|
+
Version: 3.7.6
|
|
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>
|
|
@@ -11,7 +11,7 @@ Requires-Python: >=3.12
|
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
12
|
License-File: LICENSE.txt
|
|
13
13
|
Requires-Dist: aiohappyeyeballs==2.6.1
|
|
14
|
-
Requires-Dist: aiohttp==3.14.
|
|
14
|
+
Requires-Dist: aiohttp==3.14.3
|
|
15
15
|
Requires-Dist: aiohttp-retry==2.8.3
|
|
16
16
|
Requires-Dist: aiosignal==1.4.0
|
|
17
17
|
Requires-Dist: annotated-types==0.7.0
|
|
@@ -24,7 +24,7 @@ Requires-Dist: cffi==2.0.0
|
|
|
24
24
|
Requires-Dist: charset-normalizer==2.1.1
|
|
25
25
|
Requires-Dist: colorama==0.4.6
|
|
26
26
|
Requires-Dist: coverage==6.5.0
|
|
27
|
-
Requires-Dist: cryptography==
|
|
27
|
+
Requires-Dist: cryptography==50.0.0
|
|
28
28
|
Requires-Dist: decorator==5.1.1
|
|
29
29
|
Requires-Dist: Deprecated==1.2.14
|
|
30
30
|
Requires-Dist: docutils==0.20.1
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
aiohappyeyeballs==2.6.1
|
|
2
|
-
aiohttp==3.14.
|
|
2
|
+
aiohttp==3.14.3
|
|
3
3
|
aiohttp-retry==2.8.3
|
|
4
4
|
aiosignal==1.4.0
|
|
5
5
|
annotated-types==0.7.0
|
|
@@ -12,7 +12,7 @@ cffi==2.0.0
|
|
|
12
12
|
charset-normalizer==2.1.1
|
|
13
13
|
colorama==0.4.6
|
|
14
14
|
coverage==6.5.0
|
|
15
|
-
cryptography==
|
|
15
|
+
cryptography==50.0.0
|
|
16
16
|
decorator==5.1.1
|
|
17
17
|
Deprecated==1.2.14
|
|
18
18
|
docutils==0.20.1
|
|
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
|