Skip to content

Commit

Permalink
Changed Parse method, bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
Emersont1 committed May 1, 2022
1 parent cc3ea64 commit c28789f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion hstp/episode.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
from datetime import datetime
from dateutil import parser
from mutagen.mp3 import MP3

from .utils import is_slug
Expand All @@ -16,7 +17,7 @@ def load(cls, info, data, path):
name=data["name"],
slug=data["slug"],
description=data["description"],
date=datetime.strptime(data["date"], "%Y-%m-%dT%H:%M:%S"),
date=parser.isoparse(data["date"]),
file=f"{path}/{data['slug']}.mp3",
thumb=f"{path}/{data['slug']}.jpg"
)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "hstp"
version = "2.1.1"
version = "2.1.2"
description = "hstp build"
authors = ["University Radio Nottingham <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit c28789f

Please sign in to comment.