54ac/stream-detector

.vtt doesn't work with copy stream as .... command

cjrayance opened this issue · 13 comments

Hello, sir

when i detected .vtt i want to copy stream as ... command to download with filename

but when i try to do this, just copy url of .vtt not like a command

What additional settings do I need?

2023-02-16 00-57-33

thanks

54ac commented

I think subtitles currently default to being copied as URLs. Would there be any point to copying them as yt-dlp commands?

because i want a filename format from your options and yt-dlp work for this site

54ac commented

What do you mean by filename format? Couldn't you use a custom command for this?

Screenshot 2023-02-16 011148
i use this to get a filename format

54ac commented

So you use yt-dlp to essentially rename the file?

yes sir

54ac commented

Maybe try a user-defined command like yt-dlp -o "%tabtitle%.vtt" %url%. I'll enable support for subtitles in the tools in a future release, as it's a bit of an outdated restriction.

thank you sir, It works very well
yt-dlp -o "ดูซีรีส์ เกียรติยศหน่วยรบพิเศษ Glory of Special Forces (2022) พากย์ไทย EP 1-0.vtt" https://stream-dn.monomax.me/streams/20220510/tCeZSY5HWmCe5agY/b85Bi24QiEJTJfbt.vtt
111

By the way, can you share an example of custom command for query filename ?
and Where do I go to read about this topic?

i really don't know where %tabtitle% come from

54ac commented

Addon options -> mouse over the question mark next to user-defined command field. All question marks have further explanations. Seems quite obvious to me but maybe it isn't to others.

Found it, thank you very much.

At first, I didn't move the cursor to the question mark, I clicked on it. Nothing happened. I thought it was a bug with my browser. Sorry for misunderstanding.

54ac commented

Subtitles can now be used with the built-in tool commands at the user's discretion as of v2.11.2 once it gets approved by Mozilla. I've also added a hint in the options menu in regard to the question mark functionality.