1
0
Fork 0

wordpress-xmlrpc: use video.google.com instead of .es

This commit is contained in:
Aleix Conchillo Flaque 2010-12-23 15:50:27 +01:00 committed by Andy Wingo
parent 199ad57615
commit 0dee43b2a0

View file

@ -82,7 +82,7 @@ def html_media_object(service, media_id):
def analyze_media(content): def analyze_media(content):
p_youtube = re.compile(r"\[youtube=http://www\.youtube\.com/watch\?v=(.+)\]") p_youtube = re.compile(r"\[youtube=http://www\.youtube\.com/watch\?v=(.+)\]")
p_googlevideo = re.compile(r"\[googlevideo=http://video\.google\.es/videoplay\?docid=(.+)\]") p_googlevideo = re.compile(r"\[googlevideo=http://video\.google\.com/videoplay\?docid=(.+)\]")
lines = content.split("\n") lines = content.split("\n")
new_lines = [] new_lines = []
for line in lines: for line in lines: