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

Errors when running srt_fix from yt-dlp (2024.04.09) on my mac #15

Open
franticht opened this issue Apr 19, 2024 · 4 comments
Open

Errors when running srt_fix from yt-dlp (2024.04.09) on my mac #15

franticht opened this issue Apr 19, 2024 · 4 comments

Comments

@franticht
Copy link

username@mac01337 workfolder % yt-dlp --write-auto-subs --sub-langs "en*" --use-postprocessor srt_fix "[URL TO YOUTUBE VIDEO]"
Traceback (most recent call last):
File "/opt/local/bin/yt-dlp", line 8, in
sys.exit(main())
^^^^^^
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/yt_dlp/init.py", line 1072, in main
_exit(*variadic(_real_main(argv)))
^^^^^^^^^^^^^^^^
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/yt_dlp/init.py", line 970, in _real_main
with YoutubeDL(ydl_opts) as ydl:
^^^^^^^^^^^^^^^^^^^
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/yt_dlp/YoutubeDL.py", line 789, in init
get_postprocessor(pp_def.pop('key'))(self, **pp_def),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/yt_dlp/postprocessor/init.py", line 42, in get_postprocessor
return globals()[key + 'PP']
~~~~~~~~~^^^^^^^^^^^^
KeyError: 'srt_fixPP'

@ocococococ
Copy link

FYI. Exactly the same issue for me.

@bindestriche
Copy link
Owner

bindestriche commented May 28, 2024 via email

@franticht
Copy link
Author

franticht commented May 29, 2024

Not sure if it is related, but maybe it is. I also had another issue with running src_fix standalone on my mac, and I just posted a little update on that one here:

#14

Where should the plugin be copied?

@bindestriche
Copy link
Owner

@franticht the directories for plugins are listed here

User Plugins

${XDG_CONFIG_HOME}/yt-dlp/plugins/<package name>/yt_dlp_plugins/ (recommended on Linux/macOS)
${XDG_CONFIG_HOME}/yt-dlp-plugins/<package name>/yt_dlp_plugins/
${APPDATA}/yt-dlp/plugins/<package name>/yt_dlp_plugins/ (recommended on Windows)
${APPDATA}/yt-dlp-plugins/<package name>/yt_dlp_plugins/
~/.yt-dlp/plugins/<package name>/yt_dlp_plugins/
~/yt-dlp-plugins/<package name>/yt_dlp_plugins/

System Plugins

/etc/yt-dlp/plugins/<package name>/yt_dlp_plugins/
/etc/yt-dlp-plugins/<package name>/yt_dlp_plugins

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

3 participants