mirror of https://gitlab.com/bashrc2/epicyon
Handle more date format exotica
parent
8df259eff9
commit
b2c8420b3a
|
|
@ -305,6 +305,9 @@ def parse_feed_date(pub_date: str, unique_string_identifier: str) -> str:
|
||||||
':' + str(rand_min).zfill(2) + ':' + str(rand_sec).zfill(2)
|
':' + str(rand_min).zfill(2) + ':' + str(rand_sec).zfill(2)
|
||||||
pub_date = pub_date.replace(':00:00', replace_time_str)
|
pub_date = pub_date.replace(':00:00', replace_time_str)
|
||||||
|
|
||||||
|
if '&' in pub_date:
|
||||||
|
pub_date = pub_date.split('&')[0].strip()
|
||||||
|
|
||||||
formats = ("%a, %d %b %Y %H:%M:%S %z",
|
formats = ("%a, %d %b %Y %H:%M:%S %z",
|
||||||
"%a, %d %b %Y %H:%M:%S Z",
|
"%a, %d %b %Y %H:%M:%S Z",
|
||||||
"%a, %d %b %Y %H:%M:%S GMT",
|
"%a, %d %b %Y %H:%M:%S GMT",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue