ffmpeg_proc.proc.pid,
)
async for chunk in ffmpeg_proc.iter_chunked(pcm_format.pcm_sample_size):
+ if chunk_number == 0:
+ # At this point ffmpeg has started and should now know the codec used
+ # for encoding the audio.
+ streamdetails.audio_format.codec_type = ffmpeg_proc.input_format.codec_type
+
# for non-tracks we just yield all chunks directly
if streamdetails.media_type != MediaType.TRACK:
yield chunk
bytes_sent += len(chunk)
continue
- if chunk_number == 0:
- # At this point ffmpeg has started and should now know the codec used
- # for encoding the audio.
- streamdetails.audio_format.codec_type = ffmpeg_proc.input_format.codec_type
-
chunk_number += 1
# determine buffer size dynamically
if chunk_number < 5 and strip_silence_begin:
CONF_ENTRY_CONTENT_TYPE_READ_ONLY,
CONF_ENTRY_MISSING_ALBUM_ARTIST,
CONF_ENTRY_PATH,
- CONF_MISSING_ALBUM_ARTIST_ACTION,
IMAGE_EXTENSIONS,
PLAYLIST_EXTENSIONS,
PODCAST_EPISODE_EXTENSIONS,
album_artists.append(artist)
else:
# album artist tag is missing, determine fallback
- fallback_action = self.config.get_value(CONF_MISSING_ALBUM_ARTIST_ACTION)
+ fallback_action = self.config.get_value(CONF_ENTRY_MISSING_ALBUM_ARTIST.key)
if fallback_action == "folder_name" and album_dir:
possible_artist_folder = os.path.dirname(album_dir)
self.logger.warning(