Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
Increment version
Browse files Browse the repository at this point in the history
  • Loading branch information
taizan-hokuto committed Feb 28, 2020
1 parent b302454 commit 55a58f5
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 15 deletions.
2 changes: 1 addition & 1 deletion pytchat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pytchat is a python library for fetching youtube live chat without using yt api, Selenium, or BeautifulSoup.
"""
__copyright__ = 'Copyright (C) 2019 taizan-hokuto'
__version__ = '0.0.5.3'
__version__ = '0.0.6.1'
__license__ = 'MIT'
__author__ = 'taizan-hokuto'
__author_email__ = '55448286+taizan-hokuto@users.noreply.github.com'
Expand Down
2 changes: 1 addition & 1 deletion pytchat/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
headers = {
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36'}

def logger(module_name: str, loglevel = logging.DEBUG):
def logger(module_name: str, loglevel = None):
module_logger = mylogger.get_logger(module_name, loglevel = loglevel)
return module_logger

Expand Down
Empty file.
2 changes: 1 addition & 1 deletion pytchat/tool/extract/extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
headers=config.headers

class Extractor:
def __init__(self, video_id, div, callback = None, processor = None):
def __init__(self, video_id, div = 1, callback = None, processor = None):
if not isinstance(div ,int) or div < 1:
raise ValueError('div must be positive integer.')
elif div > 10:
Expand Down
1 change: 0 additions & 1 deletion pytchat/tool/videoinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ def get_duration(self):
return None

def get_title(self):
print(self._renderer)
if self._renderer.get("title"):
return [''.join(run["text"])
for run in self._renderer["title"]["runs"]][0]
Expand Down
12 changes: 1 addition & 11 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,6 @@ def _test_requirements():
for name in open(path.join(
root_dir, 'requirements_test.txt')).readlines()]

txt= ''
with open('README.MD', 'r', encoding='utf-8') as f:
txt = f.read()

with open('README1.MD', 'w', encoding='utf-8', newline='\n') as f:
f.write(txt)

remove("README.MD")
rename("README1.MD","README.MD")

with open(path.join(root_dir, package_name, '__init__.py')) as f:
init_text = f.read()
version = re.search(
Expand Down Expand Up @@ -55,7 +45,7 @@ def _test_requirements():

setup(
name=package_name,
packages=find_packages(exclude=['*log.txt','*tests']),
packages=find_packages(exclude=['*log.txt','*tests','*testrun']),
version=version,
url=url,
author=author,
Expand Down

0 comments on commit 55a58f5

Please sign in to comment.