Compare commits

...

152 Commits

Author SHA1 Message Date
c4105fa035 release 2012.02.26 2012-02-27 00:42:26 +01:00
871dbd3c92 Output RTMP command line if verbose is set 2012-02-27 00:41:53 +01:00
c9ed14e6d6 Move imports to top (Closes #283) 2012-02-26 23:53:56 +01:00
1ad85e5061 Set default continue behavior to true, no breakage observed in the wild 2012-02-26 23:44:32 +01:00
09fbc6c952 verbose flag, and output proxies if it is set 2012-02-26 23:33:19 +01:00
895ec266bb Merge pull request #292 from rbrito/fixes/vimeo-ie
VimeoIE: Allow matches taken from embedded videos.
2012-02-26 14:25:12 -08:00
d85448f3bb VimeoIE: Allow matches taken from embedded videos.
With this change, I can directly cut and paste URLs embedded in 3rd-party
pages as `youtube-dl`'s arguments.

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
2012-02-24 07:12:21 -02:00
99d46e8c27 Merge pull request #275 from grawity/winnt-unicode
Support Unicode in file names on Windows NT
2012-01-16 03:23:22 -08:00
4afdff39d7 Support Unicode in file names on Windows NT 2012-01-16 12:08:01 +02:00
661a807c65 Release 2012.01.08b 2012-01-08 17:23:10 +01:00
6d58c4546e correct to_screen prints 2012-01-08 17:22:48 +01:00
38ffbc0222 Release 2012.01.08 2012-01-08 17:20:55 +01:00
fefb166c52 Leave out characters the filesystem cannot encode (Closes: #264) 2012-01-08 17:20:18 +01:00
dcb3c22e0b MTV IE 2012-01-07 01:30:30 +01:00
47a53c9e46 release 2012.01.05 2012-01-05 11:08:50 +01:00
1413cd87eb Correct distinction between unicode and bytes (Closes: #257) 2012-01-05 10:46:21 +01:00
c92e184f75 Correct comedycentral flash URL regex 2012-01-05 00:39:47 +01:00
3906e6ce60 correct epydoc 2012-01-05 00:36:47 +01:00
c7d3c3db0d Fix tds RTMP url extraction 2012-01-04 14:08:17 +01:00
d6639d05c2 release 2011.12.18 2011-12-17 01:35:05 +01:00
633cf7cbad Add wav audio output 2011-12-17 01:32:28 +01:00
a5647b79ce Only skip download if files exists; convert audio 2011-12-16 23:33:46 +01:00
ba5059dd66 Release 2011.12.15 2011-12-15 20:32:37 +01:00
bb8abbbbae Dailymotion: Use og:title instead of <title> to find title (Closes: #253) 2011-12-15 20:32:05 +01:00
561504fffa Release 2011.12.08 2011-12-08 21:39:13 +01:00
23e6b8adc8 --prefer-free-formats (Closes #231) 2011-12-08 21:38:28 +01:00
3e0ea7d07a m4a: aac in mp4 container (Closes #240) 2011-12-08 21:21:25 +01:00
94fd3201b2 Abort when --max-downloads is reached. 2011-12-08 20:59:02 +01:00
0b3f3e1ad9 Merge pull request #245 from rbrito/fix-makefile
Makefile: Don't use `echo`'s `-e` option for portability.
2011-12-08 11:39:56 -08:00
a05d2a0c05 Merge branch 'master' of github.com:rg3/youtube-dl 2011-12-08 20:39:22 +01:00
0b14e0b367 OpenClassRoom IE (Closes: #234) 2011-12-08 20:36:00 +01:00
66e8777769 Makefile: Don't use echo's -e option for portability.
Many systems (including Debian, Ubuntu and derivatives like Linux Mint) use
Dash as a noninteractive version of `/bin/sh`, invoked by `make`.

Dash's `echo` command doesn't understand the `-e` option and this generates
spurious output when running `make`.  See [a bugreport][0] for one of the
many instances of this bug/feature in action.

[0]: https://bugs.launchpad.net/ubuntu/+source/dash/+bug/72167
2011-12-08 13:18:29 -02:00
348486ced4 Merge pull request #238 from rbrito/add-to-gitignore
Add list of files to ignore for `youtube-dl`.
2011-11-30 11:45:17 -08:00
f1f300e629 Add list of files to ignore for youtube-dl. 2011-11-30 14:17:20 -02:00
dd17922afc OpenClassRoom videos (#234) 2011-11-30 10:52:04 +01:00
40fd4cb86a Move merged code to dev version 2011-11-30 10:00:36 +01:00
9e9b75ae4d Merge pull request #236 from lra/dailymotion-fix
Fix the DailymotionIE to parse the new title of a webpage
2011-11-30 00:57:09 -08:00
8abf76ddb9 Fix the DailymotionIE to parse the new title of a webpage 2011-11-29 22:30:42 -05:00
c95da745bc Mention -o - in doc (Closes #204) 2011-11-29 20:22:27 +01:00
0cd235eef6 Use freedesktop.org mandated user config file location (Suggested by Tyll in #231) 2011-11-29 20:13:13 +01:00
77315556f1 Do not count unmatched or skipped videos towards max-downloads (Closes #232) 2011-11-29 20:08:01 +01:00
c379c181e0 Preliminary implementation of configuration files 2011-11-28 01:29:46 +01:00
31a2ec2d88 Document -o %(upload_date)s (Closes #228) 2011-11-28 01:00:01 +01:00
b88a52504e --max-downloads option (Closes #230) 2011-11-28 00:55:44 +01:00
a95567af99 Credit shizeeg for Mixcloud IE 2011-11-24 18:58:19 +01:00
849edab8ec Move MixcloudIE to __init__.py 2011-11-24 18:02:12 +01:00
b158a1d946 Mixcloud IE 2011-11-24 20:45:14 +04:00
fa2672f9fc Release 2011.11.23 2011-11-23 10:36:52 +01:00
28e3614bc0 Fix vimeo error (Closes #224) 2011-11-23 10:35:55 +01:00
208e095f72 Correct simplify_title call in ComedyCentral IE 2011-11-22 21:26:38 +01:00
0ae7abe57c Release 2011.11.22 2011-11-22 15:32:53 +01:00
dc0a294a73 Make exception handling 2.5-compatible (Closes #223) 2011-11-22 15:31:30 +01:00
468c99257c Release 2011.11.21 2011-11-21 21:51:24 +01:00
af8e8d63f9 Allow non-ASCII characters in simplified titles(Closes #220) 2011-11-21 21:50:39 +01:00
e092418d8b Simplify simplify_title 2011-11-21 20:17:07 +01:00
e33e3045c6 First tests 2011-11-21 20:07:24 +01:00
cb6568bf21 Use the dev version in Makefile 2011-11-21 20:00:54 +01:00
235b3ba479 Move code into a separate Python module 2011-11-21 19:59:59 +01:00
5b3330e0cf Remove empty real_initialize defs 2011-11-21 19:31:20 +01:00
aab771fbdf Credit authors of Soundclound and InfoQ extractors 2011-11-16 09:33:03 +01:00
00f95a93f5 InfoQ IE (Closes #216) 2011-11-15 23:00:31 +01:00
1724e7c461 Merge remote-tracking branch 'ngokevin/soundcloud' 2011-11-15 22:37:49 +01:00
3b98a5ddac InfoQ IE 2011-11-15 23:20:29 +02:00
8b59cc93d5 Merge pull request #211 from techtonik/patch-1
Fix duplicated downloads from YouTube user page where watch URLs are not. Thanks to anatoly techtonik.
2011-11-15 01:39:17 -08:00
c3e4e7c182 Fix youtube playlist IE match (Closes: #210) 2011-11-15 10:35:59 +01:00
38348005b3 removed weird indent 2011-11-12 17:28:26 -08:00
208c4b9128 added whitespace below soundcloudIE class 2011-11-12 17:10:21 -08:00
ec574c2c41 extracts full title from source 2011-11-12 17:08:40 -08:00
871be928a8 now downloads soundcloud songs, need to polish title grabbing and file naming 2011-11-12 16:48:43 -08:00
b20d4f8626 changed spaces to tabs (by yt-dl standards), fixed bugs, but still won't download. need to figure out how the whole process works to integrate correctly 2011-11-10 01:04:33 -08:00
073d7a5985 extracted all of the soundcloud information including description (not tested), need to hook into filedownloader 2011-11-09 01:52:36 -08:00
40306424b1 work on soundcloud information extractor...need to talk to youtube-dl guys 2011-11-08 00:03:35 -08:00
ecb3bfe543 going home and need to upload what little i did 2011-11-07 18:02:10 -08:00
abeac45abe Fix duplicated downloads from YouTube user page where watch URLs are not always end with &. Stop scan on closing bracker prevents regexp to capture two links instead of one. 2011-11-06 16:42:43 +03:00
0fca93ac60 Merge pull request #206 from rbrito/fixes/facebook-ie-2
FacebookIE: Fix regexp to recognize videos that weren't considered.
2011-11-02 10:56:18 -07:00
857e5f329a FacebookIE: Fix regexp to recognize videos that weren't considered. 2011-11-01 12:07:05 -02:00
053419cd24 FacebookIE: The date doesn't seem to be available anymore.
The current regular expression is likely to match a lot of stuff, as each
comment that a video has has one of those and it is not clear which one is
the date of the video *upload* itself.
2011-10-20 20:28:34 -02:00
99e207bab0 FacebookIE: Fix extraction of title as Facebook has changed stuff. 2011-10-20 20:27:48 -02:00
0067bbe7a7 FacebookIE: Not all videos are available in all formats. 2011-10-20 20:26:42 -02:00
45aa690868 Release 2011.10.19 2011-10-19 00:40:13 +02:00
beb245e92f Merge branch 'vimeo' of https://github.com/rbrito/youtube-dl 2011-10-19 00:38:41 +02:00
c424df0d2f vimeo: Add the ability to detect if a video is available in HD. (Closes: #194) 2011-10-19 00:37:45 +02:00
87929e4b35 vimeo: Add the ability to detect if a video is available in HD. 2011-10-18 19:47:19 -02:00
d76736fc5e Merge pull request #195 from rbrito/xvideos
Fixes for the xvideos IE
2011-10-18 13:49:21 -07:00
0f9b77223e xvideos: Capture only the video title, not the name of the site. 2011-10-18 18:42:01 -02:00
9f47175a40 xvideos: Fix misleading error message when extracting the URL.
We said that we were trying to extract the title of the video.
2011-10-18 18:41:02 -02:00
a1a8713aad xvideos: Normalize the URL or it will fail with some inputs.
For instance, if we give it <www.xvideos.com/video1384059>, we would
end up passing that to urllib2, which would complain about an unknown
URL type.
2011-10-18 18:38:17 -02:00
6501a06d46 Quick and dirty IE for xvideos.com. 2011-10-13 16:44:20 -03:00
8d89fbae5a CollegeHumor IE 2011-10-12 21:13:43 +02:00
7a2cf5455c Fix recognition of http://www.youtube.com/course?list=PL41FDABC6AA085E78&category=University/Mathematics/Topology%20%26%20Geometry 2011-10-04 03:25:20 +02:00
7125a7ca8b Support "newstyle" Youtube playlist IDs.
Many playlists reported by Youtube now have the form like in:

    http://www.youtube.com/playlist?list=PL520044A3524F5E5D

where `PL` is prefixed to what youtube-dl used to use as playlist IDs. So,
while matching it, we adapt the regular expression so as to discard the `PL`
and only get the `520044A3524F5E5D` in the case of the playlist of the
example.
2011-10-03 21:41:33 -03:00
54d47874f7 release 2011.09.30 2011-09-30 09:07:59 +02:00
2761012f69 Cosmetic changes to --list-formats 2011-09-30 09:07:36 +02:00
3de2a1e635 Added option -L to list available formats 2011-09-28 01:28:37 +02:00
1eff9ac0c5 Release 2011.09.27 2011-09-27 21:42:52 +02:00
54f329fe93 blip.tv: Handle direct URLs (Thanks to Bahman) 2011-09-27 21:42:15 +02:00
9baa2ef53b Update REAMDE.md 2011-09-26 20:29:15 +02:00
6bde5972c3 Mention ext in output template help 2011-09-26 20:26:40 +02:00
36f6cb369b Add help to output template 2011-09-26 20:24:43 +02:00
b845d58b04 Adding HTTPS support for YouTube playlists and users; Escaping dots. 2011-09-25 21:28:20 +03:00
efb113c736 Simplify test 2011-09-21 18:49:08 +02:00
3ce59dae88 Update README with new options 2011-09-21 18:48:51 +02:00
f0b0caa3fa Merge pull request #172 from richardc/master
add support for vorbis to  --extract-audio
2011-09-21 09:47:11 -07:00
58384838c3 Add support for vorbis files to --extract-audio
Add Ogg Vorbis as a file type when extracting the audio from a
file.  This can be the 'best' codec if the source clip is a webm
container.
2011-09-21 17:29:25 +01:00
abb870d1ad Clarify --cookies option 2011-09-18 18:50:23 +02:00
daa982bc01 release 2011.09.18c: Prefer mp4 over webm 2011-09-17 00:58:44 +02:00
767414a292 Prefer format 18 over 43 2011-09-17 00:58:14 +02:00
7b417b388a Add youtube format 44 2011-09-17 00:51:25 +02:00
44424ceee9 Prefer mp4 over webm - seems to work better for most users 2011-09-17 00:39:51 +02:00
08a5b7f800 Release 2011.09.18b 2011-09-16 22:33:08 +02:00
1cde6f1d52 Prevent youtube IE from taking youtube playlists 2011-09-16 22:31:31 +02:00
2d8acd8039 Fix escapist URL match 2011-09-15 20:25:22 +02:00
67035ede49 Fix progress message when Content-Length is not set 2011-09-15 20:24:21 +02:00
eb6c37da43 Clarified "restart" 2011-09-15 20:10:27 +02:00
2736595628 Do not update if already up-to-date (Closes #166) 2011-09-15 20:09:30 +02:00
7b1a2bbe17 release 2011.09.18 2011-09-15 19:29:16 +02:00
c25303c3d5 Set continue to false again; we need to send to actually send a HEAD request to determine whether we can continue or not 2011-09-15 19:27:21 +02:00
cc025e1226 release 2011.09.17 2011-09-15 19:23:52 +02:00
eca1b76f01 Update README 2011-09-15 19:23:17 +02:00
366cbfb04a Fix _do_download signature 2011-09-15 19:22:18 +02:00
18bb3d1e35 Make --continue the default and provide --no-continue (Closes #119) 2011-09-15 19:12:04 +02:00
10e7194db1 If --continue is not enabled, set resume_len to zero.
This corrects the reporting of download progress (which previously
started at a value greater than zero).
2011-09-15 19:07:53 +02:00
ef357c4bf2 Bump version number 2011-09-15 18:48:29 +02:00
5260e68f64 Add format fallback 2011-09-15 18:47:36 +02:00
6a1ca41e17 Update README 2011-09-15 12:45:56 +02:00
c99dcbd2d6 Merge remote-tracking branch 'rmanola/master' (Closes: #124)
Add option to specify mp3 quality and prevent the video from being deleted
2011-09-15 12:43:27 +02:00
da0db53a75 added option to get the available formats for a video (Closes #106) 2011-09-15 12:20:03 +02:00
c52b01f326 Added ability to download worst quality video file only. (Closes #113) 2011-09-15 12:14:16 +02:00
36597dc40f Updated to stamp extracted audio file with HTTP last modified date. 2011-09-15 12:04:54 +02:00
9b4556c469 New option --skip-download (Closes #162) 2011-09-15 11:36:49 +02:00
f3098c4d8a --list-extractors (Closes #161) 2011-09-15 11:03:29 +02:00
bdb3f7a769 Simplify suitable 2011-09-15 10:06:14 +02:00
afb5b55de6 Proper warning if xml.etree.ElementTree is not available 2011-09-15 09:59:03 +02:00
c23cec29a3 Update LATEST_VERSION (and wait for a script to do it so I do not forget ;) ) 2011-09-14 23:03:01 +02:00
e5b9fac281 Bump version number 2011-09-14 22:55:26 +02:00
08c1d0d3bc Update README 2011-09-14 22:55:09 +02:00
20e91e8375 Add --match-title and --reject-title (Closes #132) 2011-09-14 22:54:51 +02:00
f9c6878714 Support for The Escapist 2011-09-14 22:26:53 +02:00
8c5dc3ad40 Simplify IE index 2011-09-14 21:39:41 +02:00
1d2e86aed9 Decapitalize options in README for consistency with youtube-dl --help 2011-09-14 21:20:23 +02:00
a2f7e3a5bb Clarify usage 2011-09-14 21:19:33 +02:00
f2a3a3522c typo in README 2011-09-14 21:18:22 +02:00
b487ef0833 Fully implement comedycentral downloader 2011-09-14 21:17:05 +02:00
d0922f29a3 Update LATEST_VERSION (oops) 2011-09-14 00:04:46 +02:00
b90bcbe79e Bump version number 2011-09-13 23:58:46 +02:00
8236e85178 s#phihag#rg3 2011-09-13 23:58:31 +02:00
803abae206 Do not claim copyright in README (Closes #157) 2011-09-13 23:54:50 +02:00
50bdd8a9e7 Merge remote-tracking branch 'knagano/master' 2011-09-13 23:50:44 +02:00
34554a7ad4 Merge remote-tracking branch 'CaptainPatate/master' 2011-09-13 23:35:48 +02:00
18b7f87409 Added option to allow different audio encoding qualities and to allow specify whether erase or not the video when it's need to extract the audio. 2011-06-06 17:46:37 -07:00
62a29bbf7b Fixed download from Dailymotion.
Fetches FLV URL from "sdURL" in addVariable("sequence") JSON,
instead of addVariable("video") which doesnot exist today.
Supports new title, uploader nickname format.
2011-05-07 22:53:37 +09:00
e26005adea Deletes duplicate entry in process_info dictionary of YahooIE 2011-04-07 23:25:47 +02:00
9 changed files with 6103 additions and 428 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*.pyc
*.pyo
*~

View File

@ -1 +1 @@
2011.09.13
2012.02.26

View File

@ -1,20 +1,23 @@
default: update
update: update-readme update-latest
update: compile update-readme update-latest
update-latest:
./youtube-dl --version > LATEST_VERSION
./youtube-dl.dev --version > LATEST_VERSION
update-readme:
@options=$$(COLUMNS=80 ./youtube-dl --help | sed -e '1,/.*General Options.*/ d' -e 's/^\W\{2\}\(\w\)/### \1/') && \
@options=$$(COLUMNS=80 ./youtube-dl.dev --help | sed -e '1,/.*General Options.*/ d' -e 's/^\W\{2\}\(\w\)/### \1/') && \
header=$$(sed -e '/.*## OPTIONS/,$$ d' README.md) && \
footer=$$(sed -e '1,/.*## FAQ/ d' README.md) && \
echo "$${header}" > README.md && \
echo -e '\n## OPTIONS' >> README.md && \
echo >> README.md && \
echo '## OPTIONS' >> README.md && \
echo "$${options}" >> README.md&& \
echo -e '\n## FAQ' >> README.md && \
echo >> README.md && \
echo '## FAQ' >> README.md && \
echo "$${footer}" >> README.md
compile:
cp youtube_dl/__init__.py youtube-dl
.PHONY: default update update-latest update-readme
.PHONY: default compile update update-latest update-readme

View File

@ -1,7 +1,7 @@
# youtube-dl
## USAGE
youtube-dl [OPTIONS] URL
youtube-dl [options] url [url...]
## DESCRIPTION
**youtube-dl** is a small command-line program to download videos from
@ -12,24 +12,41 @@ which means you can modify it, redistribute it or use it however you like.
## OPTIONS
-h, --help print this help text and exit
-v, --version print program version and exit
--version print program version and exit
-U, --update update this program to latest version
-i, --ignore-errors continue on download errors
-r, --rate-limit LIMIT download rate limit (e.g. 50k or 44.6m)
-R, --retries RETRIES number of retries (default is 10)
--dump-user-agent display the current browser identification
--list-extractors List all supported extractors and the URLs they
would handle
### Video Selection:
--playlist-start NUMBER playlist video to start at (default is 1)
--playlist-end NUMBER playlist video to end at (default is last)
--dump-user-agent display the current browser identification
--match-title REGEX download only matching titles (regex or caseless
sub-string)
--reject-title REGEX skip download for matching titles (regex or
caseless sub-string)
--max-downloads NUMBER Abort after downloading NUMBER files
### Filesystem Options:
-t, --title use title in file name
-l, --literal use literal title in file name
-A, --auto-number number downloaded files starting from 00000
-o, --output TEMPLATE output filename template
-o, --output TEMPLATE output filename template. Use %(stitle)s to get the
title, %(uploader)s for the uploader name,
%(autonumber)s to get an automatically incremented
number, %(ext)s for the filename extension,
%(upload_date)s for the upload date (YYYYMMDD), and
%% for a literal percent. Use - to output to
stdout.
-a, --batch-file FILE file containing URLs to download ('-' for stdin)
-w, --no-overwrites do not overwrite files
-c, --continue resume partially downloaded files
--cookies FILE file to dump cookie jar to
--no-continue do not resume partially downloaded files (restart
from beginning)
--cookies FILE file to read cookies from and dump cookie jar in
--no-part do not use .part files
--no-mtime do not use the Last-modified header to set the file
modification time
@ -38,19 +55,26 @@ which means you can modify it, redistribute it or use it however you like.
### Verbosity / Simulation Options:
-q, --quiet activates quiet mode
-s, --simulate do not download video
-s, --simulate do not download the video and do not write anything
to disk
--skip-download do not download the video
-g, --get-url simulate, quiet but print URL
-e, --get-title simulate, quiet but print title
--get-thumbnail simulate, quiet but print thumbnail URL
--get-description simulate, quiet but print video description
--get-filename simulate, quiet but print output filename
--get-format simulate, quiet but print output format
--no-progress do not print progress bar
--console-title display progress in console titlebar
-v, --verbose print various debugging information
### Video Format Options:
-f, --format FORMAT video format code
--all-formats download all available video formats
--prefer-free-formats prefer free video formats unless a specific one is
requested
--max-quality FORMAT highest quality format to download
-F, --list-formats list all available formats (currently youtube only)
### Authentication Options:
-u, --username USERNAME account username
@ -60,7 +84,11 @@ which means you can modify it, redistribute it or use it however you like.
### Post-processing Options:
--extract-audio convert video files to audio-only files (requires
ffmpeg and ffprobe)
--audio-format FORMAT "best", "aac" or "mp3"; best by default
--audio-format FORMAT "best", "aac", "vorbis", "mp3", "m4a", or "wav";
best by default
--audio-quality QUALITY ffmpeg audio bitrate specification, 128k by default
-k, --keep-video keeps the video file on disk after the post-
processing; the video is erased by default
## FAQ
@ -68,9 +96,9 @@ which means you can modify it, redistribute it or use it however you like.
Most people asking this question are not aware that youtube-dl now defaults to downloading the highest available quality as reported by YouTube, which will be 1080p or 720p in some cases, so you no longer need the -b option. For some specific videos, maybe YouTube does not report them to be available in a specific high quality format you''re interested in. In that case, simply request it with the -f option and youtube-dl will try to download it.
### I get HTTP error 402 when trying to download a video. What''s this?
### I get HTTP error 402 when trying to download a video. What's this?
Apparently YouTube requires you to pass a CAPTCHA test if you download too much. We''re [considering to provide a way to let you solve the CAPTCHA](https://github.com/phihag/youtube-dl/issues/8), but at the moment, your best course of action is pointing a webbrowser to the youtube URL, solving the CAPTCHA, and restart youtube-dl.
Apparently YouTube requires you to pass a CAPTCHA test if you download too much. We''re [considering to provide a way to let you solve the CAPTCHA](https://github.com/rg3/youtube-dl/issues/154), but at the moment, your best course of action is pointing a webbrowser to the youtube URL, solving the CAPTCHA, and restart youtube-dl.
### I have downloaded a video but how can I play it?
@ -85,14 +113,14 @@ The URLs youtube-dl outputs require the downloader to have the correct cookies.
youtube has switched to a new video info format in July 2011 which is not supported by old versions of youtube-dl. You can update youtube-dl with `sudo youtube-dl --update`.
## COPYRIGHT
**youtube-dl**: Copyright © 2006-2011 Ricardo Garcia Gonzalez. The program is
released into the public domain by the copyright holder. This README file was
originally written by Daniel Bolton (<https://github.com/dbbolton>) and is
likewise released into the public domain.
youtube-dl is released into the public domain by the copyright holders.
This README file was originally written by Daniel Bolton (<https://github.com/dbbolton>) and is likewise released into the public domain.
## BUGS
Bugs and suggestions should be reported at: <https://github.com/phihag/youtube-dl/issues>
Bugs and suggestions should be reported at: <https://github.com/rg3/youtube-dl/issues>
Please include:

View File

@ -0,0 +1,6 @@
# source this file in your shell to get a POSIX locale (which will break many programs, but that's kind of the point)
export LC_ALL=POSIX
export LANG=POSIX
export LANGUAGE=POSIX

29
test/test_div.py Normal file
View File

@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
# Various small unit tests
import os,sys
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
import youtube_dl
def test_simplify_title():
assert youtube_dl._simplify_title(u'abc') == u'abc'
assert youtube_dl._simplify_title(u'abc_d-e') == u'abc_d-e'
assert youtube_dl._simplify_title(u'123') == u'123'
assert u'/' not in youtube_dl._simplify_title(u'abc/de')
assert u'abc' in youtube_dl._simplify_title(u'abc/de')
assert u'de' in youtube_dl._simplify_title(u'abc/de')
assert u'/' not in youtube_dl._simplify_title(u'abc/de///')
assert u'\\' not in youtube_dl._simplify_title(u'abc\\de')
assert u'abc' in youtube_dl._simplify_title(u'abc\\de')
assert u'de' in youtube_dl._simplify_title(u'abc\\de')
assert youtube_dl._simplify_title(u'ä') == u'ä'
assert youtube_dl._simplify_title(u'кириллица') == u'кириллица'
# Strip underlines
assert youtube_dl._simplify_title(u'\'a_') == u'a'

1764
youtube-dl

File diff suppressed because it is too large Load Diff

6
youtube-dl.dev Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import youtube_dl
youtube_dl.main()

4648
youtube_dl/__init__.py Executable file

File diff suppressed because it is too large Load Diff