Add universal endpoints - #2
Conversation
- Migrate from /youtube/video to /metadata endpoint - Migrate from /youtube/transcript to /transcript endpoint - Add mode parameter to transcript endpoint for AI fallback support - Update descriptions to reflect multi-platform support (YouTube, TikTok, etc.) - Bump version to 0.2.8
- Update /metadata endpoint to use 'url' parameter instead of 'id' - Update /transcript endpoint to use only 'url' parameter - Remove conditional logic for videoId vs url in transcript - Update mode parameter values to 'native', 'auto', 'generate' per spec - Change default mode from 'default' to 'auto'
Breaking changes: - Move getMetadata and getTranscript to new "Media" resource - Rename "Get Video" to "Get Metadata" with action "Get metadata" - Change default resource from "youtube" to "media" New features: - Add "Media" resource for universal multi-platform operations - Add language (lang) parameter to transcript endpoint - Support for YouTube, TikTok, Instagram, Twitter in Media operations Improvements: - Separate universal operations from YouTube-specific operations - Keep YouTube operations for channel and playlist management - Maintain backward compatibility with old YouTube video/transcript operations Version: 0.3.0
|
Claude finished @rafalzawadzki's task —— View job Pull Request ReviewI've completed a comprehensive review of this PR that introduces universal endpoints for the Supadata n8n node. Here's my analysis: Review Progress
✅ Code Quality & Best PracticesStrengths:
Minor suggestions:
🐛 Potential IssuesCritical:
Medium:
Suggested fixes: // Add validation for lang parameter
const lang = this.getNodeParameter('lang', i) as string;
if (lang && lang.trim()) {
qs.lang = lang.trim();
}
// Add URL validation
const videoUrl = this.getNodeParameter('videoUrl', i) as string;
if (!videoUrl || (!videoUrl.includes('youtube.com') && !videoUrl.includes('youtu.be') && !videoUrl.includes('tiktok.com') && !videoUrl.includes('instagram.com') && !videoUrl.includes('twitter.com') && !videoUrl.includes('x.com'))) {
throw new Error('Invalid video URL or unsupported platform');
}⚡ Performance ConsiderationsGood practices:
Recommendations:
🔒 Security AssessmentConcerns:
Recommendations:
🧪 Test CoverageMajor concern:
Critical recommendations:
📋 Additional ObservationsPositive changes:
Missing documentation:
🎯 RecommendationsBefore merging:
Future improvements:
📊 SummaryThis PR successfully implements universal endpoints while maintaining backward compatibility. The code quality is good, but lacks test coverage which is concerning for breaking changes. The main issues are around input validation and security considerations that should be addressed before merging. Recommendation: Approve with requested changes - Address input validation and add basic test coverage before merging. |
|
Claude encountered an error —— View job Pull Request Review
|

langandmodeoptions to "Get Transcript" featureThe new universal features support YouTube, Instagram, TikTok, X (Twitter) and more platforms coming soon.
Note: this PR introduces breaking changes.