You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
'id="eow-date".?>(.?)'
The regular expression is given as re.DOTALL so wildcards match newlines too.
An example from a video page is:
Apr 6, 2011
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.
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.)
The text was updated successfully, but these errors were encountered: