You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
shiey
committed
Enhance fb.watch URL support with improved redirect handling
✨ Improvements:
- Enhanced redirect resolution with multiple hop support
- Better error messages specifically for fb.watch URLs
- Added comprehensive URL format documentation to README
- Improved headers and timeout handling for redirects
- Added pro tips for mobile users with fb.watch links
🔧 Technical Changes:
- Enhanced _resolve_fb_watch_url() with proper redirect chain handling
- Added relative URL handling for redirects
- Improved error messages with actionable guidance
- Added URL format examples and troubleshooting tips
📚 Documentation:
- Added 'Supported URL Formats' section to README
- Included fb.watch troubleshooting guide
- Added mobile user guidance for redirect URLs
raiseValueError("fb.watch URL couldn't be processed. Please try: 1) Open the video on Facebook, 2) Copy the full facebook.com URL from the address bar, 3) Use that URL instead.")
163
+
else:
164
+
raiseValueError("Video URL has redirect issues. Try copying the direct Facebook video URL.")
raiseValueError("fb.watch URL needs the full Facebook URL. Please: 1) Open the video on Facebook, 2) Copy the complete facebook.com URL, 3) Try again.")
176
+
else:
177
+
raiseValueError("URL redirect issue. Please try using the direct Facebook video URL.")
0 commit comments