sepro
add96eb9f8
[cleanup] Add more ruff rules ( #10149 )
...
Authored by: seproDev
Reviewed-by: bashonly <88596187+bashonly@users.noreply.github.com>
Reviewed-by: Simon Sawicki <contact@grub4k.xyz>
6 months ago
pukkandan
a250b24733
[compat] Ensure submodules are imported correctly
...
Closes #7663
1 year ago
pukkandan
f6a765ceb5
[dependencies] Standardize `Cryptodome` imports
2 years ago
pukkandan
6929b41a21
Remove Python 3.6 support
...
Closes #3764
2 years ago
pukkandan
14f25df2b6
[compat] Remove deprecated functions from core code
2 years ago
pukkandan
54007a45f1
[cleanup] Consistent style for file heads
2 years ago
pukkandan
ac66811112
[compat] Remove more functions
...
Removing any more will require changes to a large number of extractors
2 years ago
pukkandan
3c5386cd71
[compat] Fix `compat.WINDOWS_VT_MODE`
2 years ago
pukkandan
0f06bcd759
[cleanup] Minor fixes (See desc)
...
* [youtube] Fix `--youtube-skip-dash-manifest`
* [build] Use `$()` in `Makefile`. Closes #3684
* Fix bug in 385ffb467b
* Fix bug in 43d7f5a5d0
* [cleanup] Remove unnecessary `utf-8` from `str.encode`/`bytes.decode`
* [utils] LazyList: Expose unnecessarily "protected" attributes
and other minor cleanup
3 years ago
pukkandan
9196cbfe8b
[compat] Ensure submodules are correctly wrapped
3 years ago
felix
77f9033095
[compat] Split into sub-modules ( #2173 )
...
Authored by: fstirlitz, pukkandan
3 years ago
pukkandan
19a0394044
[cleanup] Misc cleanup and refactor ( #2173 )
3 years ago
pukkandan
f82711587c
[cleanup] Sort imports
...
Using https://github.com/PyCQA/isort
isort -m VERTICAL_HANGING_INDENT --py 36 -l 80 --rr -n --tc .
3 years ago
pukkandan
86e5f3ed2e
[cleanup] Upgrade syntax
...
Using https://github.com/asottile/pyupgrade
1. `__future__` imports and `coding: utf-8` were removed
2. Files were rewritten with `pyupgrade --py36-plus --keep-percent-format`
3. f-strings were cherry-picked from `pyupgrade --py36-plus`
Extractors are left untouched (except removing header) to avoid unnecessary merge conflicts
3 years ago
pukkandan
f9934b9614
[cleanup] Mark some compat variables for removal ( #2173 )
...
Authored by fstirlitz, pukkandan
3 years ago
felix
cc52de4356
[cleanup] Point all shebang to `python3` ( #372 )
...
Authored by: fstirlitz
4 years ago
Pccode66
7a5c1cfe93
Completely change project name to yt-dlp ( #85 )
...
* All modules and binary names are changed
* All documentation references changed
* yt-dlp no longer loads youtube-dlc config files
* All URLs changed to point to organization account
Co-authored-by: Pccode66
Co-authored-by: pukkandan
4 years ago
pukkandan
5d0c537141
Fix/disable tests
...
The disabled tests needs to be fixed later
Tests for FormatSort, Multistreams also needs be created
4 years ago
pukkandan
732044afb2
Add --write-*-link by h-h-h-h
...
Authored-by: h-h-h-h
4 years ago
Unknown
cefecac12c
[skip travis] renaming
...
to avoid using same folder when using pip install for example
4 years ago
Sergey M․
fca9baf0da
[test] Fix test_compat_etree_Element
6 years ago
Sergey M․
399f76870d
[compat] Introduce compat_etree_Element
6 years ago
Sergey M․
6864855eb1
[tests] Fix invalid escape sequences
6 years ago
Sergey M․
942b44a052
[test_compat] Do not use dash in env variables' names
8 years ago
Yen Chi Hsuan
dfe5fa49ae
[compat] Fix compat_shlex_split for non-ASCII input
...
Closes #9871
9 years ago
Jaime Marquínez Ferrándiz
a9eede3913
[test/compat] compat_shlex_split: test with newlines
9 years ago
Yen Chi Hsuan
eb7941e3e6
[compat] Fix for XML with <!DOCTYPE> in Python 2.7 and 3.2
...
Such XML documents cause DeprecationWarning if python is run
with `-W error`
9 years ago
Yen Chi Hsuan
edaa23f822
[compat] Rename struct_(un)pack to compat_struct_(un)pack
9 years ago
Yen Chi Hsuan
dab0daeeb0
[utils,compat] Move struct_pack and struct_unpack to compat.py
9 years ago
Sergey M․
fad7bbec3a
[test_compat] Remove unused import
9 years ago
Sergey M․
20cfdcc910
[test_compat] Avoid None values for compat_setenv
9 years ago
Sergey M․
1292638754
[test_compat] Use compat_setenv
9 years ago
Sergey M․
fe40f9eef2
[compat] Add compat_setenv
9 years ago
Yen Chi Hsuan
92d5477d84
[compat] Handle tuples properly in urlencode()
...
Fixes #9055
9 years ago
Sergey M․
e289d6d62c
[test_compat] Add tests for compat_urllib_parse_urlencode
9 years ago
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.
9 years ago
Jaime Marquínez Ferrándiz
387db16a78
[compat] compat_etree_fromstring: only decode bytes objects
9 years ago
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).
9 years ago
Sergey M․
3513d41436
[test_compat] Fix typo
9 years ago
Sergey M․
ee087c79ad
[test_compat] Add test for compat_shlex_split
9 years ago
Sergey M․
8954e48140
[test_compat] Add tests for compat_urllib_parse_unquote_plus
9 years ago
Sergey M․
d79febcd06
[test_compat] Remove redundant test
9 years ago
Sergey M․
14309e1ddc
[test_compat] Make tests more idiomatic
9 years ago
fnord
4a63291144
Add tests for compat_urllib_parse_unquote
9 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
278143df5b
[test_compat] Ignore unicode_literals
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