aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/update.py
Commit message (Collapse)AuthorAgeFilesLines
* [build] Create armv7l and aarch64 releases (#5449)MrOctopus2022-11-111-8/+14
| | | | Closes #5436 Authored by: MrOctopus, pukkandan
* [update] Use error code 100 for update errorspukkandan2022-11-071-0/+1
| | | | | | | This error code was previously used for "Exiting to finish update", but is no longer used Closes #5198
* [utils] Add `deprecation_warning`pukkandan2022-08-301-5/+3
| | | | See https://github.com/yt-dlp/yt-dlp/pull/2173#issuecomment-1097021515
* Add version to infojsonpukkandan2022-08-241-0/+14
|
* [update] Copy bitmask from old binarypukkandan2022-08-151-1/+2
| | | | | | Improves a6125983ab4434fc4079f575a4bf22042411ea5e Authored by: Lesmiscore
* [update] Set executable bit-maskpukkandan2022-08-141-14/+22
| | | | Closes #4621
* [build, devscripts] Add devscript to set a build variantpukkandan2022-08-091-5/+8
| | | | Closes #4471
* [update] Prepare to remove Python 3.6 supportpukkandan2022-07-171-7/+15
|
* [update] Do not check `_update_spec` when up to datepukkandan2022-06-301-0/+4
|
* [update] Ability to set a maximum version for specific variantspukkandan2022-06-291-11/+29
|
* Fix bug in 6d916fe709a38e8c4c69b73843acf170b5165931 (#4219)Stefan Lobbenmeier2022-06-291-0/+3
| | | | | Update only to legacy version on old MacOS Authored by: StefanLobbenmeier
* [cleanup] Fix some typos (#4194)crazymoose777562022-06-261-1/+1
| | | Authored by: crazymoose77756
* [build] Add Linux standalone buildspukkandan2022-06-211-1/+2
|
* [update] Self-restart after updatepukkandan2022-06-211-11/+23
|
* [update] Expose more functionality to APIpukkandan2022-06-211-119/+159
|
* [update] Use `.git` folder to distinguish `source`/`unknown`pukkandan2022-06-081-1/+2
| | | | | | This is not perfect, but is good enough for how we use this information Closes #3994
* [build, cleanup] Refactorpukkandan2022-05-221-138/+110
| | | | Closes #3835, #3837
* [cleanup] Miscpukkandan2022-05-211-15/+20
|
* [utils] Improve performance using `functools.cache`pukkandan2022-05-191-1/+2
| | | | Closes #3786
* [cleanup] Minor fixes (See desc)pukkandan2022-05-091-2/+2
| | | | | | | | | | * [youtube] Fix `--youtube-skip-dash-manifest` * [build] Use `$()` in `Makefile`. Closes #3684 * Fix bug in 385ffb467b2285e85a2a5495b90314ba1f8e0700 * Fix bug in 43d7f5a5d0c77556156a3f8caa6976d3908a1e38 * [cleanup] Remove unnecessary `utf-8` from `str.encode`/`bytes.decode` * [utils] LazyList: Expose unnecessarily "protected" attributes and other minor cleanup
* [cleanup] Sort importspukkandan2022-04-121-2/+1
| | | | | | Using https://github.com/PyCQA/isort isort -m VERTICAL_HANGING_INDENT --py 36 -l 80 --rr -n --tc .
* [cleanup] Upgrade syntaxpukkandan2022-04-121-11/+9
| | | | | | | | | | 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
* [cleanup] Remove unused code paths (#2173)felix2022-04-121-35/+1
| | | | | | | | | | | | | | | | | | | Notes: * `_windows_write_string`: Fixed in 3.6 * https://bugs.python.org/issue1602 * PEP: https://www.python.org/dev/peps/pep-0528 * Windows UTF-8 fix: Fixed in 3.3 * https://bugs.python.org/issue13216 * `__loader__`: is always present in 3.3+ * https://bugs.python.org/issue14646 * `workaround_optparse_bug9161`: Fixed in 2.7 * https://bugs.python.org/issue9161 Authored by: fstirlitz
* [cleanup,docs] Minor fixespukkandan2022-02-031-1/+1
| | | | Closes #2541, #2484
* [cleanup] Misc cleanuppukkandan2021-12-231-1/+1
| | | | Closes #1942 #1976 #2020 #2058 #1984
* Release 2021.12.01pukkandan2021-12-011-2/+1
|
* [cleanup] Add deprecation warningspukkandan2021-11-291-4/+4
|
* [build] Use `workflow_dispatch` for releasepukkandan2021-11-291-0/+1
|
* [build] Refactor `pyinst.py` and misc cleanuppukkandan2021-10-211-9/+9
| | | | Closes #1361
* [build] Release windows exe built with py2exepukkandan2021-10-211-11/+11
| | | | | Closes: #855 Related: #661, #705, #890, #1024, #1160
* [build] Build standalone MacOS packages (#1221)Ricardo2021-10-211-14/+20
| | | | Closes #1075 Authored by: smplayer-dev
* Don't create console for subprocesses on Windows (#1261)pukkandan2021-10-201-2/+2
| | | Closes #1251
* [update] Clean up error reportingpukkandan2021-10-111-61/+74
| | | | Closes #1224
* [build] Allow building with py2exe (and misc fixes)pukkandan2021-10-041-12/+21
| | | | | py2exe config is copied from youtube-dl Closes #1160
* [update] Check for new version even if not updateablepukkandan2021-09-271-18/+18
|
* [build] Improve release process (#880)pukkandan2021-09-241-13/+21
| | | | | | | | * Automate more of the release process by animelover1984, pukkandan - closes #823 * Fix sha256 by nihil-admirari - closes #385 * Bring back brew taps by nao20010128nao #865 * Provide `--onedir` zip for windows by pukkandan - Closes #1024, #661, #705 and #890 Authored by: pukkandan, animelover1984, nihil-admirari, nao20010128nao
* [build] Build Windows x86 version with py3.7pukkandan2021-06-101-6/+2
| | | | | | | | | and remove redundant tests Closes #390 :ci skip Co-authored by: pukkandan, shirt-dev
* Revert "[build] Build Windows x86 version with py3.8"pukkandan2021-06-091-2/+6
| | | | | | | | This reverts commit aa75e51f992c206b07ab4de592f11a871827bf4b. See #390 This is being reverted instead of modified due to #388
* [build] Build Windows x86 version with py3.8pukkandan2021-06-091-6/+2
| | | | | | | and remove redundant tests :ci skip Ao-authored by: pukkandan, shirt-dev
* [build,update] Add GNU-style SHA512 and prepare updater for simlar SHA256 (#383)Nil Admirari2021-06-081-4/+10
| | | | | Authored by: nihil-admirari <50202386+nihil-admirari@users.noreply.github.com> Related: #385
* [update] Block further update for unsupported systemspukkandan2021-06-011-8/+15
|
* [update] Replace self without launching a subprocess in windowspukkandan2021-05-261-15/+21
| | | | | | | | | | | | | | | Closes: #335, https://github.com/ytdl-org/youtube-dl/issues/28488, https://github.com/ytdl-org/youtube-dl/issues/5810, https://github.com/ytdl-org/youtube-dl/issues/5994 In windows, a running executable cannot be replaced. So, the old updater worked by launching a batch script and then exiting, so that the batch script can replace the executable. However, this caused the above-mentioned issues. The new method takes advantage of the fact that while the executable cannot be replaced or deleted, it can still be renamed. The current update process on windows is as follows: 1. Delete `yt-dlp.exe.old` if it exists 2. Download the new version as `yt-dlp.exe.new` 3. Rename the running exe to `yt-dlp.exe.old` 4. Rename `yt-dlp.exe.new` to `yt-dlp.exe` 5. Open a shell that deletes `yt-dlp.exe.old` and terminate While we still use a subprocess, the actual update is already done before the app terminates and the batch script does not print anything to stdout/stderr. So this solves all the above issues
* [cleanup] Refactor updaterpukkandan2021-05-261-67/+71
| | | | | The updater now uses `.update.run_update` and not `.update.update_self`. Although I don't expect anyone to be using the updater via API, a wrapper `update_self` is provided for compatibility just in case
* [cleanup] Fix linter and some typospukkandan2021-04-281-4/+4
| | | | * Also remove inconsistent use of `"` in setup.py
* [update] Fix updater removing the executable bit on some UNIX distrospukkandan2021-03-031-16/+6
| | | | Closes #133
* [update] Fix current build hash for UNIXpukkandan2021-03-031-7/+6
|
* Completely change project name to yt-dlp (#85)Pccode662021-02-251-0/+244
* 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