Nick Ficano
commited on
Commit
·
5f3c689
1
Parent(s):
63f603f
these should really be immutable
Browse files- pytube/api.py +11 -11
pytube/api.py
CHANGED
@@ -23,23 +23,23 @@ log = logging.getLogger(__name__)
|
|
23 |
# YouTube quality and codecs id map.
|
24 |
YT_QUALITY_PROFILES = {
|
25 |
# flash
|
26 |
-
5:
|
27 |
|
28 |
# 3gp
|
29 |
-
17:
|
30 |
-
36:
|
31 |
|
32 |
# webm
|
33 |
-
43:
|
34 |
-
100:
|
35 |
|
36 |
# mpeg4
|
37 |
-
18:
|
38 |
-
22:
|
39 |
-
82:
|
40 |
-
83:
|
41 |
-
84:
|
42 |
-
85:
|
43 |
}
|
44 |
|
45 |
# The keys corresponding to the quality/codec map above.
|
|
|
23 |
# YouTube quality and codecs id map.
|
24 |
YT_QUALITY_PROFILES = {
|
25 |
# flash
|
26 |
+
5: ("flv", "240p", "Sorenson H.263", "N/A", "0.25", "MP3", "64"),
|
27 |
|
28 |
# 3gp
|
29 |
+
17: ("3gp", "144p", "MPEG-4 Visual", "Simple", "0.05", "AAC", "24"),
|
30 |
+
36: ("3gp", "240p", "MPEG-4 Visual", "Simple", "0.17", "AAC", "38"),
|
31 |
|
32 |
# webm
|
33 |
+
43: ("webm", "360p", "VP8", "N/A", "0.5", "Vorbis", "128"),
|
34 |
+
100: ("webm", "360p", "VP8", "3D", "N/A", "Vorbis", "128"),
|
35 |
|
36 |
# mpeg4
|
37 |
+
18: ("mp4", "360p", "H.264", "Baseline", "0.5", "AAC", "96"),
|
38 |
+
22: ("mp4", "720p", "H.264", "High", "2-2.9", "AAC", "192"),
|
39 |
+
82: ("mp4", "360p", "H.264", "3D", "0.5", "AAC", "96"),
|
40 |
+
83: ("mp4", "240p", "H.264", "3D", "0.5", "AAC", "96"),
|
41 |
+
84: ("mp4", "720p", "H.264", "3D", "2-2.9", "AAC", "152"),
|
42 |
+
85: ("mp4", "1080p", "H.264", "3D", "2-2.9", "AAC", "152"),
|
43 |
}
|
44 |
|
45 |
# The keys corresponding to the quality/codec map above.
|