Opened 13 years ago

#48 new defect

YouTube playback code has bit rotted

Reported by: andersk Owned by:
Priority: major Component: server
Keywords: Cc:


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"
    mplayer -cookies -cookies-file "$cookiedir/cookies.txt" "$url"

Change History (0)

Note: See TracTickets for help on using tickets.