mirror of
https://github.com/santinic/audiblez.git
synced 2025-08-05 16:48:55 +00:00
v0.4.9
Some checks failed
Git clone and run / linux-git-clone-and-run (push) Has been cancelled
Git clone and run / windows-git-clone-and-run (push) Has been cancelled
Installing via pip and running / install-and-run-on-python-3-11 (push) Has been cancelled
Installing via pip and running / install-and-run-on-python-3-12 (push) Has been cancelled
Installing via pip and running / install-and-run-on-python-3-10 (push) Has been cancelled
Installing via pip and running / windows-git-clone-and-run (push) Has been cancelled
Some checks failed
Git clone and run / linux-git-clone-and-run (push) Has been cancelled
Git clone and run / windows-git-clone-and-run (push) Has been cancelled
Installing via pip and running / install-and-run-on-python-3-11 (push) Has been cancelled
Installing via pip and running / install-and-run-on-python-3-12 (push) Has been cancelled
Installing via pip and running / install-and-run-on-python-3-10 (push) Has been cancelled
Installing via pip and running / windows-git-clone-and-run (push) Has been cancelled
This commit is contained in:
parent
ef96d84901
commit
089f956049
3 changed files with 5 additions and 5 deletions
|
@ -298,7 +298,7 @@ def concat_wavs_with_ffmpeg(chapter_files, output_folder, filename):
|
|||
for wav_file in chapter_files:
|
||||
f.write(f"file '{wav_file}'\n")
|
||||
concat_file_path = Path(output_folder) / filename.replace('.epub', '.tmp.mp4')
|
||||
subprocess.run(['ffmpeg', '-y', '-f', 'concat', '-i', wav_list_txt, '-c', 'copy', concat_file_path])
|
||||
subprocess.run(['ffmpeg', '-y', '-f', 'concat', '-safe', '0', '-i', wav_list_txt, '-c', 'copy', concat_file_path])
|
||||
Path(wav_list_txt).unlink()
|
||||
return concat_file_path
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[project]
|
||||
name = "audiblez"
|
||||
version = "0.4.8"
|
||||
version = "0.4.9"
|
||||
description = "Generate audiobooks from e-books (epub to wav/m4b)"
|
||||
authors = [
|
||||
{ name = "Claudio Santini", email = "hireclaudio@gmail.com" }
|
||||
|
|
|
@ -33,10 +33,10 @@ class MainTest(unittest.TestCase):
|
|||
url = 'https://archive.org/download/AnimalFarmByGeorgeOrwell/Animal%20Farm%20by%20George%20Orwell.epub'
|
||||
self.base('orwell', url)
|
||||
|
||||
def test_italian_pirandello(self):
|
||||
def test_italian_pirandello_and_filename_with_spaces(self):
|
||||
url = 'https://www.liberliber.eu/mediateca/libri/p/pirandello/cosi_e_se_vi_pare_1925/epub/pirandello_cosi_e_se_vi_pare_1925.epub'
|
||||
self.base('pirandello', url, voice='im_nicola')
|
||||
self.assertTrue(Path('pirandello.m4b').exists())
|
||||
self.base('pirandello e spazio', url, voice='im_nicola')
|
||||
self.assertTrue(Path('pirandello e spazio.m4b').exists())
|
||||
|
||||
def test_italian_manzoni(self):
|
||||
url = 'https://www.liberliber.eu/mediateca/libri/m/manzoni/i_promessi_sposi/epub/manzoni_i_promessi_sposi.epub'
|
||||
|
|
Loading…
Add table
Reference in a new issue