Skip to content

Indexing Revamp#77

Open
ashish-spext wants to merge 12 commits into
mainfrom
feat/add-indexing-v2
Open

Indexing Revamp#77
ashish-spext wants to merge 12 commits into
mainfrom
feat/add-indexing-v2

Conversation

@ashish-spext

Copy link
Copy Markdown
Collaborator

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c0acb08ac8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread videodb/video.py
warn_legacy_search_once()
return self.legacy_search(query=query, **kwargs)

return self._new_search(query=query, **kwargs)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve playback helpers for default searches

When an existing call uses the common default form video.search("..."), it now reaches this branch and returns a SearchResponse instead of the previous SearchResult. For shot responses the wrapper only exposes get_shots/iteration and does not delegate compile(), play(), or get_embed_code(), so code that compiles or plays default search results now fails with AttributeError. Either keep shot searches returning a SearchResult-compatible object or add those passthrough helpers to SearchResponse.

Useful? React with 👍 / 👎.

Comment thread videodb/video.py
for name, value in zip(legacy_arg_names, args):
kwargs.setdefault(name, value)

has_old = bool(args) or any(k in kwargs and kwargs[k] is not None for k in old_params)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Route legacy stitch searches to legacy_search

The legacy Video.search accepted extra endpoint flags through **kwargs, including stitch, but old_params does not include those legacy-only keys. A call such as video.search("...", stitch=True) therefore no longer goes through legacy_search; it is posted to /video/{id}/search/v2, so the legacy endpoint never receives the flag. Add the legacy passthrough flags to the detection set, or otherwise route them before falling through to the v2 search.

Useful? React with 👍 / 👎.

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

Successfully merging this pull request may close these issues.

4 participants