Commit 45b85fdf authored by Lysander Trischler's avatar Lysander Trischler

Recognize illegal youtube IDs before uploading

parent becbd1ed
......@@ -205,6 +205,7 @@ def gen_atom(max=None):
atom.write('</feed>\n')
def upload(video_id):
video_id = Video.extract_video_id(video_id)
cmd = "ssh " + CONFIG.get("ssh", "user", "lyse") \
+ "@" + CONFIG.get("ssh", "host", "isobeef.org") \
+ " '" + CONFIG.get("ssh", "yfav", "~/bin/yfav") \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment