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

Minor modification for creating cards with Memento (an excellent video player based on MPV) #28

Open
wandero opened this issue Apr 16, 2024 · 0 comments

Comments

@wandero
Copy link

wandero commented Apr 16, 2024

When using Local Audio Server in conjunction with Memento (an excellent video player based on MPV) for card creation, the service was ineffective due to the lack of the Content-length parameter.

Following guidance from @ripose-jp, I modified the server.py code to resolve the issue and hope this modification can be incorporated into the plugin to benefit more users:

Added import os
#after self.send_header("Content-type", mime_type) Appended the line
self.send_header('Content-length', str(os.stat(audio_file).st_size))

The plugin is very useful, thanks a lot

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

No branches or pull requests

1 participant