Philipp Hagemeister
af1588c05f
[mtv] Update tests and xpath function for new title extraction
2014-01-22 02:04:51 +01:00
Philipp Hagemeister
00122de6a9
[gametrailers/mtv] Fix pre-3.x compatibility function for find_xpath_attr
...
Fixes #2189
2014-01-22 01:04:12 +01:00
Philipp Hagemeister
5aafe895fc
Correct XML ampersand fixup
2014-01-20 22:11:34 +01:00
Philipp Hagemeister
b7ab059084
Add infrastructure for paged lists
...
This commit allows to download pages in playlists as needed instead of all at once.
Before this commit,
youtube-dl http://www.youtube.com/user/ANNnewsCH/videos --playlist-end 2 --skip-download
took quite some time - now it's almost instantaneous.
As an example, the youtube:user extractor has been converted.
Fixes #2175
2014-01-20 11:36:47 +01:00
Philipp Hagemeister
dd27fd1739
[youtube] Download DASH manifest
...
If given, download and parse the DASH manifest file, in order to get ultra-HQ formats.
Fixes #2166
2014-01-19 05:47:20 +01:00
Philipp Hagemeister
d70ad093af
Move check_executable into a helper ufnction
2014-01-07 06:23:41 +01:00
Philipp Hagemeister
5f263296ea
Merge remote-tracking branch 'epitron/metadata-pp'
...
Conflicts:
youtube_dl/PostProcessor.py
2014-01-07 05:44:44 +01:00
Philipp Hagemeister
79f8295303
Use original Referer URL in Brightcove requests ( Fixes #2110 )
2014-01-07 05:34:14 +01:00
Philipp Hagemeister
5d73273f6f
[orf] Use new extraction method ( Fixes #2057 )
2014-01-06 17:15:27 +01:00
Philipp Hagemeister
8bf48f237d
Fix/work around Windows encoding issues ( Fixes #2095 )
2014-01-05 03:07:55 +01:00
Jaime Marquínez Ferrándiz
91d7d0b333
FFmpegMetadataPP; Write temporary file to something.temp.{ext}
( fixes #2079 )
...
ffmpeg correctly recognize the formats of extensions like m4a, but it doesn’t works if it’s passed with the `—format` option.
2014-01-03 12:54:19 +01:00
epitron
e63fc1bed4
Added '--xattrs' option which writes metadata to the file's extended attributes using a youtube-dl postprocessor.
...
Works on Linux, OSX, and Windows.
2014-01-02 07:47:28 -05:00
Philipp Hagemeister
a0ddb8a2fa
Add new --print-traffic option
2013-12-29 15:28:32 +01:00
Philipp Hagemeister
608d11f515
[cnn] Add multiple formats, duration, and upload_date
2013-12-26 13:49:44 +01:00
Philipp Hagemeister
7217e148fb
[yahoo] Use centralized sorting, and add tbr field
2013-12-25 15:18:40 +01:00
Philipp Hagemeister
aa94a6d315
[aparat] Add support ( Fixes #2012 )
2013-12-20 17:05:39 +01:00
Philipp Hagemeister
e029b8bd43
[utils] Remove duplicated line
...
This line was added by accident in 42393ce234
2013-12-17 16:12:20 +01:00
Jaime Marquínez Ferrándiz
9b8aaeed85
Simplify url_basename
...
Use urlparse from the standard library.
2013-12-17 14:56:29 +01:00
Philipp Hagemeister
42393ce234
Add support for direct links to a video ( #1973 )
2013-12-17 12:33:55 +01:00
Philipp Hagemeister
d6c7a367e8
[utils] Fix url_basename
2013-12-17 12:32:58 +01:00
Philipp Hagemeister
29eb517403
Add webpage_url_basename info_dict field ( Fixes #1938 )
2013-12-17 04:13:36 +01:00
Philipp Hagemeister
e64eaaa97d
Fix execution under Python 3
2013-12-16 14:44:17 +01:00
Philipp Hagemeister
d7dda16888
[blinkx] Add extractor ( Fixes #1972 )
2013-12-16 13:56:30 +01:00
Philipp Hagemeister
e3946f989e
Set process title to youtube-dl
...
This allows killing all youtube-dl processes with killall youtube-dl, and shows up nicer in some programs.
2013-12-16 05:04:55 +01:00
Philipp Hagemeister
2a203a6cda
Merge pull request #1956 from dstftw/master
...
Fix typo in month name
2013-12-13 07:41:34 -08:00
dst
dadb8184e4
Fix typo in month name
2013-12-13 22:27:37 +07:00
Jaime Marquínez Ferrándiz
1825836235
Use _download_xml
in more extractors
2013-12-10 21:03:53 +01:00
Philipp Hagemeister
caefb1de87
[ndtv] Add extractor ( Fixes #1924 )
2013-12-09 19:44:33 +01:00
Philipp Hagemeister
1c088fa89d
Improve --bidi-workaround support
2013-12-09 18:29:07 +01:00
Philipp Hagemeister
ac79fa02b8
Restore Python 2.6.<6 compatibility ( Fixes #1860 )
2013-12-09 03:02:54 +01:00
Philipp Hagemeister
303b479e0a
Automatically load SSL certs on Windows
2013-12-08 06:54:39 +01:00
Jaime Marquínez Ferrándiz
f53c966a73
[dailymotion] Extract view count ( #1895 )
2013-12-06 13:36:36 +01:00
Philipp Hagemeister
a1ef7e85d6
Remove unused imports
2013-12-05 14:31:54 +01:00
Philipp Hagemeister
2a275ab007
[zdf] Use _download_xml
2013-11-28 05:47:50 +01:00
Philipp Hagemeister
de79c46c8f
[viki] Fix subtitle extraction
2013-11-25 06:06:18 +01:00
Philipp Hagemeister
79d09f47c2
Merge branch 'opener-to-ydl'
2013-11-25 03:30:37 +01:00
Philipp Hagemeister
02dbf93f0e
[zdf/common] Use API in ZDF extractor.
...
This also comes with a lot of extra format fields
Fixes #1518
2013-11-25 03:13:22 +01:00
Philipp Hagemeister
e03db0a077
Merge branch 'master' into opener-to-ydl
2013-11-24 15:18:44 +01:00
Philipp Hagemeister
13ebea791f
[niconico] Simplify and make work with old Python versions
...
The website requires SSLv3, otherwise it just times out during SSL negotiation.
2013-11-24 06:39:10 +01:00
Philipp Hagemeister
dca0872056
Move the opener to the YoutubeDL object.
...
This is the first step towards being able to just import youtube_dl and start using it.
Apart from removing global state, this would fix problems like #1805 .
2013-11-22 19:57:52 +01:00
Jaime Marquínez Ferrándiz
a6a173c2fd
utils.shell_quote: Convert the args to unicode strings
...
The youtube test video failed with `UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 34: ordinal not in range(128)`, the problem was with the filenames being encoded.
2013-11-21 14:09:28 +01:00
Philipp Hagemeister
5904088811
Add support for tou.tv ( Fixes #1792 )
2013-11-20 06:13:19 +01:00
Philipp Hagemeister
ae8f787141
Remove iPhone from user agent. This breaks a lot of extractors
...
In the future, it might be worth investigating whether we get better content when we claime to be an iPhone.
2013-11-18 13:52:26 +01:00
Philipp Hagemeister
96b31b6533
Add iPhone to UA ( #1746 )
2013-11-18 13:05:58 +01:00
Jaime Marquínez Ferrándiz
55b3e45bba
[vimeo] Fix pro videos and player.vimeo.com urls
...
The old process can still be used for those videos.
Added RegexNotFoundError, which is raised by _search_regex if it can't extract the info.
2013-10-23 14:38:03 +02:00
Philipp Hagemeister
f4d96df0f1
Extend #980 with --max-quality support
2013-10-18 00:46:35 +02:00
Philipp Hagemeister
9d4660cab1
[generic] Support embedded vimeo videos ( #1602 )
2013-10-15 12:05:13 +02:00
Jaime Marquínez Ferrándiz
d7e66d39a0
Add an extractor for internetvideoarchive.com videos
...
It's used by videodetective.com
2013-10-12 21:34:04 +02:00
Jaime Marquínez Ferrándiz
4eb7f1d12e
FFmpegPostProcessor: print the command line used if the --verbose option is given
2013-10-12 13:49:27 +02:00
Jaime Marquínez Ferrándiz
2e1fa03bf5
Add an extractor for video.nhl.com ( closes #1586 )
2013-10-10 16:16:49 +02:00
Philipp Hagemeister
b24f347190
Merge branch 'download-archive'
...
Conflicts:
youtube_dl/YoutubeDL.py
youtube_dl/__init__.py
2013-10-06 16:30:26 +02:00
Philipp Hagemeister
41e8bca4d0
[viddler] Add basic support ( Fixes #1520 )
2013-10-06 07:12:47 +02:00
Philipp Hagemeister
c1c9a79c49
Add basic --download-archive option
...
Often, users want to be able to download only videos they haven't seen before, despite the video files having been deleted or moved in the mean time.
When --download-archive FILE is given, the extractor and ID of every download is recorded in the specified file. If it is already present, the video in question is skipped.
2013-10-06 04:27:10 +02:00
Philipp Hagemeister
c38b1e776d
[youtube] Simplify cache_dir code ( #1529 )
2013-10-02 08:41:14 +02:00
Philipp Hagemeister
e0df6211cc
Restore accidentally deleted commits
...
That's what happens if you let Windows machines write :(
2013-09-21 14:40:35 +02:00
Philipp Hagemeister
7459e3a290
Always correct encoding when writing to sys.stderr ( Fixes #1435 )
2013-09-16 06:55:41 +02:00
Jaime Marquínez Ferrándiz
19e1d35989
[mixcloud] Rewrite extractor ( fixes #278 )
2013-09-14 14:26:42 +02:00
Jaime Marquínez Ferrándiz
a921f40799
[ustream] Simplify channel extraction
...
the ChannelParser has been moved to a new function in utils get_meta_content
Instead of the SocialStreamParser now it uses a regex
2013-09-13 22:05:29 +02:00
Jaime Marquínez Ferrándiz
545434670b
Add an extractor for orf.at ( closes #1346 )
...
Make find_xpath_attr also accept numbers in the value
2013-08-29 19:16:07 +02:00
Philipp Hagemeister
c257baff85
Merge remote-tracking branch 'rzhxeo/youporn-hd'
...
Conflicts:
youtube_dl/utils.py
2013-08-28 18:22:28 +02:00
rzhxeo
cba892fa1f
Add intlist_to_bytes to utils.py
2013-08-28 15:59:07 +02:00
Philipp Hagemeister
48ea9cea77
Allow changes to run under Python 3
2013-08-28 14:34:49 +02:00
Philipp Hagemeister
c496ca96e7
Fix platform name in Python 2 with --verbose ( Closes #1228 )
2013-08-28 12:57:10 +02:00
Philipp Hagemeister
aa3e950764
Tolerate junk at the end of gzip-compressed content ( #1268 )
2013-08-28 11:57:13 +02:00
Jaime Marquínez Ferrándiz
0e283428f7
HTTPError is in urllib.error in Python 3, not in http.error
2013-08-28 10:18:39 +02:00
Philipp Hagemeister
2eabb80254
[addanime] improve
2013-08-28 04:25:38 +02:00
Philipp Hagemeister
acebc9cd6b
Revert "Install our own HTTPS handler as well ( #1309 )"
...
This reverts commit 36399e8576
and fixes #1322 .
2013-08-27 23:28:20 +02:00
Philipp Hagemeister
36399e8576
Install our own HTTPS handler as well ( #1309 )
2013-08-24 22:49:22 +02:00
Jaime Marquínez Ferrándiz
d4051a8e05
Add a post processor for embedding subtitles in mp4 videos ( closes #1052 )
2013-08-23 15:06:19 +02:00
Philipp Hagemeister
298f833b16
Note update possibility on errors (thanks @chbrown, #1229 )
2013-08-11 06:46:24 +02:00
Jaime Marquínez Ferrándiz
bba12cec89
Add an extractor for videofy.me ( closes #1171 )
...
Also modify find_xpath_attr to accept values with spaces like for id="HQ on"
2013-08-03 22:50:27 +02:00
Jaime Marquínez Ferrándiz
cbdbb76665
Use determine_ext when saving the thumbnail
...
Urls that contain a query produced filenames with wrong extensions
2013-07-12 22:08:49 +02:00
Jaime Marquínez Ferrándiz
6543f0dca5
BrightcoveIE: Use parse_qs to extract the fields of the query ( closes #1032 )
...
Add a compat_urlparse to utils.
2013-07-12 14:53:28 +02:00
Philipp Hagemeister
5de3ece225
[brightcove] fix on Python 2.6
2013-07-11 16:16:02 +02:00
Philipp Hagemeister
59ae56fad5
Add helper function find_path_attr
2013-07-11 16:12:08 +02:00
Philipp Hagemeister
73e79f2a1b
[3sat] Add support ( Fixes #1001 )
2013-07-08 01:13:55 +02:00
Philipp Hagemeister
9a82b2389f
Do not show bug report for errors that are to be expected ( Closes #973 )
2013-07-02 08:40:21 +02:00
Philipp Hagemeister
a3c776203f
Rewrote error message a bit to clarify
2013-06-28 18:53:31 +02:00
M.Yasoob Ullah Khalid
53f350c165
Changed the error message.
...
I changed the ExtractorError from ```msg = msg + u'; please report this issue on http://yt-dl.org/bug '``` to ```msg = msg + u'; please report this issue on http://yt-dl.org/bug with the complete output by running the same command with --verbose flag'```
Hopefully this will tell the users to report bugs with the complete output.
2013-06-28 18:51:54 +02:00
Filippo Valsorda
98bcd2834a
improve generic and encrypted signature error messages
2013-06-25 16:47:16 +02:00
Filippo Valsorda
d5979c5d55
do not ask the user to report network errors
2013-06-09 11:55:08 +02:00
Filippo Valsorda
f5a290eed9
print "please report this issue on GitHub" on every ExtractorError
2013-06-08 09:56:34 +02:00
Filippo Valsorda
468e2e926b
implement fallbacks and defaults in _search_regex
2013-06-06 14:35:08 +02:00
Filippo Valsorda
b31756c18e
Python 2 compat fixes for MyVideo.de rtmpdump downloads
2013-05-20 11:57:10 +02:00
Philipp Hagemeister
f45c185fa9
Do not re-encode / to # if / is a platform separator, and correctly handle permission errors ( Fixes #831 )
2013-05-13 09:20:08 +02:00
Philipp Hagemeister
ea6d901e51
Add --no-check-certificate ( #814 )
2013-05-04 12:22:56 +02:00
Philipp Hagemeister
4539dd30e6
twitch.tv chapters ( #810 ): print out start and end time
2013-05-04 12:02:18 +02:00
Jaime Marquínez Ferrándiz
37254abc36
Allow to use relative dates in the format (now|today)[+-][0-9](day|week|month|year)(s)? ( Closes #137 )
...
Also fix DateRange not accepting ranges of one day.
2013-04-28 11:39:37 +02:00
Jaime Marquínez Ferrándiz
bf50b0383e
Fix some IEs that didn't return the uploade_date in the YYYYMMDD format
...
Create a function unified_strdate in utils.py to fix these problems
2013-04-27 15:14:20 +02:00
Jaime Marquínez Ferrándiz
bd55852517
Allow to select videos to download by their upload dates (related #137 )
...
Only absolute dates.
2013-04-27 14:01:55 +02:00
Filippo Valsorda
e3700fc9e4
Merge pull request #736 from rg3/retry
...
Exception stacking and test retry
2013-03-29 09:01:27 -07:00
Filippo Valsorda
7decf8951c
fix FunnyOrDieIE, MyVideoIE, TEDIE
2013-03-29 15:59:13 +01:00
Filippo Valsorda
898280a056
use sys.stdout.buffer only on Python3
2013-03-28 13:13:03 +01:00
Chirantan Ekbote
1ee9778405
Use sys.stdout.buffer instead of sys.stdout
...
sys.stdout defaults to text mode, we need to use the underlying buffer
instead when writing binary data.
Signed-off-by: Chirantan Ekbote <chirantan.ekbote@gmail.com>
2013-03-27 15:57:11 -04:00
Filippo Valsorda
8cc83b8dbe
Bubble up all the stack of exceptions and retry download tests on timeout errors
2013-03-09 10:05:43 +01:00
Philipp Hagemeister
8271226a55
Fix --match-title and --reject-title decoding ( Closes #690 )
2013-02-21 17:09:39 +01:00
Philipp Hagemeister
3b024e17af
Work around buggy HTML Parser in Python < 2.7.3 ( Closes #662 )
2013-02-01 17:29:50 +01:00
Philipp Hagemeister
6df40dcbe0
Guard against sys.getfilesystemencoding() == None ( #503 )
2013-01-20 01:48:05 +01:00
Philipp Hagemeister
335959e778
Correct Blip.tv on 2.6, where HTTP headers are case-sensitive (wtf?)
2013-01-12 18:38:23 +01:00
Philipp Hagemeister
3446dfb7cb
Proper support for changing User-Agents from IEs
2013-01-12 16:49:13 +01:00
Philipp Hagemeister
7851b37993
--recode-video option ( Closes #18 )
2013-01-12 15:09:09 +01:00
Philipp Hagemeister
01951dda7a
Make ExtractorError usable for other causes
2013-01-03 15:39:55 +01:00
Philipp Hagemeister
1c256f7047
ExtractorError for errors during extraction
2013-01-01 20:27:53 +01:00
Filippo Valsorda
d5ed35b664
moved updating code to update.py
2012-12-30 19:50:33 +01:00
Filippo Valsorda
f427df17ab
some fixes, pulled the codename from the code
2012-12-30 19:50:33 +01:00
Filippo Valsorda
cb6ff87fbb
The new updates system, relies on gh-pages, secured by RSA, uses external web servers
2012-12-30 19:50:33 +01:00
Filippo Valsorda
6b3aef80ce
better Vimeo tests; fixed a couple of VimeoIE fields
2012-12-20 16:30:55 +01:00
Filippo Valsorda
056d857571
refactor YouTube subtitles code, it was ugly (my bad)
2012-12-20 14:20:24 +01:00
Nick Daniels
43e8fafd49
Refactor IDParser to search for elements by any attribute not just ID
2012-12-20 13:27:38 +01:00
Philipp Hagemeister
f4bfd65ff2
Correct JSON writing ( Closes #596 )
2012-12-20 13:13:24 +01:00
Philipp Hagemeister
5910e210f4
Fix --extract-audio on Python 3
2012-12-16 12:29:03 +01:00
Philipp Hagemeister
0f8d03f81c
Let YoutubeDLHandler (transparent gzip) handle HTTPS URLs as well (Needed for #579 )
2012-12-07 00:39:44 +01:00
Philipp Hagemeister
796173d08b
Keep video IDs verbatim if possible ( Closes #571 )
2012-12-03 15:36:41 +01:00
Philipp Hagemeister
627dcfff39
Restrict more characters ( Closes #566 )
2012-11-28 12:59:27 +01:00
Philipp Hagemeister
799c076384
collegehumor: able to download a single f4f file (not yet playable)
2012-11-28 04:51:27 +01:00
Philipp Hagemeister
59ae15a507
Convert all tabs to 4 spaces (PEP8)
2012-11-28 02:04:46 +01:00
Philipp Hagemeister
40b35b4aa6
hack for apparently broken parse_qs in python2
2012-11-28 02:01:09 +01:00
Philipp Hagemeister
0f00efed4c
Woooohooo! python3 youtube_dl BaW_jenozKc -t works!
2012-11-28 00:56:20 +01:00
Philipp Hagemeister
e6137fd61d
Remove superfluous encodings
2012-11-28 00:53:09 +01:00
Philipp Hagemeister
8cd10ac4ef
Fix printing title etc.
2012-11-28 00:46:21 +01:00
Philipp Hagemeister
5bd9cc7a6a
typo
2012-11-28 00:22:55 +01:00
Philipp Hagemeister
73dce4b2e4
Import from the correct module
2012-11-28 00:17:59 +01:00
Philipp Hagemeister
9f37a95941
Py2/3 parse_qs compatibility
2012-11-28 00:17:12 +01:00
Philipp Hagemeister
348d0a7a18
Py2/3 compatibility for http.client
2012-11-28 00:13:00 +01:00
Philipp Hagemeister
03f9daab34
Use io.BytesIO instead of StringIO
2012-11-28 00:09:17 +01:00
Philipp Hagemeister
a8156c1d2e
Python 3 version of HTMLParser
2012-11-28 00:06:28 +01:00
Philipp Hagemeister
3e669f369f
Py3 compat for unichr and htmlentitydefs
2012-11-28 00:02:55 +01:00
Philipp Hagemeister
da779b4924
Fall back to urllib instead of urllib2 for Python 3 urllib.parse
2012-11-27 23:58:47 +01:00
Philipp Hagemeister
89fb51dd2d
Remove ur references for Python 3.3 support
2012-11-27 23:56:10 +01:00
Philipp Hagemeister
01ba00ca42
Prepare urllib references for 2/3 compatibility
2012-11-27 23:54:09 +01:00
Philipp Hagemeister
e08bee320e
Use except .. as everywhere ( #180 )
2012-11-27 23:31:55 +01:00
Philipp Hagemeister
96731798db
Rename util.u to util.compat_str
2012-11-27 23:29:18 +01:00
Philipp Hagemeister
dd109dee8e
Remove mentions of unicode
2012-11-27 19:02:37 +01:00
Philipp Hagemeister
b514df2034
Clean up with the help of pep8
2012-11-27 18:55:35 +01:00
Philipp Hagemeister
0969bdd305
unify spacing
2012-11-27 18:49:18 +01:00
Philipp Hagemeister
1a9c655e3b
Merge remote-tracking branch 'Asido/master'
2012-11-27 18:48:43 +01:00
Philipp Hagemeister
dffe658bac
Remove exclamation mark in --restrict-filenames mode
2012-11-27 17:15:33 +01:00
Philipp Hagemeister
46cbda0be4
Minor filename encoding improvement in a common case
2012-11-27 15:07:10 +01:00
Philipp Hagemeister
56781d3d2e
Switch back to underline for invalid characters, and make restricted ASCII-only
2012-11-27 12:46:09 +01:00
Philipp Hagemeister
240089e5df
remove accidental remnants
2012-11-27 00:14:12 +01:00
Philipp Hagemeister
1c469a9480
New optoin --restrict-filenames
2012-11-26 23:58:46 +01:00
Philipp Hagemeister
92b91c1878
Use character instead of byte strings
2012-11-26 04:23:20 +01:00
Philipp Hagemeister
51937c0869
Add some parentheses around print for #180
2012-11-26 04:05:54 +01:00
Filippo Valsorda
5d40a470a2
quiet the HTMLParser debug info - closes #517
2012-11-09 12:32:07 +01:00
Filippo Valsorda
42cb53fcfa
modified filename escaping to a "smarter" one
2012-10-28 22:47:02 +01:00
Philipp Hagemeister
38612b4edc
update default UA string ( Closes #390 )
2012-09-27 23:38:11 +02:00
Filippo Valsorda
9bb8dc8e42
Python 2.6 compatibility fix. Thanks @Jamesc359 - closes #400
2012-08-19 16:06:33 +02:00
Arvydas Sidorenko
bae611f216
Simplified preferredencoding()
...
Not sure what is the point to use yield to return encoding, thus
it will simplify the whole function.
Signed-off-by: Arvydas Sidorenko <asido4@gmail.com>
2012-07-01 18:21:27 +02:00
chocolateboy
6ab92c8b62
don't corrupt stdout (-o -) in verbose mode
2012-05-30 11:50:13 +01:00
Filippo Valsorda
2c288bda42
reorganized the titles sanitizing: now title is the untouched title
...
and stitle is created in process_info() and is cross-filesystem sanitized by sanitize_filename();
closes #164
2012-05-09 14:47:28 +02:00