Jaime Marquínez Ferrándiz
ab84349b16
[test/YoutubeDL] Add test for subtitles
...
Updated the offlinetest make target to not skip it
10 years ago
Jaime Marquínez Ferrándiz
4d17184817
[YoutubeDL] don't set the 'requested_subtitles' without writesubtitles or writeautomaticsub
10 years ago
Philipp Hagemeister
8fb3ac3649
PEP8: W503
10 years ago
Jaime Marquínez Ferrándiz
8807f1277f
[theplatform] Convert to new subtitles system
10 years ago
Philipp Hagemeister
d305dd73a3
[utils] Fix js_to_json
...
Previously, the runtime could be atrocious for longer inputs.
10 years ago
Jaime Marquínez Ferrándiz
4f7cea6c53
[viki] Convert to new subtitles system
10 years ago
Jaime Marquínez Ferrándiz
afbdd3acc3
[rai] Convert to new subtitles system
10 years ago
Philipp Hagemeister
9789d7535d
[xtube] Fix test case
10 years ago
Jaime Marquínez Ferrándiz
01561da142
[nrk] Convert to new subtitles system
10 years ago
Jaime Marquínez Ferrándiz
0af25f784b
[mtv] Convert to new subtitles system
10 years ago
Jaime Marquínez Ferrándiz
b9b42f2ea0
[npo] Convert to new subtitles system
10 years ago
Jaime Marquínez Ferrándiz
311c393838
[lynda] Convert to new subtitles system
10 years ago
Philipp Hagemeister
3eff81fbf7
[jsinterp] Disable comment support
...
We need a proper lexer to be able to understand YouTube's code, which contains /* inside of strings.
For now it's sufficient to just disable comment support altogether.
Fixes #4976 , fixes #4979 , fixes #4980 , fixes #4981 , fixes #4982 .
Closes #4977 .
10 years ago
Philipp Hagemeister
f21e915fb9
[test/helper] Render info_dict with a final comma
10 years ago
Philipp Hagemeister
6f53c63df6
[test/helper] Only output a newline for forgotten keys if keys are really missing
10 years ago
Jaime Marquínez Ferrándiz
85920dd01d
[bliptv] Convert to new subtitles system
10 years ago
Jaime Marquínez Ferrándiz
360e1ca5cc
[youtube] Convert to new subtitles system
...
The automatic captions are stored in the 'automactic_captions' field, which is used if no normal subtitles are found for an specific language.
10 years ago
Jaime Marquínez Ferrándiz
a1f2a06b34
[dailymotion] Convert to new subtitles system
10 years ago
Jaime Marquínez Ferrándiz
c84dd8a90d
[YoutubeDL] store the subtitles to download in the 'requested_subtitles' field
...
We need to keep the orginal subtitles information, so that the '--load-info' option can be used to list or select the subtitles again.
We'll also be able to have a separate field for storing the automatic captions info.
10 years ago
Jaime Marquínez Ferrándiz
65469a7f8b
[vimeo] Convert to new subtitles system
...
Removed some tests, the behaviour should be checked in a test for the YoutubeDL class
10 years ago
Jaime Marquínez Ferrándiz
a504ced097
Improve subtitles support
...
For each language the extractor builds a list with the available formats sorted (like for video formats), then YoutubeDL selects one of them using the '--sub-format' option which now allows giving the format preferences (for example 'ass/srt/best').
For each format the 'url' field can be set so that we only download the contents if needed, or if the contents needs to be processed (like in crunchyroll) the 'data' field can be used.
The reasons for this change are:
* We weren't checking that the format given with '--sub-format' was available, checking it in each extractor would be repetitive.
* It allows to easily support giving a format preference.
* The subtitles were automatically downloaded in the extractor, but I think that if you use for example the '--dump-json' option you want to finish as fast as possible.
Currently only the ted extractor has been updated, but the old system still works.
10 years ago
Jaime Marquínez Ferrándiz
8fb474fb17
[test/subtitles] Fix some tests
...
The checksym for the CeskaTelevize subtitles has changed again, so we just test that it has a reasonable length.
10 years ago
Jaime Marquínez Ferrándiz
36e7a4ca2e
[test/subtitles] Update checksums
10 years ago
Jaime Marquínez Ferrándiz
d304209a85
[test/parameters.json] Set 'fixup' to 'never'
...
The fixed audio files for Youtube have a size lower that the minimum required.
10 years ago
Philipp Hagemeister
6a78740211
[test/test_youtube_signature] Use fake YDL
10 years ago
Philipp Hagemeister
347de4931c
[YoutubeDL] Add generic video filtering ( Fixes #4916 )
...
This functionality is intended to eventually encompass the current format filtering.
10 years ago
Jaime Marquínez Ferrándiz
0161353d7d
[test/test_YoutubeDL] Remove debug print call
10 years ago
Jaime Marquínez Ferrándiz
2b4ecde2c8
[test/YoutubeDL] Add a simple test for postprocesors
...
Just checks that the 'keepvideo' option works as intended.
10 years ago
Philipp Hagemeister
9bb8e0a3f9
[wsj] Add new extractor ( Fixes #4854 )
10 years ago
Philipp Hagemeister
23d9ded655
[franceculture] Rewrite for new HTML scheme ( Fixes #4853 )
10 years ago
Philipp Hagemeister
8f4b58d70e
[ntvde] Add new extractor ( Fixes #4850 )
10 years ago
Philipp Hagemeister
9e3f19919a
[jsinterp] Beef up and add tests
...
In preparation for #4822 , extend jsinterp by a lot. (We may even have to/want to write a proper interpreter with actual parsing)
10 years ago
Philipp Hagemeister
4e980275b5
[test_download] Remove references to "file" in test definitions
10 years ago
Philipp Hagemeister
dc35bfd2d5
[test/helper] Clarify which keys have to be added
10 years ago
Philipp Hagemeister
03d8d4df38
[test_http] PEP8
10 years ago
Philipp Hagemeister
83fda3c000
Add a test for --no-check-certificate
10 years ago
Philipp Hagemeister
7d346331b5
[audiomack:album] Update testcase
10 years ago
Philipp Hagemeister
cfb56d1af3
Add --list-thumbnails
10 years ago
Philipp Hagemeister
61ca9a80b3
[generic] Add support for BOMs ( Fixes #4753 )
10 years ago
Philipp Hagemeister
083c9df93b
[YoutubeDL] Allow filtering by properties ( Fixes #4584 )
10 years ago
Philipp Hagemeister
78111136db
[twitch] Move URL matching tests into extractor
10 years ago
Philipp Hagemeister
650ab5beeb
[comedycentral:shows] Remove references to colbert report
10 years ago
Naglis Jonaitis
a69801e2c6
[utils] Add additional format to unified_strdate
10 years ago
Sergey M․
a5fb718c50
[test_utils] Add more tests for parse_duration
10 years ago
Philipp Hagemeister
2aeb06d6dc
[utils] Improve colon handling ( Fixes #4683 )
10 years ago
Philipp Hagemeister
dd622d7c4e
[netzkino] Add new extractor ( Fixes #4669 )
10 years ago
Philipp Hagemeister
5fbf25a681
[test_age_restriction] remove misbehaving test
...
We now test for the age_limit being set right in test_download, so we don't need more than two tests for the actual age limit handling.
10 years ago
Philipp Hagemeister
0217c78377
[YoutubeDL] Allow selection by more extensions
10 years ago
Philipp Hagemeister
bec2248141
[InfoExtractor/common] Correct and test meta tag matching
10 years ago
Philipp Hagemeister
e4a8eae701
Merge commit '8ee3415'
10 years ago
Philipp Hagemeister
0590062925
Respect age_limit when listing extractors ( Fixes #4653 )
10 years ago
Sergey M․
0b54a5b10a
[ceskatelevize] Add subtitles tests
10 years ago
Philipp Hagemeister
c11125f9ed
[tests] Remove format 138 from tests ( #4559 )
10 years ago
Jaime Marquínez Ferrándiz
7d900ef1bf
[youtube] Add support for automatically translated subtitles ( fixes #4555 )
...
They have a manually uploaded subtitles track and YouTube can transtale it.
10 years ago
Sergey M․
f74b341dde
expect_info_dict actual-expected argument consistency
10 years ago
Jaime Marquínez Ferrándiz
2cb5b03e53
[test/test_unicode_literals] Remove duplicated imports
10 years ago
Philipp Hagemeister
cae97f6521
Improve and test ffmpeg version detection
10 years ago
Philipp Hagemeister
6cbf345f28
Remove test/write_info_json
...
This is now covered by every single test_download testcase anyways :)
10 years ago
Philipp Hagemeister
da4d4191a9
Merge branch 'master' of github.com:rg3/youtube-dl
10 years ago
Philipp Hagemeister
8bdcb436f9
[test_unicode_literals] Fix test
10 years ago
Philipp Hagemeister
42bdd9d051
[cinchcast] Add new extractor ( Fixes #4428 )
10 years ago
Philipp Hagemeister
47d7c64274
[test_utils] Make test more realistically ( #4377 )
10 years ago
Philipp Hagemeister
5f9b83944d
[ffmpeg] Improve version check and call it from hls ( Fixes #4377 )
10 years ago
Philipp Hagemeister
e8df5cee12
[minhateca] Fix duration parsing
10 years ago
Philipp Hagemeister
4349c07dd7
[minhateca] Add extractor ( Fixes #4094 )
10 years ago
Jaime Marquínez Ferrándiz
4472f84f0c
[test/test_subtitles] Update checksum for vimeo subtitle file
10 years ago
Philipp Hagemeister
155f9550c0
[test/helper] Fix newlines in output of missing test fields
10 years ago
Philipp Hagemeister
dcddc10a50
[test_unicode_literals] Arm unicode_literals check
...
From now on, the line
from __future__ import unicode_literals
should be contained in every single Python file lest we run into any more 2.x/3.x issues.
Going forward, we're likely to develop on 3.x only and would likely miss subtle bugs otherwise.
10 years ago
Philipp Hagemeister
e075a44afb
[tests] Remove useless u prefixes
10 years ago
Philipp Hagemeister
be64b5b098
[xminus] Simplify and extend ( #4302 )
10 years ago
Jouke Waleson
9e1a5b8455
PEP8: applied even more rules
10 years ago
Jouke Waleson
8bcc875676
PEP8: more applied
10 years ago
Jouke Waleson
5f6a1245ff
PEP8 applied
10 years ago
Philipp Hagemeister
7d4111ed14
Provide guidance when called with a YouTube ID starting with a dash.
...
Reported at https://news.ycombinator.com/item?id=8648121
10 years ago
Jaime Marquínez Ferrándiz
f56875f271
[test/test_compat] Restore the old value of the HOME environment variable
...
If the test was run before the YoutubeIE tests (for example by running
"nosetests -v test/test_compat.py test/test_download.py -m 'Youtube_1|compat_expand'"),
it wrote the signatures cache to the 'C:\Documents and Settings\тест\Application Data' folder.
It failed due to a problem in the cache code and the write_json_file function (fixed in f03e33b89a622af13fa5275c46b63aaa4814c499)
10 years ago
Philipp Hagemeister
fbf94a7815
[swfinterp] Add more builtins and improve static variables
10 years ago
Philipp Hagemeister
cd9ad1d7e8
[swfinterp] Basic support for constants (only ints for now)
10 years ago
Philipp Hagemeister
33a266f4ba
[swfinterp] Implement charCodeAt
10 years ago
Philipp Hagemeister
8d05f2c16a
[swfinterp] Add support for void methods
10 years ago
Philipp Hagemeister
eb5376044c
[swfinterp] Implement equals opcode
10 years ago
Philipp Hagemeister
3cbcff8a2d
[swfinterp] Implement String basics
10 years ago
Philipp Hagemeister
e983cf5277
[swfinterp] Interpret yet more opcodes
10 years ago
Philipp Hagemeister
0ab1ca5501
[swfinterp] Better error message
10 years ago
Philipp Hagemeister
4baafa229d
[swfinterp] Intepret more multinames
10 years ago
Philipp Hagemeister
7f3e33a147
[swfinterp] Implement member assignment
10 years ago
Philipp Hagemeister
a0f59cdcb4
[tests] Modernize
10 years ago
Philipp Hagemeister
6a68bb574a
[eporner] Fix duration ( Closes #4188 )
10 years ago
Philipp Hagemeister
609a61e3e6
[npo] Improve npo.nl ( Fixes #4173 )
10 years ago
Philipp Hagemeister
4c0924bb24
[utils] Fix intlist_to_bytes in Python 2 ( #4181 )
10 years ago
Philipp Hagemeister
e4bdb37ec6
[spiegel] Add support for embeds
10 years ago
Philipp Hagemeister
3e6e4999ca
[test/helper] Improve output
10 years ago
Michael Käufl
498942f187
[test_youtube_signature] Fix import
...
Broken in commit 8c25f81bee
10 years ago
Philipp Hagemeister
12ea2f30cf
[utils] Remove unused get_meta_content function
10 years ago
Philipp Hagemeister
278143df5b
[test_compat] Ignore unicode_literals
10 years ago
Jaime Marquínez Ferrándiz
ac35c26686
[tests] Don't auto init YoutubeDL
...
It would print the debug headers for each test.
And nose uses a StringIO object for stdout, which in python 2.x doesn't have the 'encoding' attribute.
10 years ago
Philipp Hagemeister
42f7d2f588
[test_download] Fix import
10 years ago
Philipp Hagemeister
39f0a2a6b7
[test_swfinterp] Correct compilation on modern mxmlc versions
10 years ago
Philipp Hagemeister
8c25f81bee
[util] Move compatibility functions out of util
...
utils is large enough without these compatibility functions.
Everything that is present in newer versions of Python (i.e. with dev Python it's just an import) goes into compat.py .
Everything else (i.e. youtube-dl-specific helpers) goes into utils.py .
10 years ago
Philipp Hagemeister
7d11297f3f
Merge branch 'master' of github.com:rg3/youtube-dl
10 years ago
Philipp Hagemeister
6ad4013d40
[drtv] Allow fractional timestamps ( Fixes #4059 )
10 years ago