Skip to content
This repository has been archived by the owner on Dec 27, 2024. It is now read-only.

Commit

Permalink
1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
axelmierczuk committed Jan 14, 2022
1 parent 3e12080 commit 9de1da5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ FROM python:3.8-slim-buster

WORKDIR /sportyfin

RUN pip install sportyfin==1.0.2 --no-binary=sportyfin
RUN pip install sportyfin==1.0.3 --no-binary=sportyfin

CMD [ "python3", "-m" , "sportyfin", "run", "-a", "-o", "/sportyfin/output"]
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# https://github.com/axelmierczuk/sportyfin
[metadata]
name = sportyfin
version = 1.0.2
version = 1.0.3
author = Axel Mierczuk
author_email = [email protected]
url = https://github.com/axelmierczuk/sportyfin
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='sportyfin',
version='1.0.2',
version='1.0.3',
author='Axel Mierczuk',
author_email='[email protected]',
packages=['sportyfin', 'sportyfin.util'],
Expand Down
2 changes: 1 addition & 1 deletion sportyfin/sportyfin.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def header():
print(f"{colours.OKGREEN} is used in Jellyfin to provide a great viewing experience.")
print()
print(f"{colours.OKGREEN} Author: Axel Mierczuk")
print(f"{colours.OKGREEN} Version: 1.0.2")
print(f"{colours.OKGREEN} Version: 1.0.3")
print(f"{colours.OKGREEN} Github: https://github.com/axelmierczuk/sportyfin")
print()
print()
Expand Down
5 changes: 3 additions & 2 deletions sportyfin/util/scraping.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,11 @@ def make_match(api_res, hosts, lg) -> list:
"name": g.get('name', ''),
"img_location": "",
"url": f"{hosts[0]}{host_id}{hosts[1]}",
"start": str(g['startTimestamp']),
"stop": str(int(g['startTimestamp']) + (3*3600))
"start": ''.join(g['formatedStartDate'].split('-')) + ''.join(g['startTime'].split(':')),
"stop": ''.join(g['formatedStartDate'].split('-')) + str(int(''.join(g['startTime'].split(':'))) + 300)
}
}
# YYYYMMDDhhmmss
if match['match']['name'] == '':
match['match']['name'] = f"{match['away_team']['name']} vs {match['home_team']['name']}"
match['match']['img_location'] = game_info.generate_img(match, lg)
Expand Down

0 comments on commit 9de1da5

Please sign in to comment.