@@ -0,0 +1,914 @@
+def main():%0A    %22%22%22%0A    Requires youtube uploader script from%0A    https://github.com/tokland/youtube-upload%0A    %22%22%22%0A%0A    from subprocess import Popen, PIPE%0A    import glob%0A    from sh import git%0A%0A    yt_ids = %5B%5D%0A    for fname in glob.glob('*.webm'):%0A        title = fname.replace('.webm','').replace('_',' ')%0A        command = 'youtube-upload --title=%22'+title+'%22 '+fname%0A        p = Popen(command,stdout=PIPE,shell=True)%0A        out = p.communicate()%0A        yt_ids.append(str(out%5B0%5D.rstrip()).replace(%22b'%22,'').replace(%22'%22,''))%0A    readme_content = '# White dwarf nova%5Cn'%0A    for idd in yt_ids:%0A        readme_content += '%5B!%5BIMAGE ALT TEXT HERE%5D(http://img.youtube.com/vi/'+idd+'/0.jpg)%5D(http://www.youtube.com/watch?v='+idd+')%5Cn'%0A    with open('README.md','w') as f:%0A        f.write(readme_content)%0A    git.add('README.md')%0A    git.commit(m='update videos')%0A    git.push()%0A%0Aif __name__ == '__main__':%0A%0A    main()%0A

create file to automatically upload videos to youtube