Merge branch 'master' into use-other-downloaders

This commit is contained in:
Rogério Brito 2013-10-18 19:34:16 -03:00
commit 846f4764af
6 changed files with 26 additions and 19 deletions

View File

@ -21,6 +21,8 @@ which means you can modify it, redistribute it or use it however you like.
sudo if needed) sudo if needed)
-i, --ignore-errors continue on download errors, for example to to -i, --ignore-errors continue on download errors, for example to to
skip unavailable videos in a playlist skip unavailable videos in a playlist
--abort-on-error Abort downloading of further videos (in the
playlist or the command line) if an error occurs
--dump-user-agent display the current browser identification --dump-user-agent display the current browser identification
--user-agent UA specify a custom user agent --user-agent UA specify a custom user agent
--referer REF specify a custom referer, use if the video access --referer REF specify a custom referer, use if the video access
@ -30,7 +32,7 @@ which means you can modify it, redistribute it or use it however you like.
--extractor-descriptions Output descriptions of all supported extractors --extractor-descriptions Output descriptions of all supported extractors
--proxy URL Use the specified HTTP/HTTPS proxy --proxy URL Use the specified HTTP/HTTPS proxy
--no-check-certificate Suppress HTTPS certificate validation. --no-check-certificate Suppress HTTPS certificate validation.
--cache-dir None Location in the filesystem where youtube-dl can --cache-dir DIR Location in the filesystem where youtube-dl can
store downloaded information permanently. By store downloaded information permanently. By
default $XDG_CACHE_HOME/youtube-dl or ~/.cache default $XDG_CACHE_HOME/youtube-dl or ~/.cache
/youtube-dl . /youtube-dl .
@ -76,15 +78,17 @@ which means you can modify it, redistribute it or use it however you like.
%(uploader_id)s for the uploader nickname if %(uploader_id)s for the uploader nickname if
different, %(autonumber)s to get an automatically different, %(autonumber)s to get an automatically
incremented number, %(ext)s for the filename incremented number, %(ext)s for the filename
extension, %(upload_date)s for the upload date extension, %(format)s for the format description
(YYYYMMDD), %(extractor)s for the provider (like "22 - 1280x720" or "HD")%(upload_date)s for
(youtube, metacafe, etc), %(id)s for the video id the upload date (YYYYMMDD), %(extractor)s for the
, %(playlist)s for the playlist the video is in, provider (youtube, metacafe, etc), %(id)s for the
%(playlist_index)s for the position in the video id , %(playlist)s for the playlist the
playlist and %% for a literal percent. Use - to video is in, %(playlist_index)s for the position
output to stdout. Can also be used to download to in the playlist and %% for a literal percent. Use
a different directory, for example with -o '/my/d - to output to stdout. Can also be used to
ownloads/%(uploader)s/%(title)s-%(id)s.%(ext)s' . download to a different directory, for example
with -o '/my/downloads/%(uploader)s/%(title)s-%(i
d)s.%(ext)s' .
--autonumber-size NUMBER Specifies the number of digits in %(autonumber)s --autonumber-size NUMBER Specifies the number of digits in %(autonumber)s
when it is present in output filename template or when it is present in output filename template or
--autonumber option is given --autonumber option is given

View File

@ -1,4 +1,4 @@
__youtube-dl() __youtube_dl()
{ {
local cur prev opts local cur prev opts
COMPREPLY=() COMPREPLY=()
@ -15,4 +15,4 @@ __youtube-dl()
fi fi
} }
complete -F __youtube-dl youtube-dl complete -F __youtube_dl youtube-dl

View File

@ -88,10 +88,6 @@ ROOT=$(pwd)
"$ROOT/devscripts/gh-pages/update-sites.py" "$ROOT/devscripts/gh-pages/update-sites.py"
git add *.html *.html.in update git add *.html *.html.in update
git commit -m "release $version" git commit -m "release $version"
git show HEAD
read -p "Is it good, can I push? (y/n) " -n 1
if [[ ! $REPLY =~ ^[Yy]$ ]]; then exit 1; fi
echo
git push "$ROOT" gh-pages git push "$ROOT" gh-pages
git push "$ORIGIN_URL" gh-pages git push "$ORIGIN_URL" gh-pages
) )

View File

@ -179,6 +179,9 @@ def parseOpts(overrideArguments=None):
action='store_true', dest='update_self', help='update this program to latest version. Make sure that you have sufficient permissions (run with sudo if needed)') action='store_true', dest='update_self', help='update this program to latest version. Make sure that you have sufficient permissions (run with sudo if needed)')
general.add_option('-i', '--ignore-errors', general.add_option('-i', '--ignore-errors',
action='store_true', dest='ignoreerrors', help='continue on download errors, for example to to skip unavailable videos in a playlist', default=False) action='store_true', dest='ignoreerrors', help='continue on download errors, for example to to skip unavailable videos in a playlist', default=False)
general.add_option('--abort-on-error',
action='store_false', dest='ignoreerrors',
help='Abort downloading of further videos (in the playlist or the command line) if an error occurs')
general.add_option('--dump-user-agent', general.add_option('--dump-user-agent',
action='store_true', dest='dump_user_agent', action='store_true', dest='dump_user_agent',
help='display the current browser identification', default=False) help='display the current browser identification', default=False)
@ -332,7 +335,9 @@ def parseOpts(overrideArguments=None):
help=('output filename template. Use %(title)s to get the title, ' help=('output filename template. Use %(title)s to get the title, '
'%(uploader)s for the uploader name, %(uploader_id)s for the uploader nickname if different, ' '%(uploader)s for the uploader name, %(uploader_id)s for the uploader nickname if different, '
'%(autonumber)s to get an automatically incremented number, ' '%(autonumber)s to get an automatically incremented number, '
'%(ext)s for the filename extension, %(upload_date)s for the upload date (YYYYMMDD), ' '%(ext)s for the filename extension, '
'%(format)s for the format description (like "22 - 1280x720" or "HD")'
'%(upload_date)s for the upload date (YYYYMMDD), '
'%(extractor)s for the provider (youtube, metacafe, etc), ' '%(extractor)s for the provider (youtube, metacafe, etc), '
'%(id)s for the video id , %(playlist)s for the playlist the video is in, ' '%(id)s for the video id , %(playlist)s for the playlist the video is in, '
'%(playlist_index)s for the position in the playlist and %% for a literal percent. ' '%(playlist_index)s for the position in the playlist and %% for a literal percent. '

View File

@ -18,7 +18,8 @@ class XNXXIE(InfoExtractor):
u'file': u'1135332.flv', u'file': u'1135332.flv',
u'md5': u'0831677e2b4761795f68d417e0b7b445', u'md5': u'0831677e2b4761795f68d417e0b7b445',
u'info_dict': { u'info_dict': {
u"title": u"lida \u00bb Naked Funny Actress (5)" u"title": u"lida \u00bb Naked Funny Actress (5)",
u"age_limit": 18,
} }
} }
@ -50,4 +51,5 @@ class XNXXIE(InfoExtractor):
'ext': 'flv', 'ext': 'flv',
'thumbnail': video_thumbnail, 'thumbnail': video_thumbnail,
'description': None, 'description': None,
'age_limit': 18,
}] }]

View File

@ -1,2 +1,2 @@
__version__ = '2013.10.18.1' __version__ = '2013.10.18.2'