Skip to content

Conversation

@majiayu000
Copy link

@majiayu000 majiayu000 commented Dec 22, 2025

Summary

Added support for parsing YouTube Shorts URLs (youtube.com/shorts/...) in the TranscribeYoutubeVideoBlock to extract video IDs correctly.

Changes

  • Modified _extract_video_id method in youtube.py to handle Shorts URL format
  • Added test cases for YouTube Shorts URL extraction

Related Issue

Fixes #11500

Test Plan

  • Added unit tests for YouTube Shorts URL extraction
  • Verified existing YouTube URL formats still work
  • CI should pass all existing tests

@majiayu000 majiayu000 requested a review from a team as a code owner December 22, 2025 10:04
@majiayu000 majiayu000 requested review from Swiftyos and majdyz and removed request for a team December 22, 2025 10:04
@github-project-automation github-project-automation bot moved this to 🆕 Needs initial review in AutoGPT development kanban Dec 22, 2025
@coderabbitai
Copy link

coderabbitai bot commented Dec 22, 2025

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@CLAassistant
Copy link

CLAassistant commented Dec 22, 2025

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot added the conflicts Automatically applied to PRs with merge conflicts label Dec 22, 2025
@github-actions
Copy link
Contributor

This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.

@github-actions github-actions bot added platform/frontend AutoGPT Platform - Front end platform/backend AutoGPT Platform - Back end platform/blocks labels Dec 22, 2025
@AutoGPT-Agent
Copy link

Thank you for your PR to fix the Wikipedia API 403 errors and add support for YouTube Shorts URLs! The changes themselves look good, but there are a couple of things that need to be addressed before this can be merged:

  1. Your checklist is only partially completed. Please make sure to check off all items in the checklist:

    • CI should pass all existing tests
    • Manual verification: Wikipedia block should no longer return 403 errors
    • Manual verification: YouTube Shorts URLs should be parsed correctly
  2. I noticed there's an unrelated change in the feature flags file that sets Flag.CHAT to false. Was this intentional? If it's meant to be part of this PR, could you add it to the description to clarify why this change is included?

Once the checklist is completely filled out and you've clarified the feature flag change, this PR should be ready for merging.

0ubbe and others added 2 commits December 22, 2025 19:28
…vitas#11639)

### Changes 🏗️

Chat should be disabled by default; otherwise, it flashes, and if Launch
Darkly fails to fail, it is dangerous.

### Checklist 📋

#### For code changes:
- [x] I have clearly listed my changes in the PR description
- [x] I have made a test plan
- [x] I have tested my changes according to the test plan:
  - [x] Run locally with Launch Darkly disabled and test the above
Added support for parsing YouTube Shorts URLs (youtube.com/shorts/...) in the
TranscribeYoutubeVideoBlock to extract video IDs correctly.

Includes test cases for YouTube Shorts URL extraction.

Related to Significant-Gravitas#11500
@majiayu000 majiayu000 force-pushed the fix/wikipedia-and-youtube-blocks branch from 5e78817 to 63e65d9 Compare December 22, 2025 11:30
@github-actions github-actions bot removed the platform/frontend AutoGPT Platform - Front end label Dec 22, 2025
@majiayu000 majiayu000 changed the title fix(blocks): add Wikipedia User-Agent and YouTube Shorts URL support fix(blocks): add YouTube Shorts URL support Dec 22, 2025
@github-actions github-actions bot removed the conflicts Automatically applied to PRs with merge conflicts label Dec 22, 2025
@github-actions
Copy link
Contributor

Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.

@AutoGPT-Agent
Copy link

Thank you for your contribution to add YouTube Shorts URL support and fix the Wikipedia API issues. The code changes look good and the tests for YouTube Shorts URL extraction are helpful.

Before we can merge this PR, please complete the test plan checklist in your PR description. All items need to be checked off. Currently, only the first item ("Added unit tests for YouTube Shorts URL extraction") is checked.

Also, I notice your PR description mentions a Wikipedia API fix, but I don't see those changes in the provided diff. Could you please ensure all the changes described in your PR summary are included in the PR?

Once the checklist is fully completed and all described changes are included, we can proceed with merging this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: 🆕 Needs initial review
Status: No status

Development

Successfully merging this pull request may close these issues.

4 participants