forked from indymedia/epicyon
Debug
parent
f42c23d69f
commit
8b7b9d5660
16
newswire.py
16
newswire.py
|
@ -223,7 +223,7 @@ def xml2StrToDict(baseDir: str, domain: str, xmlStr: str,
|
||||||
break
|
break
|
||||||
parsed = True
|
parsed = True
|
||||||
except BaseException:
|
except BaseException:
|
||||||
print('WARN: unrecognized RSS date format 1: ' + pubDate)
|
print('WARN: unrecognized RSS date format EST: ' + pubDate)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if not parsed:
|
if not parsed:
|
||||||
|
@ -243,7 +243,7 @@ def xml2StrToDict(baseDir: str, domain: str, xmlStr: str,
|
||||||
break
|
break
|
||||||
parsed = True
|
parsed = True
|
||||||
except BaseException:
|
except BaseException:
|
||||||
print('WARN: unrecognized RSS date format 2: ' + pubDate)
|
print('WARN: unrecognized RSS date format UT: ' + pubDate)
|
||||||
pass
|
pass
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
@ -315,6 +315,7 @@ def atomFeedToDict(baseDir: str, domain: str, xmlStr: str,
|
||||||
break
|
break
|
||||||
parsed = True
|
parsed = True
|
||||||
except BaseException:
|
except BaseException:
|
||||||
|
print('WARN: unrecognized atom date format UT: ' + pubDate)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if not parsed:
|
if not parsed:
|
||||||
|
@ -333,7 +334,7 @@ def atomFeedToDict(baseDir: str, domain: str, xmlStr: str,
|
||||||
break
|
break
|
||||||
parsed = True
|
parsed = True
|
||||||
except BaseException:
|
except BaseException:
|
||||||
print('WARN: unrecognized atom feed date format 1: ' + pubDate)
|
print('WARN: unrecognized atom feed date format z: ' + pubDate)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if not parsed:
|
if not parsed:
|
||||||
|
@ -355,7 +356,7 @@ def atomFeedToDict(baseDir: str, domain: str, xmlStr: str,
|
||||||
break
|
break
|
||||||
parsed = True
|
parsed = True
|
||||||
except BaseException:
|
except BaseException:
|
||||||
print('WARN: unrecognized RSS date format 3: ' + pubDate)
|
print('WARN: unrecognized RSS date format EST: ' + pubDate)
|
||||||
pass
|
pass
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
@ -424,7 +425,7 @@ def atomFeedYTToDict(baseDir: str, domain: str, xmlStr: str,
|
||||||
break
|
break
|
||||||
parsed = True
|
parsed = True
|
||||||
except BaseException:
|
except BaseException:
|
||||||
print('YouTube feed: failed to parse published date ' + pubDate)
|
print('WARN: unrecognized YT atom date format UT: ' + pubDate)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if not parsed:
|
if not parsed:
|
||||||
|
@ -443,7 +444,8 @@ def atomFeedYTToDict(baseDir: str, domain: str, xmlStr: str,
|
||||||
break
|
break
|
||||||
parsed = True
|
parsed = True
|
||||||
except BaseException:
|
except BaseException:
|
||||||
print('WARN: unrecognized atom feed date format 2: ' + pubDate)
|
print('WARN: unrecognized YT atom feed date format z: ' +
|
||||||
|
pubDate)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if not parsed:
|
if not parsed:
|
||||||
|
@ -462,7 +464,7 @@ def atomFeedYTToDict(baseDir: str, domain: str, xmlStr: str,
|
||||||
break
|
break
|
||||||
parsed = True
|
parsed = True
|
||||||
except BaseException:
|
except BaseException:
|
||||||
print('YouTube feed: failed to parse published date ' +
|
print('WARN: unrecognized YT atom feed date format UT: ' +
|
||||||
pubDate)
|
pubDate)
|
||||||
pass
|
pass
|
||||||
return result
|
return result
|
||||||
|
|
Loading…
Reference in New Issue