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
Request: local_settings.py example #1
Comments
If you're running it non-containerised, you can just hack in |
I'm running it through a container so I guess I'll just make a copy of I'd like to add parameters to grab subtitles where available, ie.:
|
Ah OK. I'll look at adding some sensible sub-related flags. Note, those are command line arguments you're using and TubeSync uses embedded |
What would the format look like in the file? I tried this, but it didn't work:
The path to the config folder is already exported through docker, so I restarted the container to see if it worked, but no. TubeSync still downloads videos, but not subtitles. |
The config file you would need to edit is not stored in the config directory, it's in the Django project directory in the container. Where are you attempting to save those parameters? |
I tried putting them into local_settings.py in the config directory. I changed the file contents based on https://github.com/meeb/tubesync/blob/main/tubesync/tubesync/local_settings.py.example to this:
but that didn't work either. I'm running TubeSync as a docker container on unRAID, if that matters at all (from my understanding, it shouldn't). |
That won't work, the |
Gotcha. Can I specify YOUTUBE_DEFAULTS as an environment variable and pass that in with the values above and override it that way? |
No, not at the moment. Passing an array of values in as a string in an env var is messy at best. If this gets implemented it'll be a proper option somewhere rather than letting people hack in custom API flags. The reason this is a bit slow is in testing I couldn't get subtitle downloading to reliably work at all and was until recently blocked entirely by the lack of support for embedding metadata into MKV containers. |
I see. As an interim solution I wouldn't mind passing the env variable, but I fully understand you wanting to do it properly if it is to be done. Temporary solutions often tend to become permanent... Personally, I don't mind having the subtitle file separate from the video file. Embedded is of course very nice, but sometimes I need to manually edit the subtitles to satisfy my OCD, especially with autosubs that have really messed up timings. Having the subs separate from the video saves me a lot of work since I then don't have to extract the subtitles from the MKV, edit/sync/whatever and then merge them back together. |
OK, thanks for the feedback. I'll see if there's any sensible hacks that can be stuffed in in the interim. |
Thanks for putting this together!
Is there an example of how
local_settings.py
can be used to override the default settings?Specifically I'm interested in providing additional parameters to
youtube-dl
(eg. subtitles) via theYOUTUBE_DEFAULTS
attribute.The text was updated successfully, but these errors were encountered: