Add a connection with musik.p0m.fr
Fix parse error when parsing dates in 42.xml Increase stability with try/expect
This commit is contained in:
parent
ada5b0eeeb
commit
448b455e77
6 changed files with 78 additions and 6 deletions
|
@ -10,6 +10,7 @@ from xml.dom.minidom import parseString
|
|||
from xml.dom.minidom import getDOMImplementation
|
||||
|
||||
import atom
|
||||
import youtube
|
||||
|
||||
filename = ""
|
||||
SITES = []
|
||||
|
@ -67,6 +68,9 @@ def treat_atom (lastpage, content, message):
|
|||
else:
|
||||
messageI = message % ("quel est ce nouveau fichier", "%s")
|
||||
send_global (messageI % unquote (d.link))
|
||||
elif f.id == "http://musik.p0m.fr/atom.php?nemubot":
|
||||
for d in diff:
|
||||
youtube.send_global (d.link2, message % (d.title, unquote (d.link)))
|
||||
elif message.find ("%s") >= 0:
|
||||
for d in diff:
|
||||
send_global (message % unquote (d.link))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue