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

call stremio default search #314

Open
RazaGR opened this issue Dec 23, 2024 · 0 comments
Open

call stremio default search #314

RazaGR opened this issue Dec 23, 2024 · 0 comments

Comments

@RazaGR
Copy link

RazaGR commented Dec 23, 2024

How can I trigger Stremio's default search from my custom add-on? I want to pass a title (e.g., a movie or show name) and get the results as if searched directly in Stremio.

I tried deep link with id and extra but it still redirect me to meta page instead of search result page:

builder.defineMetaHandler((args) => {
  const { id } = args;

  const title = id.split("/").pop().replace(/-/g, " ");
  return Promise.resolve({
    meta: {
      id: `stremio:///search?search=${title}`,
      name: title,
      description: `Search for "${title}" in Stremio.`,
      type: "movie",
      links: [
        {
          name: "Search in Stremio",
          category: "search",
          url: `stremio:///search?search=${title}`,
        },
      ],
    },
  });
});

Screenshot 2024-12-23 at 10 40 54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant