Skip to content

Commit

Permalink
Release 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tsifrer committed Feb 6, 2018
1 parent 99735a8 commit 74026ce
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
5 changes: 2 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# Changelog

## master

In development
## Version 0.5.0 - 2018-02-06

- TODO
- Added VOD download support


## Version 0.4.0 - 2017-11-17
Expand Down
2 changes: 1 addition & 1 deletion twitch/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from .client import TwitchClient # noqa

__version__ = '0.4.0'
__version__ = '0.5.0'
2 changes: 1 addition & 1 deletion twitch/api/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def _get_request_headers(self):

return headers

def _request_get(self, path, params=None, json=True, url=BASE_URL,):
def _request_get(self, path, params=None, json=True, url=BASE_URL):
url = urljoin(url, path)
headers = self._get_request_headers()

Expand Down
7 changes: 4 additions & 3 deletions twitch/api/videos.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from twitch.api.base import TwitchAPI
from twitch.constants import BROADCAST_TYPES, BROADCAST_TYPE_HIGHLIGHT, \
PERIODS, PERIOD_WEEK, VOD_FETCH_URL
from twitch.constants import (
BROADCAST_TYPES, BROADCAST_TYPE_HIGHLIGHT, PERIODS, PERIOD_WEEK, VOD_FETCH_URL
)
from twitch.decorators import oauth_required
from twitch.exceptions import TwitchAttributeException
from twitch.resources import Video
Expand Down Expand Up @@ -29,7 +30,7 @@ def get_top(self, limit=10, offset=0, game=None, period=PERIOD_WEEK,
'offset': offset,
'game': game,
'period': period,
'broadcast_type': ",".join(broadcast_type)
'broadcast_type': ','.join(broadcast_type)
}

response = self._request_get('videos/top', params=params)
Expand Down

0 comments on commit 74026ce

Please sign in to comment.