A user requested (in Debian's bug tracking system) that support for
tube.majestyc.net, a frontend for Youtube with accessibility functions
(and other support for other assistive technologies), be added.
This patch adds support for this.
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
With this change, I can directly cut and paste URLs embedded in 3rd-party
pages as `youtube-dl`'s arguments.
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
Many systems (including Debian, Ubuntu and derivatives like Linux Mint) use
Dash as a noninteractive version of `/bin/sh`, invoked by `make`.
Dash's `echo` command doesn't understand the `-e` option and this generates
spurious output when running `make`. See [a bugreport][0] for one of the
many instances of this bug/feature in action.
[0]: https://bugs.launchpad.net/ubuntu/+source/dash/+bug/72167
The current regular expression is likely to match a lot of stuff, as each
comment that a video has has one of those and it is not clear which one is
the date of the video *upload* itself.
Many playlists reported by Youtube now have the form like in:
http://www.youtube.com/playlist?list=PL520044A3524F5E5D
where `PL` is prefixed to what youtube-dl used to use as playlist IDs. So,
while matching it, we adapt the regular expression so as to discard the `PL`
and only get the `520044A3524F5E5D` in the case of the playlist of the
example.
This, in particular, lets me grab the videos from the beginners channel with
URLs like:
http://vimeo.com/groups/fivebyfive/videos/22648611
Note that the regexp *will* break for other URLs that we don't know about
and that's on purpose: we don't want to accidentally grab videos that would
be passed on to other information extractors.
Since I was very lazy when I coded this, I took the fastest route. Luckily,
Vasyl' Vavrychuk pointed this out and I went (after many months) and just
did some minor changes.