Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
upload_date appears not to work #102
Comments
|
I'm very much a python noobie so I'm kinda stumbling around in the dark here, but this is what I've found so far. It looks like the upload date section of the code is searching for: An example from a video page is: I worry about wildcards being greedy and gobbling up the longest possible string so I replaced the ".*" wildcards with "[^<]+" which only matches up til the next "<" character. The other thing I noticed is that the string "eow-date" doesn't always end there (as in my example above which is "eow-date-short", so I dropped the second double-quote. Now it works! Yay! |
Downloading a video with
-o '%(upload_date)s'
in the options produces a video name with 'NA' where the uploader date should be.
I'm using youtube-dl v 2011.02.25c
on Linux kernel 2.6.33.2 with python 2.6
(By the way, I love this program. Kudos to you Ricardo.)