Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove scrobble from Subsonic provider #1904

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

khers
Copy link
Contributor

@khers khers commented Jan 22, 2025

The first commit disables scrobbling in the music provider so we don't step on the scrobble providers. The second adds a warning when a user plays an MPEG-4 file referencing our documentation on the possible problem.

khers added 2 commits January 22, 2025 18:48
This has only ever caused bugs and now that we have folks writing
scrobbling plugins that is the place it should happen.

Signed-off-by: Eric B Munson <[email protected]>
Because these files can store some of their metadata at the end of the
file and we can't just hand a URL to ffmpeg to pull from (due to
subsonic API) we will fail to play M4A files with the moov atom at the
back.

Add a warning in the logs when this is attempted.

Signed-off-by: Eric B Munson <[email protected]>
@@ -827,7 +829,7 @@ def _streamer() -> None:
timeOffset=seek_position,
estimateContentLength=True,
) as stream:
for chunk in stream.iter_content(chunk_size=40960):
for chunk in stream.iter_content(chunk_size=4096):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any particular reason to choose such a small chunk size ?
I would rather raise it then lower it. Something like 32kb or even higher.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Damn, that was not supposed to be left in (I was testing to see if different chunk sizes changed seek performance, they don't AFAICT). We currently use 40Kb as a chunk size and I'll leave that alone if you agree.

@marcelveldt marcelveldt changed the title Remove scrobble Remove scrobble from Subsonic provider Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants