Commit Graph

212 Commits (bcc334a3c66f2465cd63be284e389cc4c7a78203)

Author SHA1 Message Date
Sergey M․ 25d110be30
[utils] Properly recognize AV1 codec (closes )
Sergey M․ af03000ad5
[utils] Introduce url_or_none
Sergey M․ e9c671d5e8
[utils] Allow JSONP with empty func name (closes )
Enes 85750f8972 [openload] Improve ext extraction
Remita Amine 3bb3ff38a1 [test_utils] add tests for b836118724
Sergey M․ 6cc622327f
[utils] Introduce merge_dicts
Sergey M․ 1cc47c6674
[utils] Fix match_str for boolean meta fields
Philipp Hagemeister f226880c6d [tennistv] Add support for tennistv.com
Sergey M․ b871d7e954
[utils] Add parse_resolution
Sergey M․ befa4708fd
[utils] Fixup some common URL's typos in sanitize_url (closes )
Sergey M․ c707b1d828
[test_utils] Add tests for malformed JSON handling in js_to_json
Mike Fährmann c384d537f8 [util] Improve scientific notation handling in js_to_json (closes )
Sergey M․ b555ae9bf1
[utils] Add another date format pattern ()
Sergey M․ 056653bbb1
[utils] Add support for zero years and months in parse_duration
Yen Chi Hsuan 3869028ffb [utils] Use bytes-like objects in dfxp2srt
This fixes handling of non-UTF8 TTML subtitles

Closes 
Yen Chi Hsuan 95f3f7c20a
[utils] Fix unescapeHTML for misformed string like "&a"" ()
Sergey M․ 5b232f46dc
[utils] Skip missing params in cli_bool_option (closes )
Sergey M․ dee2ff1d81
[test_utils] Fix tests under Windows
Yen Chi Hsuan 609ff8ca19 [utils] Support attributes with no values in get_elements_by_attribute()
Sergey M․ b4a3d461e4
[utils] Handle HTMLParseError in extract_attributes (closes )
Sergey M․ 2ae2ffda5e
[utils] Improve unified_timestamp
Yen Chi Hsuan 5552c9eb0f
[utils] Recognize more patterns in strip_jsonp()
Used in Youku Show pages
Yen Chi Hsuan 0c26548601
[cda] Implement birthday verification (closes )
Sergey M․ deef31955b
[utils] Improve unified_timestamp
Seen at http://zaq1.pl/video/xev0e
Tithen-Firion 9222d94510 [test_utils] Add one more clean_html test
Remita Amine 5b995f713b [utils] add support for ttml styles
Sergey M․ a426ef6d78
[test_utils] Do not use dash in env variables' names
Sergey M․ 41c5e60dd5
[test_utils] Fix expand_path tests
Sergey M․ 51098426b8
[utils] Introduce expand_path
Sergey M․ 4b5de77bdb
[utils] Process bytestrings in urljoin (closes )
Yen Chi Hsuan f48409c7ac [utils] Add pkcs1pad
Used in daisuki.net ()
Thomas Christlieb 2af12ad9d2 Introduce get_elements_by_class and get_elements_by_attribute utility functions
Sergey M․ 4195096ea8
[utils] Improve comments processing in js_to_json (closes )
Michal Čihař b3ee552e4b
[utils] Handle single-line comments in js_to_json
Sergey M․ 15846398ca
[utils] Improve parse_duration
Sergey M․ cb655f34fb
[utils] Add more date formats
Remita Amine 7fe1592073 [common] fix dash codec information for mixed videos and fragment url construction()
Sergey M․ b0c65c677f
[utils] Improve urljoin
Sergey M․ e34c33614d
[utils] Add convenience urljoin
Yen Chi Hsuan 582be35847
Update coding style after pycodestyle 2.1.0
In pycodestyle 2.1.0, E305 was introduced, which requires two blank
lines after top level declarations, too.

See https://github.com/PyCQA/pycodestyle/issues/400

See also ; thanks @stepshal for first mentioning this issue and
initial patches
Sergey M․ 02dc0a36b7
[utils] Introduce base_url
Sergey M․ c6eed6b8c0
[utils] Lower priority for rare date formats and add tests
Sergey M․ 3e4185c396
[utils] Use native french month names
Sergey M․ f6717dec8a
[utils] Improve month_by_name and add tests
Sergey M․ 6562d34a8c
[utils] Improve mimetype2ext
Yen Chi Hsuan 70852b47ca
[utils] Recognize units with full names in parse_filename
Reference: https://en.wikipedia.org/wiki/Template:Quantities_of_bytes
Yen Chi Hsuan e4659b4547
[utils] Correct octal/hexadecimal number detection in js_to_json
Sergey M․ 13585d7682
[utils] Recognize lowercase units in parse_filesize
Remita Amine 5f2c2b7936 [test_utils] add test for option with not str value
Sergey M․ a8795327ca
[utils] Add support TV Parental Guidelines ratings in parse_age_limit