added support for captions
Browse files- pytube/__main__.py +1 -1
- pytube/captions.py +1 -0
- setup.cfg +2 -3
pytube/__main__.py
CHANGED
@@ -12,10 +12,10 @@ from __future__ import absolute_import
|
|
12 |
import json
|
13 |
import logging
|
14 |
|
|
|
15 |
from pytube import extract
|
16 |
from pytube import mixins
|
17 |
from pytube import request
|
18 |
-
from pytube import Caption
|
19 |
from pytube import Stream
|
20 |
from pytube import StreamQuery
|
21 |
from pytube.compat import parse_qsl
|
|
|
12 |
import json
|
13 |
import logging
|
14 |
|
15 |
+
from pytube import Caption
|
16 |
from pytube import extract
|
17 |
from pytube import mixins
|
18 |
from pytube import request
|
|
|
19 |
from pytube import Stream
|
20 |
from pytube import StreamQuery
|
21 |
from pytube.compat import parse_qsl
|
pytube/captions.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
class Caption:
|
2 |
def __init__(self, caption_track):
|
3 |
self.url = caption_track.get('baseUrl')
|
|
|
1 |
+
# -*- coding: utf-8 -*-
|
2 |
class Caption:
|
3 |
def __init__(self, caption_track):
|
4 |
self.url = caption_track.get('baseUrl')
|
setup.cfg
CHANGED
@@ -3,7 +3,7 @@ commit = True
|
|
3 |
tag = True
|
4 |
current_version = 7.0.9
|
5 |
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+))?
|
6 |
-
serialize =
|
7 |
{major}.{minor}.{patch}
|
8 |
|
9 |
[metadata]
|
@@ -15,6 +15,5 @@ description-file = README.md
|
|
15 |
|
16 |
[coverage:run]
|
17 |
source = pytube
|
18 |
-
omit =
|
19 |
pytube/compat.py
|
20 |
-
|
|
|
3 |
tag = True
|
4 |
current_version = 7.0.9
|
5 |
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+))?
|
6 |
+
serialize =
|
7 |
{major}.{minor}.{patch}
|
8 |
|
9 |
[metadata]
|
|
|
15 |
|
16 |
[coverage:run]
|
17 |
source = pytube
|
18 |
+
omit =
|
19 |
pytube/compat.py
|
|