mpv icon indicating copy to clipboard operation
mpv copied to clipboard

"Passing multiple arguments to (video-exts)-add is deprecated!"

Open Trinity3e opened this issue 1 year ago • 6 comments

With my excuses in advance it doesn't make much sense to me, what media extensions would possibly have a comma in them?

Or the entire -add section is deprecated and one is supposed to just use append?

If this is not a bug and it's indended, I would like to request a regex or a fuzzy feature for the image/video/audio extensions.

Thanks in advance.

Trinity3e avatar Oct 15 '24 08:10 Trinity3e

Use -append or if you really have to use -add only pass one format at a time.

https://github.com/mpv-player/mpv/commit/4a084c0df8fd8aaa66073839d97e544c3b6903e7

This has been deprecated for 7 years now

llyyr avatar Oct 15 '24 08:10 llyyr

Okay, so the entire section is deprecated. I only looked at the documentation so didn't get to that. If one could edit it would be great https://mpv.io/manual/stable/#list-options

My request remains to fuzzy match, especially extensions but could also be extended to the universal list options.

Trinity3e avatar Oct 15 '24 09:10 Trinity3e

regex.h is not available on Windows, and list options let you remove and add items without redefining the whole list.

guidocella avatar Oct 15 '24 09:10 guidocella

I'm sorry, but what do you mean by removing/adding items without redefining the whole list? I am on linux.

Trinity3e avatar Oct 17 '24 07:10 Trinity3e

I'm sorry, but what do you mean by removing/adding items without redefining the whole list?

That you can add single items with -append and remove single items with -remove instead of redefining an entire regex.

I am on linux.

Great, but we also have to support Windows.

guidocella avatar Oct 17 '24 07:10 guidocella

I understand. In my case I have to add about 5 or 6 items of common extensions but with a e.g. .part termination, the resulting config file would look very ugly if adding single items.

Trinity3e avatar Oct 17 '24 07:10 Trinity3e

Fixed by 7456816217

guidocella avatar Jan 29 '25 20:01 guidocella

Yeah it's fine. Most options don't need crazy escaping. And if they do, just use -append if you don't want to figure it out.

Dudemanguy avatar Jan 29 '25 20:01 Dudemanguy