Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

Commit

Permalink
Add support for uploading Ogg Vorbis and Ogg Opus files
Browse files Browse the repository at this point in the history
  • Loading branch information
thebigmunch committed Mar 5, 2020
1 parent b5f1bf4 commit 02186ab
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ This project adheres to [Semantic Versioning](https://semver.org).

[Commits](https://github.com/thebigmunch/google-music-scripts/compare/4.2.1...master)

### Added

* Support for uploading Ogg Vorbis and Ogg Opus files.


## [4.2.1](https://github.com/thebigmunch/google-music-scripts/releases/tag/4.2.1) (2020-02-23)

Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ python = "^3.6"

appdirs = "^1.0"
attrs = ">=18.2,<19.4"
audio-metadata = "^0.6"
google-music = "^3.2"
google-music-proto = "^2.5.1"
audio-metadata = "^0.8"
google-music = "^3.4"
google-music-proto = "^2.8"
google-music-utils = "^2.1"
loguru = "0.4.*"
pendulum = "^2.0"
pprintpp = "0.*"
natsort = ">=5.0,<7.0"
tbm-utils = "^2.0.2"
tbm-utils = "^2.3"
tomlkit = "^0.5"

flake8 = { version = "^3.5", optional = true }
Expand Down
8 changes: 7 additions & 1 deletion src/google_music_scripts/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,13 @@ def get_local_songs(
exclude_regexes=exclude_regexes,
exclude_globs=exclude_globs
)
if audio_metadata.determine_format(filepath) is not None
if audio_metadata.determine_format(filepath) in [
audio_metadata.FLAC,
audio_metadata.MP3,
audio_metadata.OggOpus,
audio_metadata.OggVorbis,
audio_metadata.WAV,
]
]

logger.info("Found {} local songs", len(local_songs))
Expand Down

0 comments on commit 02186ab

Please sign in to comment.