Repository: pymedusa/Medusa

Issue:
[APP SUBMITTED]: ValueError: hour must be in 0..23
### INFO
**Python Version**: `2.7.9 (default, Sep 17 2016, 20:26:04) [GCC 4.9.2]`
**Operating System**: `Linux-4.4.38-v7+-armv7l-with-debian-8.0`
**Locale**: `UTF-8`
**Branch**: [develop](../tree/develop)
**Database**: `44.8`
**Commit**: pymedusa/Medusa@94e0649919e9e05ac380f8e6d3817c18255931ee
**Link to Log**: https://gist.github.com/31ec35e671692a5cc7ba13b4d2d07353
### ERROR
<pre>
2017-05-30 15:24:07 ERROR    SEARCHQUEUE-BACKLOG-75340 :: [TorrentProject] :: [94e0649] Failed parsing publishing date: 24 hours ago
Traceback (most recent call last):
  File "/home/pi/Medusa/<a href="../blob/94e0649919e9e05ac380f8e6d3817c18255931ee/medusa/providers/generic_provider.py#L512">medusa/providers/generic_provider.py</a>", line 512, in parse_pubdate
    dt = parser.parse(pubdate, fuzzy=True)
  File "/home/pi/Medusa/<a href="../blob/94e0649919e9e05ac380f8e6d3817c18255931ee/lib/dateutil/parser.py#L1181">lib/dateutil/parser.py</a>", line 1181, in parse
    return DEFAULTPARSER.parse(timestr, **kwargs)
  File "/home/pi/Medusa/<a href="../blob/94e0649919e9e05ac380f8e6d3817c18255931ee/lib/dateutil/parser.py#L584">lib/dateutil/parser.py</a>", line 584, in parse
    ret = default.replace(**repl)
ValueError: hour must be in 0..23
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


Discussion:
This should be parsed as a human date. But it isn't. 
### INFO
**Python Version**: `2.7.9 (default, Sep 17 2016, 20:26:04) [GCC 4.9.2]`
**Operating System**: `Linux-4.4.38-v7+-armv7l-with-debian-8.0`
**Locale**: `UTF-8`
**Branch**: [develop](../tree/develop)
**Database**: `44.8`
**Commit**: pymedusa/Medusa@94e0649919e9e05ac380f8e6d3817c18255931ee
**Link to Log**: https://gist.github.com/1a98659b4b7976f8b435df58c185f222
### ERROR
<pre>
2017-06-01 06:15:29 ERROR    FINDPROPERS :: [TorrentProject] :: [94e0649] Failed parsing publishing date: 24 hours ago
Traceback (most recent call last):
  File "/home/pi/Medusa/<a href="../blob/94e0649919e9e05ac380f8e6d3817c18255931ee/medusa/providers/generic_provider.py#L512">medusa/providers/generic_provider.py</a>", line 512, in parse_pubdate
    dt = parser.parse(pubdate, fuzzy=True)
  File "/home/pi/Medusa/<a href="../blob/94e0649919e9e05ac380f8e6d3817c18255931ee/lib/dateutil/parser.py#L1181">lib/dateutil/parser.py</a>", line 1181, in parse
    return DEFAULTPARSER.parse(timestr, **kwargs)
  File "/home/pi/Medusa/<a href="../blob/94e0649919e9e05ac380f8e6d3817c18255931ee/lib/dateutil/parser.py#L584">lib/dateutil/parser.py</a>", line 584, in parse
    ret = default.replace(**repl)
ValueError: hour must be in 0..23
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators

Resolving patch:
diff --git a/medusa/providers/torrent/html/torrentproject.py b/medusa/providers/torrent/html/torrentproject.py
--- a/medusa/providers/torrent/html/torrentproject.py
+++ b/medusa/providers/torrent/html/torrentproject.py
@@ -144,7 +144,7 @@ def parse(self, data, mode):
                     size = convert_size(torrent_size) or -1
 
                     pubdate_raw = row.find('span', class_='bc cated').get_text(strip=True)
-                    pubdate = self.parse_pubdate(pubdate_raw)
+                    pubdate = self.parse_pubdate(pubdate_raw, human_time=True)
 
                     item = {
                         'title': title,


Test patch: