-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 7.0.0: (61 commits) updated readme, added orderby removed progressive/adaptive from yt class updated readme fixed cli logging updated readme updated readme updated readme updated readme expanded cli fixed tests docstring + travis added unit tests pydocstyle tweaks to logging EOF polishing freeze support downcase exceptions and such docs ...
- Loading branch information
Showing
34 changed files
with
1,735 additions
and
11,312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,3 +29,5 @@ doc/aws_hostname.1 | |
|
||
.coverage | ||
.cache | ||
_run.py | ||
_devfiles/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,29 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
# flake8: noqa | ||
# noreorder | ||
""" | ||
Pytube is a Python library for downloading YouTube Videos. | ||
Pytube aims to be lightweight, dependency-free, extensively documented and | ||
follows best practice patterns. | ||
""" | ||
__title__ = 'pytube' | ||
__version__ = '6.4.3' | ||
__author__ = 'Nick Ficano' | ||
__license__ = 'MIT License' | ||
__copyright__ = 'Copyright 2017 Nick Ficano' | ||
|
||
from .api import YouTube | ||
from multiprocessing import freeze_support | ||
|
||
from pytube.logging import create_logger | ||
from pytube.query import StreamQuery | ||
from pytube.streams import Stream | ||
from pytube.__main__ import YouTube | ||
|
||
# Set default logging handler to avoid "No handler found" warnings. | ||
import logging | ||
try: # Python 2.7+ | ||
from logging import NullHandler | ||
except ImportError: | ||
class NullHandler(logging.Handler): | ||
def emit(self, record): | ||
pass | ||
logger = create_logger() | ||
logger.info('%s v%s', __title__, __version__) | ||
|
||
logging.getLogger(__name__).addHandler(NullHandler()) | ||
# Workaround for multiprocessing support on Windows. | ||
# https://github.com/nficano/pytube/issues/158 | ||
freeze_support() |
Oops, something went wrong.