Skip to content

Commit

Permalink
Fix pubdate should have the date parsed with the day first (#6847)
Browse files Browse the repository at this point in the history
* Fix pubdate should have the date parsed with the day first.

* update changelog
  • Loading branch information
p0psicles authored and medariox committed Jun 17, 2019
1 parent aa24e5e commit b63b556
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Converted the footer to a Vue component ([#4520](https://github.com/pymedusa/Medusa/pull/4520))

#### Fixes
- Fixed hdtorrent provider parse the publishing date with the day first ([#6847](https://github.com/pymedusa/Medusa/pull/6847))

-----

Expand Down
2 changes: 1 addition & 1 deletion medusa/providers/torrent/html/hdtorrents.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def parse(self, data, mode):
size = convert_size(torrent_size, units=units) or -1

pubdate_raw = cells[labels.index('Added')].get_text()
pubdate = self.parse_pubdate(pubdate_raw)
pubdate = self.parse_pubdate(pubdate_raw, dayfirst=True)

item = {
'title': title,
Expand Down

0 comments on commit b63b556

Please sign in to comment.