Opened 13 years ago
#48 new defect
YouTube playback code has bit rotted
Reported by: | andersk | Owned by: | |
---|---|---|---|
Priority: | major | Component: | server |
Keywords: | Cc: |
Description
There are two problems with the current YouTube? code:
- youtube-dl no longer accepts the deprecated -b option.
- The URL printed by youtube-dl -g now returns a 403 error unless you access it with the cookies retreived by youtube-dl:
cookiedir="$(mktemp -dt)" url="$(youtube-dl --cookies="$cookiedir/cookies.txt" -q -g http://www.youtube.com/watch?v=dQw4w9WgXcQ)" mplayer -cookies -cookies-file "$cookiedir/cookies.txt" "$url"
Note: See
TracTickets for help on using
tickets.