Package Details: ytfind-bin 1.4-0

Git Clone URL: https://aur.archlinux.org/ytfind-bin.git (read-only, click to copy)
Package Base: ytfind-bin
Description: A program that searches invidious and gives you video titles and IDs
Upstream URL: https://codeberg.org/305a385/ytfind/
Keywords: search youtube
Licenses: AGPL3
Submitter: 305a385
Maintainer: 305a385
Last Packager: 305a385
Votes: 1
Popularity: 0.000034
First Submitted: 2023-05-30 15:25 (UTC)
Last Updated: 2023-06-28 03:11 (UTC)

Latest Comments

305a385 commented on 2023-05-30 17:50 (UTC)

@sekret fixed the issues :)

sekret commented on 2023-05-30 14:29 (UTC)

Please don't install stuff in /usr/local/* !!!

And since this package uses a prebuilt binary, please mark it as such by adding -bin to the pkgname.

305a385 commented on 2023-05-21 09:30 (UTC)

@m040601 I added a manpage with examples but haven't yet added a changelog

I think we should move this to a github issue

305a385 commented on 2023-05-21 07:09 (UTC)

@m040601

I think a manpage would work better

m040601 commented on 2023-05-20 21:12 (UTC) (edited on 2023-05-20 21:45 (UTC) by m040601)

        /* get random instance */
        srand(time(NULL));
        const char *INSTANCE = (INSTANCES[rand() % ARR_SIZE(INSTANCES)]);
...

Very nice ! Gets the job done. Long live 'C' !!!

Since the program is very suckless and spartan and has no "-h" or "--help" option, you might as well edit the PKGBUILD and ship the README also. I like to have it offline in my system.

Should be placed in something like,

/usr/share/doc/ytfind/README

Add a small "News/Changelog" section at the bottom or top of the readme . Add a small section "Examples". I notice it doesnt need quotes for multi term searches

ytfind apples
ytfind "apples oranges bananas" (WRONG, it seems to repeat the previous search)
ytfind 'apples oranges bananas' (WRONG, it seems to repeat the previous search)
ytfind apples oranges bananas (RIGHT)

ytfind "Provided to Youtube by Universal Media Group" (WRONG)
ytfind Provided to Youtube by Universal Media Group (RIGHT, it seems to search the "Description" )

305a385 commented on 2023-05-20 19:21 (UTC)

@m040601

Update your system :)

m040601 commented on 2023-05-20 06:10 (UTC)

I'm a heavy user of CLI youtube/invidious/yt-dlp query and download tools. I have tested lots of them in different languages. I'm not a programmer.

This one is really nice, simple, fast, and with no dependencies. Might be very interesting for integrating in scripts. Thanks for providing this package build.

Howeever it has only one instance, projectsefault.it, hard coded in config.h

static const char INSTANCE[] = "https://invidious.projectsegfau.lt/api/v1/search?q=";

Couldnt you make it so that instead of just one hardcoded instance, it picks a random one from a list ?

You choose say a list of say 20 or so, old, trusted, stable from

https://docs.invidious.io/instances/

Put them in config.h and then every time it runs it picks a random one. If it fails, the user just runs ytfind again. Oro

Another alternative for picking a random instance could also be using the "farside" redirector, https://github.com/benbusby/farside

One would then have to put in config.h something like,

static const char INSTANCE[] = "https://farside.link/https://www.????youtube???.com/api/v1/search?q=";

Farside also accepts URLs to "parent" services, and will redirect to an appropriate
front end service, for example:

  • https://farside.link/https://www.youtube.com/watch?v=dQw4w9WgXcQ will redirect
    to a Piped or Invidious instance
  • https://farside.link/reddit.com/r/popular will redirect to a Libreddit or Teddit
    instance