Rogério Brito 01b9d2b490 extractor: youtube: Allow format number as output template.
Since many video formats map to the same extension, we get problems when
trying to download more than one format of the same audio/video with the
same ID.

This commit introduces a numeric version of the template of the video
format, which can help users who start downloading with a format (say, 720p
mp4), stop and then resume with another format (say, 360p mp4). See:

* http://bugs.debian.org/689294
* http://bugs.debian.org/643831

An output template like '%(title)s-%(id)s.%(format_num)s.%(ext)s' would,
unmistakenly, solve such problems.

This is also helpful to know what format was effectively downloaded when a
user expected something else (like, for instance, in issue #1578 or many of
its duplicates).

Another application of this is in separate downloads of audio video (as in
issue #1612).

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
2013-10-18 18:30:57 -03:00
..
2013-08-28 12:47:38 +02:00
2013-07-03 16:36:36 +02:00
2013-06-27 20:46:46 +02:00
2013-07-23 11:41:05 +02:00
2013-08-27 01:00:17 +05:00
2013-09-10 12:13:22 +02:00
2013-08-28 10:20:37 +02:00
2013-10-18 00:49:45 +02:00
2013-07-17 14:39:02 +02:00
2013-09-03 12:03:19 +02:00
2013-09-14 14:45:04 +02:00
2013-06-27 20:22:00 +02:00
2013-10-04 07:47:40 +02:00
2013-07-15 21:33:45 +02:00
2013-06-27 20:46:46 +02:00
2013-07-25 09:52:58 +02:00
2013-06-27 20:32:02 +02:00
2013-06-25 22:04:44 +02:00
2013-06-27 20:46:46 +02:00
2013-09-06 18:08:07 +02:00
2013-08-28 14:24:42 -05:00
2013-10-10 19:53:44 +02:00
2013-06-27 20:46:46 +02:00
2013-09-18 22:14:43 +02:00
2013-10-12 13:11:03 -04:00
2013-06-27 20:46:46 +02:00
2013-10-06 16:39:35 +02:00
2013-06-28 18:51:00 +02:00
2013-08-24 21:10:03 +02:00
2013-10-04 11:33:14 +02:00
2013-06-27 20:46:46 +02:00
2013-08-21 19:20:27 +02:00
2013-10-15 08:22:59 +02:00
2013-07-24 21:51:08 -05:00
2013-10-04 10:32:34 +02:00
2013-07-17 11:18:14 +02:00
2013-09-14 14:45:04 +02:00
2013-10-18 11:16:20 +02:00
2013-06-30 13:52:20 +02:00
2013-06-27 20:46:46 +02:00
2013-07-09 11:11:55 +02:00
2013-10-08 21:25:38 +02:00
2013-08-28 12:47:38 +02:00
2013-10-15 08:12:30 +02:00
2013-06-27 20:46:46 +02:00
2013-06-27 20:46:46 +02:00
2013-06-27 20:46:46 +02:00