Skip to content

Commit 25b1094

Browse files
authored
feat: export audios for words (#1587)
1 parent 610ffd0 commit 25b1094

File tree

83 files changed

+935
-61
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+935
-61
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
__version__ = "1.1.1"
1+
__version__ = "1.2.0"
22

33
from librelingo_audios.functions import list_required_audios

apps/librelingo_audios/librelingo_audios/update_audios.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from librelingo_utils import audio_id, iterate_phrases
1+
from librelingo_utils import audio_id, iterate_phrases, iterate_words
22
from pathlib import Path
33
import subprocess
44
import json
@@ -12,7 +12,7 @@ def update_audios_for_course(output_path, course_name, course, settings):
1212

1313
index_file_path = Path(Path(output_path) / "{}.json".format(course_name))
1414

15-
phrases_in_course = list(iterate_phrases(course))
15+
phrases_in_course = list(iterate_phrases(course)) + list(iterate_words(course))
1616
phrases_with_existing_audios = _load_index_file(index_file_path)
1717

1818
# We want to go from the old state (the existing audios) to the new state

apps/librelingo_audios/poetry.lock

Lines changed: 8 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/librelingo_audios/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "librelingo_audios"
3-
version = "1.1.1"
3+
version = "1.2.0"
44
description = "Tools to help getting audios for LibreLingo courses"
55
authors = ["Dániel Kántor <[email protected]>"]
66
license = "GPLv3"

0 commit comments

Comments
 (0)