<div dir="ltr"><div dir="ltr">On Wed, Jun 12, 2019 at 7:45 PM Akkana Peck <<a href="mailto:akkana@shallowsky.com">akkana@shallowsky.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I got a file that starts with #!/usr/bin/env python, but then the rest of it is binary data, not Python. "file" says it's Zip archive data, but unzip won't unpack it because of that Python line at the beginning.<br>
Verifying the signature seemed moot since the file wasn't usable.<br></blockquote><div> </div><div>It's "pickled". Pickle is Python's own compression algorithm. If you just `python ./ytdl.py` it will know what to do.<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
It's a little more complicated. If you git clone, then you also have to install the package somehow.<br></blockquote><div> </div><div>How often does one download YT videos? I just run it from the terminal in whatever working directory I want the file to end up, specifying the path to the script when I do so.<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Or wait a week or two and maybe your distro will update their youtube-dl package and you won't have to go through any of this.<br></blockquote><div><br></div><div>YTDL has a fast development cycle, and I think it'll be a while before even Debian Testing (which is what came with my laptop modulo branding) gets to what is now the latest version, which by then will be 'outdated'.<br>It is obviously no big deal to run an old version, unless that is you encounter buggy behaviour, since to report a bug to the devs (by the rules stated in `man youtubedl` anyway) you have to be running the latest stable version.<br><br></div><div>I don't think there are many "wrong" ways to use non-security-critical software, but some are easier than others.</div><div><br></div><div>Cheers,</div><div>—Arlo </div></div></div>