Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search individual videos #11

Closed
abe-101 opened this issue May 21, 2023 · 3 comments
Closed

Search individual videos #11

abe-101 opened this issue May 21, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@abe-101
Copy link

abe-101 commented May 21, 2023

Is it possible to search in a individual video?

@NotJoeMartinez NotJoeMartinez added the enhancement New feature or request label May 21, 2023
@chapmanjacobd
Copy link

chapmanjacobd commented May 29, 2023

I added this to my program Library. Here is an example of how you can use it:

$ pip install xklb
$ lb tubeadd test.db --extra --subs 'https://www.youtube.com/watch?v=dnp9baEtdFk'
Importing playlist-less media https://www.youtube.com/watch?v=dnp9baEtdFk

[https://www.youtube.com/watch?v=dnp9baEtdFk]: Getting extra metadata     

You can search like this:

$ lb search test.db dashi 
12 captions
https://www.youtube.com/watch?v=dnp9baEtdFk
   00:04 and today I'm going to share how to make dashi, what's dashi? you may ask. japanese soup stock dashi is typically made from fish such as dried bonito flakes or anchovies. using kombu and dried shiitake mushrooms we
         use dashi in many japanese recipes. how to make five most standard types of dashi. kombu dashi which is made with kelp and it's vegan. katsuo dashi made with shaved dried bonito flake called katsuobushis. awasa
         dashi which is the combination of kombu and katsuobushi. iriko dashi made with anchovies. and lastly shiitake dashi may with driedshiitake mushrooms and this is another vegan dashi. in this video I'll show you how
         to make dashi from scratch
   01:25 for those of you who prefer to save time I also show you how to use dashi powder and dashi packet. kombu dashi. do not wash or wipe off white powdery substance mannitol it contributes to the umami flavor in dashi.
         option 1. cold brew kombu dashi
   02:00 option 2. stovetop kombu dashi
   02:12 meanwhile, clean the dashi by skimming the surface. just before the dashi starts boiling gently, remove kombu from the pot. awase dashi. start with kombudashi
   02:43 once the dashi is boiling, reduce the heat, simmer for just 30 seconds, and turn off the heat. strain the dashi through a fine-mesh sieve over a bowl or measuring cup. awase dashi is ready to use. katsuo dashi
   03:22 once the dashi is boiling, reduce the heat, simmer for just 30 seconds, and turn off the heat. strain the dashi through a fine-mesh sieve over a bowl or measuring cup. katsuo dashi is ready to use. iriko dashi
   04:29 remove from the heat and drain into a fine-mesh sieve over a bowl or measuring cup iriko dashi is ready to use. shiitake dashi
   05:08 option 2 . make shiitake dashi
   05:43 dashi packet
   05:56 in a medium saucepan, add 2 cups water and one dashi packet
   06:17 discard the packet and dashi is ready to use. dashi powder
   06:34 once boiling, add 1 tsp dashi powder. stir well and turn off the heat, dashi is ready to use

There is even a feature to open mpv to the video at the timestamp of all the relevant captions:

$ lb search test.db shiitake --open

And it should work for local files also. But the command to scan locally is different:

lb fsadd movies.db --scan-subtitles './My Videos/'

@NotJoeMartinez
Copy link
Owner

I've added this in Search individual videos #39

the syntax:

yt-fts search "SEARCH_TEXT" --video [VIDEO_ID]

@abe-101
Copy link
Author

abe-101 commented Jun 21, 2023

Thanks!
Will take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

3 participants