Jaime Marquínez Ferrándiz
30e2f2d76f
[YoutubeDL] use a more correct terminology in the error message for file:// URLs
2016-01-14 16:28:46 +01:00
Jaime Marquínez Ferrándiz
4240d50496
[YoutubeDL] improve error message for file:/// URLs
2016-01-14 14:07:54 +01:00
Jaime Marquínez Ferrándiz
6240b0a278
[YoutubeDL] urlopen: use build_opener again
...
Otherwise we would need to manually add handlers like HTTPRedirectHandler, instead we add a customized FileHandler instance that raises an error.
2016-01-14 08:16:39 +01:00
Jaime Marquínez Ferrándiz
e37afbe0b8
[YoutubeDL] urlopen: disable the 'file:' protocol ( #8227 )
...
If someone is running youtube-dl on a server to deliver files, the user could input 'file:///some/important/file' and youtube-dl would save that file as a video giving access to sensitive information to the user.
'file:' urls can be filtered, but the user can use an URL to a crafted m3u8 manifest like:
#EXTM3U
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:10.0
file:///etc/passwd
#EXT-X-ENDLIST
With this patch 'file:' URLs raise URLError like for unknown protocols.
2016-01-14 00:24:04 +01:00
Jaime Marquínez Ferrándiz
3c91e41614
[downloader/fragment] Don't fail if the 'Content-Length' header is missing
...
In some dailymotion videos (like http://www.dailymotion.com/video/x3k0dtv from #8156 ) the segments URLs don't have the 'Content-Length' header and HttpFD sets the 'totat_bytes' field to None, so we also use '0' in that case (since we do different math operations with it).
2016-01-10 14:41:38 +01:00
Jaime Marquínez Ferrándiz
7e8a800f29
[bigflix] Use correct indentation to make flake8 happy
2016-01-10 14:26:27 +01:00
Jaime Marquínez Ferrándiz
27783821af
[xhamster] Remove unused import
2016-01-09 11:16:23 +01:00
Jaime Marquínez Ferrándiz
3f17c357d9
[downloader/hls] Don't let ffmpeg read from stdin ( #8139 )
...
If you run 'while read aurl ; do youtube-dl "${aurl}"; done < path_to_batch_file' (batch_file contains one url per line that uses the hls downloader) each call to youtube-dl consumed some characters and 'read' would assing to 'aurl' a non valid url
(This is the same problem that was fixed for the ffmpeg postprocessors in cffcbc02de )
2016-01-04 18:35:31 +01:00
Jaime Marquínez Ferrándiz
ca227c8698
[yahoo] Support pages that use an alias ( fixes #8084 )
2016-01-01 14:32:00 +01:00
Jaime Marquínez Ferrándiz
69f8595256
[espn] Extract better titles
2015-12-31 20:06:21 +01:00
Jaime Marquínez Ferrándiz
930087f2f6
[espn] Support 'intl' videos ( #7858 )
2015-12-31 20:04:17 +01:00
Jaime Marquínez Ferrándiz
9f9f7664b5
[espn] Update test
2015-12-31 19:52:48 +01:00
Jaime Marquínez Ferrándiz
c7932289e7
[cbsnews] Fix extraction of the URL for the 'RtmpDesktop' format ( fixes #8048 )
2015-12-30 23:57:19 +01:00
Jaime Marquínez Ferrándiz
53365f74a7
Credit @flatgreen for FranceCultureEmission ( #8022 )
2015-12-29 16:14:05 +01:00
Jaime Marquínez Ferrándiz
7447661e9b
[franceculture] Fix test
2015-12-28 20:05:47 +01:00
Jaime Marquínez Ferrándiz
6c6b8bd5cc
[cspan] Fix extraction ( fixes #8032 )
2015-12-28 13:50:29 +01:00
Jaime Marquínez Ferrándiz
04e24906be
[cspan] Initialize 'video_type' to avoid 'UnboundLocalError' exceptions ( #8032 )
2015-12-28 13:06:30 +01:00
Jaime Marquínez Ferrándiz
a8f1d167f6
[arte] Prefer json URLs that contain the video id from the 'vid' parameter in the URL ( fixes #7920 )
2015-12-23 18:00:46 +01:00
Jaime Marquínez Ferrándiz
7fe37d8a05
[appletrailers] Improve regex for fixing '<img>' tags ( #7953 )
2015-12-23 14:48:40 +01:00
Jaime Marquínez Ferrándiz
47f48f5d85
[test/test_all_urls] Update pbs extractor name
...
It's in lowercase now (since e15e2ef7a0 ).
2015-12-08 21:12:13 +01:00
Jaime Marquínez Ferrándiz
77334ccb44
[metacafe] Fix age limit extraction
2015-12-05 16:12:50 +01:00
Jaime Marquínez Ferrándiz
796db21295
[metacafe] Fix video url extraction ( closes #7763 )
2015-12-05 16:12:02 +01:00
Jaime Marquínez Ferrándiz
55bec9b658
[clipfish] Remove unused import and style fix
2015-12-04 14:29:37 +01:00
Jaime Marquínez Ferrándiz
2a63b0f110
[mixcloud] Fix extraction of the audio url ( fixes #7751 )
2015-12-04 14:26:34 +01:00
Jaime Marquínez Ferrándiz
7b1e379ca9
[gametrailers] Fix extraction ( fixes #7722 )
...
They have stopped using the MTV system.
2015-12-03 13:47:21 +01:00
Jaime Marquínez Ferrándiz
63b4295d20
[youtube:playlist] fix title extraction ( fixes #7544 and #7545 )
2015-11-18 18:28:05 +01:00
Jaime Marquínez Ferrándiz
609af1ae1c
[dplay] Add 'encoding: utf-8' line
2015-11-17 17:58:16 +01:00
Jaime Marquínez Ferrándiz
4cd759f73d
[dplay] Add extractor ( closes #7515 )
...
Since I haven't figured out how to download the hds stream, we use the hls one instead.
2015-11-17 17:52:29 +01:00
Jaime Marquínez Ferrándiz
e156e70281
[rtve] Remove unused import
2015-11-17 16:23:29 +01:00
Jaime Marquínez Ferrándiz
0f72beb515
[periscope] Remove unused imports
2015-11-14 18:31:33 +01:00
Jaime Marquínez Ferrándiz
b703ebeeaf
[twitter] Don't fail if the description doesn't contain an URL ( fixes #7489 )
2015-11-13 19:09:42 +01:00
Jaime Marquínez Ferrándiz
b84a5f0337
[twitter] Update tests checksums
2015-11-13 18:55:07 +01:00
Jaime Marquínez Ferrándiz
1ebb4717df
[cbsnews] Fix construction of 'play_path' in some videos ( fixes #7394 )
2015-11-12 21:02:56 +01:00
Jaime Marquínez Ferrándiz
d5c181a14e
[movieclips] Fix extraction ( fixes #7404 )
...
They use theplatform now.
Changed the test, because the old one seems to be georestricted.
2015-11-08 11:49:51 +01:00
Jaime Marquínez Ferrándiz
cff551c0b0
[googleplus] Fix extraction of formats
2015-11-07 18:43:22 +01:00
Jaime Marquínez Ferrándiz
cb5a470635
[vimeo] Remove unused import
2015-11-04 16:18:51 +01:00
Jaime Marquínez Ferrándiz
6a75040278
[utils] unified_strdate: Return None if the date format can't be recognized ( fixes #7340 )
...
This issue was introduced with ae12bc3ebb , it returned 'None'.
2015-11-02 14:08:38 +01:00
Jaime Marquínez Ferrándiz
eb97f46e8b
[mitele] Fix extraction and update test checksum ( fixes #7343 )
2015-11-02 12:46:10 +01:00
Jaime Marquínez Ferrándiz
c3040bd00a
[kika] Cleanup
...
Closes #6957 .
2015-10-31 16:32:35 +01:00
Jaime Marquínez Ferrándiz
8c1aa28c27
[kika] Replace non working tests and recognize 'einzelsendung' urls.
2015-10-31 16:14:36 +01:00
Jaime Marquínez Ferrándiz
ae37338e68
[compat] compat_etree_fromstring: clarify comment
2015-10-29 13:58:40 +01:00
Jaime Marquínez Ferrándiz
7ccb2b84dd
[francetv] fix style issues reported by flake8
...
* Don't redefine variable in list comprehension
* Line missing indentation
2015-10-28 08:22:04 +01:00
Jaime Marquínez Ferrándiz
f78546272c
[compat] compat_etree_fromstring: also decode the text attribute
...
Deletes parse_xml from utils, because it also does it.
2015-10-26 16:41:24 +01:00
Jaime Marquínez Ferrándiz
387db16a78
[compat] compat_etree_fromstring: only decode bytes objects
2015-10-25 20:30:54 +01:00
Jaime Marquínez Ferrándiz
36e6f62cd0
Use a wrapper around xml.etree.ElementTree.fromstring in python 2.x ( #7178 )
...
Attributes aren't unicode objects, so they couldn't be directly used in info_dict fields (for example '--write-description' doesn't work with bytes).
2015-10-25 20:13:16 +01:00
Jaime Marquínez Ferrándiz
50b936936d
[tutv] Fix test
2015-10-24 14:22:47 +02:00
Jaime Marquínez Ferrándiz
d97da29da2
[abc] Support more URL formats
2015-10-24 12:43:02 +02:00
Jaime Marquínez Ferrándiz
36d7281037
[spiegeltv] Fix style issue
...
Use two spaces before comment.
2015-10-24 12:42:08 +02:00
Jaime Marquínez Ferrándiz
865d1fbafc
[extractor/common] Remove unused import
2015-10-24 12:39:23 +02:00
Jaime Marquínez Ferrándiz
6856139705
[mitele] Fix test checksum
2015-10-24 12:13:26 +02:00
Jaime Marquínez Ferrándiz
c93153852f
[mitele] Don't encode the URL query ( closes #7280 )
...
This seems to produce sporadic errors when trying to access the URL, because on python 3.x when you do '%s' % b'somedata' you get "b'somedata'".
2015-10-24 12:10:53 +02:00
Jaime Marquínez Ferrándiz
5c43afd40f
[youtube:channel] Support age restricted channels ( fixes #7277 )
2015-10-23 14:23:45 +02:00
Jaime Marquínez Ferrándiz
9170ca5b16
[youtube:channel] Fix test
2015-10-23 14:16:08 +02:00
Jaime Marquínez Ferrándiz
65d49afa48
[test/test_download] Use extract_flat = 'in_playlist' for playlist items
...
Some playlist extractors return a 'url' result, which wouldn't be resolved.
2015-10-23 14:12:46 +02:00
Jaime Marquínez Ferrándiz
8c3533ba97
[adultswim] Don't default to the native m3u8 downloader ( closes #7243 )
...
Some of the streams are encrypted, which is not supported .
2015-10-21 23:57:23 +02:00
Jaime Marquínez Ferrándiz
dd67702a3e
[imdb] Fix extraction ( fixes #7220 )
2015-10-18 14:13:06 +02:00
Jaime Marquínez Ferrándiz
6df7179e6c
[rte] Actually recognize https urls
...
There was a missing 's' before the '?'.
2015-10-17 11:53:59 +02:00
Jaime Marquínez Ferrándiz
36eb802baf
[rte] Replace expired test
...
According to their webpage it should be available until October 2035.
2015-10-17 11:49:51 +02:00
Jaime Marquínez Ferrándiz
1f36085df9
[vimeo] Fix extraction of password protected videos ( fixes #7169 )
2015-10-14 13:41:39 +02:00
Jaime Marquínez Ferrándiz
506e261d20
[channel9] strip 'session_day'
2015-10-13 21:18:30 +02:00
Jaime Marquínez Ferrándiz
b30c4992a9
[channel9] Return a single dictionary for single videos ( closes #7086 )
...
Returning a list is deprecated.
2015-10-13 21:14:33 +02:00
Jaime Marquínez Ferrándiz
57d1db8dd0
[rtbf] Fix extraction ( closes #7133 )
2015-10-11 22:45:13 +02:00
Jaime Marquínez Ferrándiz
b203095d4c
[europa] Style fix: add whitespace after comma
2015-10-02 22:40:35 +02:00
Jaime Marquínez Ferrándiz
7d0ada5ff9
[test/helper] Fix style
...
Use the correct indentation to please flake8
2015-10-02 13:42:11 +02:00
Jaime Marquínez Ferrándiz
44451f22d5
[naver] Remove unused import
2015-10-02 13:41:52 +02:00
Jaime Marquínez Ferrándiz
08bea4adde
Also run tests with python 3.5
2015-09-25 22:34:02 +02:00
Jaime Marquínez Ferrándiz
4c917d0314
[README.md] Document the 'duration' field in the output template ( #6929 )
2015-09-25 22:02:48 +02:00
Jaime Marquínez Ferrándiz
4866b72eb2
[fktv] Don't redefine 'url' in list comprehension
...
Detected with flake8.
2015-09-25 21:58:45 +02:00
Jaime Marquínez Ferrándiz
f005f96ea5
[youtube:history] Explain why it has disabled and skip test
2015-09-20 12:23:13 +02:00
Jaime Marquínez Ferrándiz
8a7bbd1606
[postprocessor/ffmpeg] Always use the 'file:' protocol for filenames ( fixes #6874 )
...
If the filename contains ':' it is interpreted as a protocol.
It also handles filenames starting with '-'.
2015-09-18 14:38:35 +02:00
Jaime Marquínez Ferrándiz
4003bd82b0
[youtube:shows] Use https
2015-09-07 12:56:16 +02:00
Jaime Marquínez Ferrándiz
3026164b16
[postprocessor/common] Use 'self._downloader.params' instead of 'self.params'
...
'self.params' is not defined
2015-09-05 12:11:36 +02:00
Jaime Marquínez Ferrándiz
c482b3c69a
[ruutu] Update test url
2015-09-04 21:11:29 +02:00
Jaime Marquínez Ferrándiz
725d1c58aa
[crunchyroll] Extract width and height ( closes #6749 )
2015-09-03 13:15:02 +02:00
Jaime Marquínez Ferrándiz
080997b808
[rtve] Fix extraction ( fixes #6723 )
...
Adding the 'Referer' header to the png request is enough.
2015-09-01 20:30:58 +02:00
Jaime Marquínez Ferrándiz
aa3f98677d
[dumpert] Support 'embed/' urls ( fixes #6712 )
2015-09-01 18:13:33 +02:00
Jaime Marquínez Ferrándiz
4bc8eec4eb
[youtube] Adapt player version regex to handle urls ending in '/html5player-new.js'
...
It was always extracting 'new' as the version, breaking the cache system.
2015-08-26 15:21:55 +02:00
Jaime Marquínez Ferrándiz
8c97f81943
[common] Follow convention of using 'cls' in classmethods
2015-08-21 11:35:51 +02:00
Jaime Marquínez Ferrándiz
232541df44
[YoutubeDL] format spec: correctly handle dashes and other unused operators
...
'mp4-baseline-16x9' must be handled as a single string, but the '-' was treated as an operator.
2015-08-04 22:29:23 +02:00
Jaime Marquínez Ferrándiz
d96d604e53
YoutubeDL: format spec: don't accept a bare '/' ( #6124 )
2015-08-03 23:04:11 +02:00
Jaime Marquínez Ferrándiz
03950c90f7
Merge remote-tracking branch 'jaimemf/format_spec_groups' ( closes #6124 )
2015-08-03 15:22:51 +02:00
Jaime Marquínez Ferrándiz
47a8b7c14a
[mdr] Change XPath to make it work in python 2.6 ( fixes #6443 )
...
The 'progressiveDownloadUrl' element is a direct child, so they should be equivalent.
2015-08-03 12:00:08 +02:00
Jaime Marquínez Ferrándiz
25a4c5a9ed
[dailymotion:playlist] Use an iterator for the entries
...
So that using '--playlist-end' only downloads the required pages (reported in #2175 ).
2015-08-02 15:19:57 +02:00
Jaime Marquínez Ferrándiz
5c45bbe57b
[nowtv] Remove unused import
2015-08-02 15:19:30 +02:00
Jaime Marquínez Ferrándiz
9cc93c64aa
[screenwavemedia] Use the IP for the videoserver ( fixes #6397 )
...
For http://cinemassacre.com/2015/07/28/avgn-seaman-for-dreamcast/ the other server returns a 403 error.
2015-08-01 22:17:19 +02:00
Jaime Marquínez Ferrándiz
525a87f58e
[gdcvault] Fix typo: xml_decription_url -> xml_description_url
2015-08-01 11:40:34 +02:00
Jaime Marquínez Ferrándiz
1f04873517
[viewster] Use 'compat_urllib_parse_unquote'
2015-07-30 19:12:37 +02:00
Jaime Marquínez Ferrándiz
34866b4836
Merge remote-tracking branch 'dstftw/multifeed-videos' ( closes #6360 )
2015-07-29 21:55:20 +02:00
Jaime Marquínez Ferrándiz
2711e41bcd
Credit slangangular for the sportschau extractor ( #6199 )
2015-07-29 18:47:20 +02:00
Jaime Marquínez Ferrándiz
4c6bd5b5b6
[youtube] Use 'vp8' and 'vp9' in lowercase ( fixes #6358 )
...
That's how YouTube reports them in their DASH manifest.
2015-07-26 14:14:28 +02:00
Jaime Marquínez Ferrándiz
2929fa0e79
[youtube] Also look into the 'start' field for start_time
2015-07-23 13:21:18 +02:00
Jaime Marquínez Ferrándiz
297a564bee
[youtube] Extract end_time
2015-07-23 13:20:21 +02:00
Jaime Marquínez Ferrándiz
59db9f8018
[downloader/dash] Improve 'combine_url' ( fixes #6341 )
...
In some videos the base_url already ends with '/'.
2015-07-23 12:09:30 +02:00
Jaime Marquínez Ferrándiz
b37317d8b0
[generic] Unescape HTML escape sequences in redirect urls ( fixes #6311 )
2015-07-22 23:33:49 +02:00
Jaime Marquínez Ferrándiz
87dc451108
[youtube] Don't use the DASH manifest from 'get_video_info' if 'use_cipher_signature' is True ( #5118 )
...
Currently they give a 403 Forbidden error.
2015-07-22 23:27:41 +02:00
Jaime Marquínez Ferrándiz
ca4456eda8
[tagesschau] Remove unused import
2015-07-22 23:23:38 +02:00
Jaime Marquínez Ferrándiz
70c857b728
Credit Zach Bruggeman for the appleconnect extractor ( #6190 )
2015-07-22 11:49:54 +02:00
Jaime Marquínez Ferrándiz
28afa6e77a
[snagfilms] Don't use '_' as a variable that is used
2015-07-21 20:50:02 +02:00
Jaime Marquínez Ferrándiz
7c80519cbf
[youtube] Extract start_time
...
From the 't=*' in the url.
Currently youtube-dl doesn't use the value, but it was requested for the mpv plugin.
2015-07-20 21:10:28 +02:00
Jaime Marquínez Ferrándiz
8250c32f49
[YoutubeDL] don't default to 'bestvideo+bestaudio/best' for live videos
...
Doesn't work currently.
2015-07-20 20:25:53 +02:00