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.
'%(uri)s' as part of --output TEMPLATE options ... #414
Comments
|
for example, both lessons are (exactly) called "Cognitive Science C103 - Lecture 15" ... |
|
I didn't mean to "close" the issue, but the window ;-) |
|
I know if you go $ youtube-dl --verbose http://www.youtube.com/watch?v=sA9fazTAOyE you will get (as I want) the file name as the youtube URI (the "sA9fazTAOyE" part) and the extension of the downloaded file, but given a list of youtube URLs (which "user(s)" I have no way of knowing before hand), I am trying to download each othe files to a folder named after the youtube uploader/user as named in: youtube.com/user/... $ date $ cat ${_OFL} |
|
why don’t you just use |
|
On 11/27/12, Chronial notifications@github.com wrote:
$ ls -l d020hcWA_Wg.mp4 $ ffprobe d020hcWA_Wg.mp4 |
|
nope, always been there |
$ cat yt_urls.txt $ find . -type f -printf "%p %s %As\n" |
|
@phihag according to the OP, this has been resolved. close? |
|
@codesparkle Thank you very much for your diligent work! Yes, this has been solved. Either use |
I keep an updated local cache of some videos on youtube (to use them in classes)
~
I have noticed that youtube users are able to edit their video titles (as the free text entry it is) so sometimes I have mistakenly dowloaded what is exactly the same video
~
The only way I see around that problem is to use the URI (the 11 Base64(?) characters) and download the description as well via "--write-description", but as part of the --output TEMPLATE options I don't see something like '%(uri)s'
~
Of course, you could use a script and parse that piece of text, but restarting a youtube process for each uri is a waste
~
How do you work around this problem? Or could you include such an option?
~
thanks
lbrtchx
github.com/rg3/youtube-dl/:
~
// __ exact command line:
export _ODIR="/media/sda1/yt"
export _IFL="/media/sda1/yturls.txt"
export _DT=
date +%Y%m%d%H%M%Sdate
youtube-dl --verbose --no-overwrites --continue --no-progress --console-title --prefer-free-formats --audio-format best --max-quality mp4 --write-description -o --cookies cookies_jar.txt "${_ODIR}/"'%(uploader)s'"/"'%(stitle)s'.'%(ext)s' --batch-file "${_IFL}" >> "${_ODIR}/"${_DT}_yt.log.txt 2>&1
date
~
$ youtube-dl --version
2012.02.27
~
$ python --version
Python 2.7.3rc2
~
// __ Operating System
$ uname -a
Linux Microknoppix 3.3.7 #38 SMP PREEMPT Tue May 22 06:21:01 CEST 2012 i686 GNU/Linux