Skip to content

Commit

Permalink
feat: export audios for words (#1587)
Browse files Browse the repository at this point in the history
  • Loading branch information
kantord committed Sep 11, 2021
1 parent 610ffd0 commit 25b1094
Show file tree
Hide file tree
Showing 83 changed files with 935 additions and 61 deletions.
2 changes: 1 addition & 1 deletion apps/librelingo_audios/librelingo_audios/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "1.1.1"
__version__ = "1.2.0"

from librelingo_audios.functions import list_required_audios
4 changes: 2 additions & 2 deletions apps/librelingo_audios/librelingo_audios/update_audios.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from librelingo_utils import audio_id, iterate_phrases
from librelingo_utils import audio_id, iterate_phrases, iterate_words
from pathlib import Path
import subprocess
import json
Expand All @@ -12,7 +12,7 @@ def update_audios_for_course(output_path, course_name, course, settings):

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

phrases_in_course = list(iterate_phrases(course))
phrases_in_course = list(iterate_phrases(course)) + list(iterate_words(course))
phrases_with_existing_audios = _load_index_file(index_file_path)

# We want to go from the old state (the existing audios) to the new state
Expand Down
17 changes: 8 additions & 9 deletions apps/librelingo_audios/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/librelingo_audios/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "librelingo_audios"
version = "1.1.1"
version = "1.2.0"
description = "Tools to help getting audios for LibreLingo courses"
authors = ["Dániel Kántor <[email protected]>"]
license = "GPLv3"
Expand Down
Loading

0 comments on commit 25b1094

Please sign in to comment.