More age limit of videos for adult-related sites.
Note that, for redtube, I explicitly left the variable containing the age
limit, since the comment justifying the age limit is a good thing to have.
That being said, I included the age limit field on the test, to better
reflect what the information extractor does (even if it may not break the
automated tests).
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
While working on this, I thought about simplifying things like changing
480x854 to 480p, and that seemed like a good option, until I realized that
people (me included) usually link the concept of some number followed by a p
with the video being 16:9.
So, we would be losing some information and, as we all know,
[explicit is better than implicit][*].
[*]: http://www.python.org/dev/peps/pep-0020/
This closes#1446.
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
This, in particular, eases downloading both audio and videos in DASH formats
before muxing them, which alleviates the problem that I exposed on issue
Furthermore, one may argue that this is, indeed, the case for correctness's
sake.
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
A string statement is not a docstring if it doesn't occur right at the top
of modules, functions, class definitions etc.
This patch fixes it.
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
Trying to mimic the manpage of (GNU) `ls`, we don't conjugate the verb as
"downloads" or something else.
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
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.