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

Video Naming Bug #72

Open
4 tasks
jaARke opened this issue Mar 14, 2022 · 0 comments
Open
4 tasks

Video Naming Bug #72

jaARke opened this issue Mar 14, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jaARke
Copy link
Collaborator

jaARke commented Mar 14, 2022

We've identified an issue in the naming of the videos that are retrieved from YouTube. Specifically, when these videos are retrieved using the YouTube API, certain characters (&, $, etc.) in their titles are converted into a textual representation. Video titles that contain these characters are unclear and may serve to confuse users.

Also, our current method of retrieving videos includes a check for whether or not the database already contains a video with that title. This is problematic because renaming videos causes this check to fail, and multiple copies of the same video are added to the database under different names. This issue might be solved by hashing each video title upon retrieval from YouTube and comparing the hashes to the hashes stored in the database. This solution would require that hashes are not updated when a video is renamed.

Tasks:

  • Convert special characters in YouTube video titles before adding these titles to the database (regex?)
  • Update video schema to include a hash variable
  • Implement a hash method to be applied to all video titles retrieved from YouTube
  • Implement a comparison of each hash to every existing hash in the database to prevent duplicate videos
@jaARke jaARke added the bug Something isn't working label Mar 14, 2022
@jaARke jaARke self-assigned this Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant