Peter White
Peter White
Isn't this an issue with yt-dlp itself? I've tried `yt-dlp -F ` with both examples from the OP and both return playlists with `0` items. Granted, mpv shouldn't crash but...
I also changed the `mp_basename` to a (GNU) `basename` call, just for kicks. Which begs the question: is there a particular reason to re-implement it? Because from my POV, all...
I am a little embarassed for missing that. I grepped for `_GNU_SOURCE` and saw it as a meson build default. Sorry!
Sorry for the last force push, had to rewrite history.
I've also changed `mp_property_filename` to use `mp_basename_or_url`, mainly because of consistency, but it does kill two birds with one stone in that stats.lua now shows full URLs. This may be...
Sorry, I did not mean to offend. I gave you credit and it is not a direct copy, because as you can see in my last commits `mp_basename` should not...
Sorry, had to squash some commits after discovering some subtle bugs in `mp_splitext`. It would've split the wrong portion, if there were more than one leading dots. And the check...
I am having second thoughts on the multiple leading dots issue. I guess, `/path/to/...ext` is technically a file named `..` with `ext` as extension. So the root could end up...
> It's also worth noting that we also have `bstr_strip_ext` and `bstr_get_ext` but those don't check for URLs like `mp_splitext` so I'm not sure how we should handle all these...
While I am digesting your last digesting your last comment, @guidocella, an idea popped into my head. Could this perhaps be done in lua? I am asking because, I still...