srt_fix icon indicating copy to clipboard operation
srt_fix copied to clipboard

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

Open franticht opened this issue 1 year ago • 6 comments

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'

franticht avatar Apr 19 '24 10:04 franticht

FYI. Exactly the same issue for me.

ocococococ avatar May 28 '24 14:05 ocococococ

Maybe you did not copy the plugin to the right place.I had a similar error when the python file was not at the right place. I have no mac and can't try it.

ocococococ @.***> schrieb am Di., 28. Mai 2024, 16:48:

FYI. Exactly the same issue for me.

— Reply to this email directly, view it on GitHub https://github.com/bindestriche/srt_fix/issues/15#issuecomment-2135422174, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATZWN6VYE7JZLZZT4VMKWK3ZESKLBAVCNFSM6AAAAABGO6NVFOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZVGQZDEMJXGQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

bindestriche avatar May 28 '24 16:05 bindestriche

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:

https://github.com/bindestriche/srt_fix/issues/14

Where should the plugin be copied?

franticht avatar May 29 '24 08:05 franticht

@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

bindestriche avatar Jun 25 '24 09:06 bindestriche