diff --git a/Dockerfile b/Dockerfile index fd697f4..d17e8a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,6 @@ FROM python:3.8-slim-buster WORKDIR /sportyfin -RUN pip install sportyfin==1.0.5 --no-binary=sportyfin +RUN pip install sportyfin==1.0.6 --no-binary=sportyfin CMD [ "python3", "-m" , "sportyfin", "run", "-a", "-o", "/sportyfin/output"] diff --git a/setup.cfg b/setup.cfg index 9ba48e7..d542734 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,7 +1,7 @@ # https://github.com/axelmierczuk/sportyfin [metadata] name = sportyfin -version = 1.0.5 +version = 1.0.6 author = Axel Mierczuk author_email = axelmierczuk@gmail.com url = https://github.com/axelmierczuk/sportyfin diff --git a/setup.py b/setup.py index 810910b..7b89769 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='sportyfin', - version='1.0.5', + version='1.0.6', author='Axel Mierczuk', author_email='axelmierczuk@gmail.com', packages=['sportyfin', 'sportyfin.util'], diff --git a/sportyfin/sportyfin.py b/sportyfin/sportyfin.py index 8b79612..42e45f0 100644 --- a/sportyfin/sportyfin.py +++ b/sportyfin/sportyfin.py @@ -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.5") + print(f"{colours.OKGREEN} Version: 1.0.6") print(f"{colours.OKGREEN} Github: https://github.com/axelmierczuk/sportyfin") print() print() @@ -70,8 +70,8 @@ def generate_xmltv(self, lg: str): ET.SubElement(doc, "title", lang="en").text = match['match']['name'] ET.SubElement(doc, "category", lang="en").text = "sports" audio = ET.Element("audio") + doc.append(audio) ET.SubElement(audio, "stereo").text = "stereo" - ET.SubElement(doc, audio) ET.SubElement(doc, "icon", src=f"{OUTPUT}/{lg}/{match['match']['img_location'].split('/')[-1]}") tree = ET.ElementTree(root) outp = os.path.join(OUTPUT, f"docs")