This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| set /p SERVER=user@host: | |
| type %SystemDrive%%HomePath%\.ssh\id_rsa.pub | ssh %SERVER% "mkdir .ssh ; cat >> .ssh/authorized_keys" | |
| pause |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #替换youtube-dl/extractor/youtube.py的_get_automatic_captions函数 | |
| def _get_automatic_captions(self, video_id, webpage): | |
| """We need the webpage for getting the captions url, pass it as an | |
| argument to speed up the process.""" | |
| self.to_screen('%s: Looking for automatic captions' % video_id) | |
| err_msg = 'Couldn\'t find automatic captions for %s' % video_id | |
| pattern = r'var\s*ytInitialPlayerResponse\s*=\s*({.+?});' |