This moves some of the file listing code to a more generic function shared across all the sources, and ensures that all (browser supported) audio file types are readable by all sources. Additionally, most os.path code was changed to pathlib.Path due to being more extensible/easier to work with for this purpose.
More changes will probably be needed once we migrate to the new audio sources, but everything has been tested in the latest anki with the currently-supported audio collection (and files converted to opus) and appears to work fine. However, Android stuff is untested.
This moves some of the file listing code to a more generic function shared across all the sources, and ensures that all (browser supported) audio file types are readable by all sources. Additionally, most
os.path
code was changed topathlib.Path
due to being more extensible/easier to work with for this purpose.More changes will probably be needed once we migrate to the new audio sources, but everything has been tested in the latest anki with the currently-supported audio collection (and files converted to opus) and appears to work fine. However, Android stuff is untested.
Closes #10