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

Commit

Permalink
1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
axelmierczuk committed Jan 14, 2022
1 parent a5e2849 commit 710f74a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 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.4 --no-binary=sportyfin
RUN pip install sportyfin==1.0.5 --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.4
version = 1.0.5
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.4',
version='1.0.5',
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.4")
print(f"{colours.OKGREEN} Version: 1.0.5")
print(f"{colours.OKGREEN} Github: https://github.com/axelmierczuk/sportyfin")
print()
print()
Expand Down
10 changes: 7 additions & 3 deletions sportyfin/util/scraping.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,15 @@ def make_match(api_res, hosts, lg) -> list:
"name": g.get('name', ''),
"img_location": "",
"url": f"{hosts[0]}{host_id}{hosts[1]}",
"start": ''.join(g['formatedStartDate'].split('-')) + ''.join(g['startTime'].split(':')) + " GMT",
"stop": ''.join(g['formatedStartDate'].split('-')) + str(int(''.join(g['startTime'].split(':'))) + 300) + " GMT"
"start": "",
"stop": ""
}
}
# YYYYMMDDhhmmss
try:
match['match']['start'] = ''.join(g['formatedStartDate'].split('-')) + ''.join(g['startTime'].split(':')) + " GMT"
match['match']['stop'] = ''.join(g['formatedStartDate'].split('-')) + str(int(''.join(g['startTime'].split(':'))) + 300) + " GMT"
except:
pass
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 710f74a

Please sign in to comment.