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 #39

Merged
merged 2 commits into from
Jun 1, 2023
Merged

Search individual videos #39

merged 2 commits into from
Jun 1, 2023

Conversation

NotJoeMartinez
Copy link
Owner

@NotJoeMartinez NotJoeMartinez commented Jun 1, 2023

Search by video flag

Users can now use --video to search for keywords within a video. The argument provided must be the
video id of the YouTube video.

syntax:

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

new search syntax

modified search syntax to be more explicate about the scope of the search. User must use channel, all or video flags
to specify which scope they intend to search in.

old:

yt-fts search "life in the big city" "The Tim Dillon Show"
# or 
yt-fts search "life in the big city" 1

new

yt-fts search "life in the big city" --channel "The Tim Dillon Show"
# or
yt-fts search "life in the big city" --channel 1

Added video id to search output

This will make it easier for users that want to use the video id in their next search

Ex:

yt-fts search "rea* kni* Mali*" --channel "The Tim Dillon Show" 

output:

The Tim Dillon Show: "#200 - Knife Fights In Malibu | The Tim Dillon Show - YouTube"

    Quote: "real knife fight down here in Malibu I"
    Time Stamp: 00:45:39.420
    Video ID: e79H5nxS65Q
    Link: https://youtu.be/e79H5nxS65Q?t=2736

Module naming

module naming convention changed to [thing code does]_utils.py

search_utils module

moved search functions to search_utils.py

Misc

  • updated docs
  • updated testing scripts
  • bumped version number

@NotJoeMartinez NotJoeMartinez merged commit 75f3ba2 into main Jun 1, 2023
@NotJoeMartinez NotJoeMartinez deleted the search_individual_videos branch June 1, 2023 04:01
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.

None yet

1 participant