started implementing of audio codex
This commit is contained in:
parent
5b947c2d66
commit
2a1d5bef1c
7
src/music_kraken/audio/__init__.py
Normal file
7
src/music_kraken/audio/__init__.py
Normal file
@ -0,0 +1,7 @@
|
||||
from . import metadata
|
||||
from . import codex
|
||||
|
||||
AudioMetadata = metadata.AudioMetadata
|
||||
write_many_metadata = metadata.write_many_metadata
|
||||
write_metadata = metadata.write_metadata
|
||||
write_metadata_to_target = metadata.write_metadata_to_target
|
8
src/music_kraken/audio/codex.py
Normal file
8
src/music_kraken/audio/codex.py
Normal file
@ -0,0 +1,8 @@
|
||||
import ffmpeg
|
||||
|
||||
from ..utils.shared import BITRATE
|
||||
from ..objects import Target
|
||||
|
||||
def correct_codex(target: Target, bitrate: int = BITRATE):
|
||||
if not target.exists:
|
||||
pass
|
@ -21,7 +21,7 @@ from ..objects import (
|
||||
Label,
|
||||
AlbumType
|
||||
)
|
||||
from ..tagging import write_metadata_to_target
|
||||
from ..audio import write_metadata_to_target
|
||||
from ..utils import shared
|
||||
|
||||
|
||||
|
@ -1,6 +0,0 @@
|
||||
from . import id3
|
||||
|
||||
AudioMetadata = id3.AudioMetadata
|
||||
write_many_metadata = id3.write_many_metadata
|
||||
write_metadata = id3.write_metadata
|
||||
write_metadata_to_target = id3.write_metadata_to_target
|
@ -113,6 +113,8 @@ DEFAULT_VALUES = {
|
||||
"song": "Various Song",
|
||||
"album_type": "Other"
|
||||
}
|
||||
# kB per second
|
||||
BITRATE = 100
|
||||
|
||||
# size of the chunks that are streamed
|
||||
CHUNK_SIZE = 1024
|
||||
|
Loading…
Reference in New Issue
Block a user