talklib 3.3.0__tar.gz → 3.4.0__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.3.0/src/talklib.egg-info → talklib-3.4.0}/PKG-INFO +11 -5
- {talklib-3.3.0 → talklib-3.4.0}/README.md +10 -4
- {talklib-3.3.0 → talklib-3.4.0}/pyproject.toml +1 -1
- {talklib-3.3.0 → talklib-3.4.0}/src/talklib/pod.py +14 -1
- {talklib-3.3.0 → talklib-3.4.0/src/talklib.egg-info}/PKG-INFO +11 -5
- {talklib-3.3.0 → talklib-3.4.0}/LICENSE.txt +0 -0
- {talklib-3.3.0 → talklib-3.4.0}/requirements.txt +0 -0
- {talklib-3.3.0 → talklib-3.4.0}/setup.cfg +0 -0
- {talklib-3.3.0 → talklib-3.4.0}/src/talklib/__init__.py +0 -0
- {talklib-3.3.0 → talklib-3.4.0}/src/talklib/cli.py +0 -0
- {talklib-3.3.0 → talklib-3.4.0}/src/talklib/ev.py +0 -0
- {talklib-3.3.0 → talklib-3.4.0}/src/talklib/ffmpeg.py +0 -0
- {talklib-3.3.0 → talklib-3.4.0}/src/talklib/notify.py +0 -0
- {talklib-3.3.0 → talklib-3.4.0}/src/talklib/show.py +0 -0
- {talklib-3.3.0 → talklib-3.4.0}/src/talklib/utils.py +0 -0
- {talklib-3.3.0 → talklib-3.4.0}/src/talklib.egg-info/SOURCES.txt +0 -0
- {talklib-3.3.0 → talklib-3.4.0}/src/talklib.egg-info/dependency_links.txt +0 -0
- {talklib-3.3.0 → talklib-3.4.0}/src/talklib.egg-info/entry_points.txt +0 -0
- {talklib-3.3.0 → talklib-3.4.0}/src/talklib.egg-info/requires.txt +0 -0
- {talklib-3.3.0 → talklib-3.4.0}/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.
|
|
3
|
+
Version: 3.4.0
|
|
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>
|
|
@@ -125,7 +125,7 @@ This package automates two categories of things:
|
|
|
125
125
|
2. TL Podcasts
|
|
126
126
|
---
|
|
127
127
|
|
|
128
|
-
## Requirements
|
|
128
|
+
## Requirements<a id="requirements"></a>
|
|
129
129
|
|
|
130
130
|
### -[Python](https://www.python.org/downloads/)
|
|
131
131
|
Use Python 3.10 or higher.
|
|
@@ -561,15 +561,17 @@ nyt.run()
|
|
|
561
561
|
````bash
|
|
562
562
|
git clone https://github.com/Nashville-Public-Library/talklib.git
|
|
563
563
|
````
|
|
564
|
-
|
|
564
|
+
|
|
565
|
+
- cd into the folder in the terminal or open the folder in your IDE
|
|
565
566
|
````bash
|
|
566
567
|
cd talklib
|
|
567
568
|
````
|
|
568
569
|
- Create a virtual environment
|
|
569
570
|
````bash
|
|
570
|
-
|
|
571
|
+
py -m venv venv
|
|
571
572
|
````
|
|
572
|
-
- depending on your OS, instead of `
|
|
573
|
+
- depending on your OS, instead of `py` you may need to use `python` or `python3`
|
|
574
|
+
|
|
573
575
|
- Activate virtual environment
|
|
574
576
|
- On Windows:
|
|
575
577
|
|
|
@@ -581,6 +583,10 @@ nyt.run()
|
|
|
581
583
|
````bash
|
|
582
584
|
source venv/bin/activate
|
|
583
585
|
````
|
|
586
|
+
|
|
587
|
+
> [IMPORTANT]
|
|
588
|
+
> If done correctly, you should see `(venv)` in the terminal. Don't run the rest of these commands unless you see `(venv)` in the terminal.
|
|
589
|
+
|
|
584
590
|
- Update pip
|
|
585
591
|
````bash
|
|
586
592
|
py -m pip install --upgrade pip
|
|
@@ -24,7 +24,7 @@ This package automates two categories of things:
|
|
|
24
24
|
2. TL Podcasts
|
|
25
25
|
---
|
|
26
26
|
|
|
27
|
-
## Requirements
|
|
27
|
+
## Requirements<a id="requirements"></a>
|
|
28
28
|
|
|
29
29
|
### -[Python](https://www.python.org/downloads/)
|
|
30
30
|
Use Python 3.10 or higher.
|
|
@@ -460,15 +460,17 @@ nyt.run()
|
|
|
460
460
|
````bash
|
|
461
461
|
git clone https://github.com/Nashville-Public-Library/talklib.git
|
|
462
462
|
````
|
|
463
|
-
|
|
463
|
+
|
|
464
|
+
- cd into the folder in the terminal or open the folder in your IDE
|
|
464
465
|
````bash
|
|
465
466
|
cd talklib
|
|
466
467
|
````
|
|
467
468
|
- Create a virtual environment
|
|
468
469
|
````bash
|
|
469
|
-
|
|
470
|
+
py -m venv venv
|
|
470
471
|
````
|
|
471
|
-
- depending on your OS, instead of `
|
|
472
|
+
- depending on your OS, instead of `py` you may need to use `python` or `python3`
|
|
473
|
+
|
|
472
474
|
- Activate virtual environment
|
|
473
475
|
- On Windows:
|
|
474
476
|
|
|
@@ -480,6 +482,10 @@ nyt.run()
|
|
|
480
482
|
````bash
|
|
481
483
|
source venv/bin/activate
|
|
482
484
|
````
|
|
485
|
+
|
|
486
|
+
> [IMPORTANT]
|
|
487
|
+
> If done correctly, you should see `(venv)` in the terminal. Don't run the rest of these commands unless you see `(venv)` in the terminal.
|
|
488
|
+
|
|
483
489
|
- Update pip
|
|
484
490
|
````bash
|
|
485
491
|
py -m pip install --upgrade pip
|
|
@@ -360,6 +360,7 @@ class TLPod(BaseModel):
|
|
|
360
360
|
bucket_folder: str = Field(default=None)
|
|
361
361
|
max_episodes_in_feed: int = Field(ge=1, default=5)
|
|
362
362
|
override_filename: bool = False
|
|
363
|
+
short_timestamp: bool = False
|
|
363
364
|
audio_folders:list = EV().destinations
|
|
364
365
|
notifications: Type[Notifications] = Notifications()
|
|
365
366
|
episode: Type[Episode] = Episode()
|
|
@@ -381,7 +382,10 @@ class TLPod(BaseModel):
|
|
|
381
382
|
prefix = f"{self.display_name} (podcast)"
|
|
382
383
|
Notifications.prefix = prefix
|
|
383
384
|
|
|
384
|
-
|
|
385
|
+
if self.short_timestamp:
|
|
386
|
+
self.display_name = f"{self.display_name} ({self.short_timestamp_for_display_name()})"
|
|
387
|
+
else:
|
|
388
|
+
self.display_name = f"{self.display_name} ({datetime.now().strftime('%a, %d %b')})"
|
|
385
389
|
|
|
386
390
|
return self
|
|
387
391
|
|
|
@@ -396,6 +400,15 @@ class TLPod(BaseModel):
|
|
|
396
400
|
# raise e
|
|
397
401
|
|
|
398
402
|
# return self
|
|
403
|
+
def short_timestamp_for_display_name(self):
|
|
404
|
+
day_of_week: str = datetime.now().strftime("%A") # Weekday as locale’s full name.
|
|
405
|
+
hour: str = datetime.now().strftime('%I') # Hour (12-hour clock) as a zero-padded decimal number.
|
|
406
|
+
ampm: str = datetime.now().strftime("%p") # Locale’s equivalent of either AM or PM.
|
|
407
|
+
|
|
408
|
+
if hour == "00":
|
|
409
|
+
hour = "12"
|
|
410
|
+
|
|
411
|
+
return f"{day_of_week} {hour}{ampm}"
|
|
399
412
|
|
|
400
413
|
def get_filename_to_match(self) -> str:
|
|
401
414
|
if self.override_filename:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: talklib
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.4.0
|
|
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>
|
|
@@ -125,7 +125,7 @@ This package automates two categories of things:
|
|
|
125
125
|
2. TL Podcasts
|
|
126
126
|
---
|
|
127
127
|
|
|
128
|
-
## Requirements
|
|
128
|
+
## Requirements<a id="requirements"></a>
|
|
129
129
|
|
|
130
130
|
### -[Python](https://www.python.org/downloads/)
|
|
131
131
|
Use Python 3.10 or higher.
|
|
@@ -561,15 +561,17 @@ nyt.run()
|
|
|
561
561
|
````bash
|
|
562
562
|
git clone https://github.com/Nashville-Public-Library/talklib.git
|
|
563
563
|
````
|
|
564
|
-
|
|
564
|
+
|
|
565
|
+
- cd into the folder in the terminal or open the folder in your IDE
|
|
565
566
|
````bash
|
|
566
567
|
cd talklib
|
|
567
568
|
````
|
|
568
569
|
- Create a virtual environment
|
|
569
570
|
````bash
|
|
570
|
-
|
|
571
|
+
py -m venv venv
|
|
571
572
|
````
|
|
572
|
-
- depending on your OS, instead of `
|
|
573
|
+
- depending on your OS, instead of `py` you may need to use `python` or `python3`
|
|
574
|
+
|
|
573
575
|
- Activate virtual environment
|
|
574
576
|
- On Windows:
|
|
575
577
|
|
|
@@ -581,6 +583,10 @@ nyt.run()
|
|
|
581
583
|
````bash
|
|
582
584
|
source venv/bin/activate
|
|
583
585
|
````
|
|
586
|
+
|
|
587
|
+
> [IMPORTANT]
|
|
588
|
+
> If done correctly, you should see `(venv)` in the terminal. Don't run the rest of these commands unless you see `(venv)` in the terminal.
|
|
589
|
+
|
|
584
590
|
- Update pip
|
|
585
591
|
````bash
|
|
586
592
|
py -m pip install --upgrade pip
|
|
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
|