this post was submitted on 10 Mar 2024
386 points (97.8% liked)

Memes

45554 readers
691 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS
 

Now I don't have to : right-click > english audio and right-click > french subtitle. It launches every video of the season ready to go. It was worth it, right?
Now it's time to enjoy my day. Oh wait! (it's 6 am here)

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 26 points 8 months ago (3 children)

Share your code? (Or is it like mine, and shameful)

[–] [email protected] 29 points 8 months ago (2 children)

I could but I would have to comment it a little more. If I don't forget I'll share it later in response of your message.

[–] [email protected] 16 points 8 months ago (1 children)

Or you could just post it and then fix it up later

[–] [email protected] 1 points 8 months ago* (last edited 8 months ago)

I know but I didn't feel completely at ease to share some mildly clean code. Now it's good. I put it in the comments.

[–] [email protected] 1 points 8 months ago* (last edited 8 months ago) (1 children)

Why not share it and then let others comment it? Something like that should work.

[–] [email protected] 2 points 8 months ago (1 children)

I know but I didn't fell completely at ease to share some mildly clean code. Now it's good. I put it in the comments.

[–] [email protected] 2 points 8 months ago

Nice, thanks for sharing :)

[–] [email protected] 3 points 8 months ago* (last edited 8 months ago)

Here it is. I took the time to comment it well and rearrange some things.
It's in 2 files :
https://pastebin.com/FQ7xqNSt
https://pastebin.com/6S3qesWc
Keep the file names I chose when copy/pasting. Read the loop file to see how to use it quickly.
I forgot to say in the loop script’s quick explanations that you need mkvmerge and mkvpropedit from MKVToolNix (put it in the PATH variable if needed) and nodejs to make that script work.