Update changelog

This commit is contained in:
Ivan Habunek 2024-04-10 08:25:11 +02:00
parent 3ffa7acfef
commit bce573ef3c
No known key found for this signature in database
GPG Key ID: F5F0623FF5EBCB3D
6 changed files with 36 additions and 27 deletions

View File

@ -3,11 +3,18 @@ twitch-dl changelog
<!-- Do not edit. This file is automatically generated from changelog.yaml.--> <!-- Do not edit. This file is automatically generated from changelog.yaml.-->
### [2.2.0 (TBA)](https://github.com/ihabunek/twitch-dl/releases/tag/2.2.0) ### [2.2.0 (2024-04-10)](https://github.com/ihabunek/twitch-dl/releases/tag/2.2.0)
* **Requires python 3.8 or later** * **Requires Python 3.8+**
* Migrated to click lib for cli parsing * Migrated to Click library for generating the commandline interface
* Add shell auto completion * Add shell auto completion, see 'Shell completion' in docs.
* Add setting defaults via environment variables, see 'Environment variables' in
docs
* Add `download --concat` option to avoid using ffmeg for joinig vods and concat
them instead. This will produce a `.ts` file by default.
* Add `download --dry-run` option to skip actual download (thanks @metacoma)
* Add video description to metadata (#129)
* Add `clips --compact` option for listing clips in one-per-line mode
### [2.1.4 (2024-01-06)](https://github.com/ihabunek/twitch-dl/releases/tag/2.1.4) ### [2.1.4 (2024-01-06)](https://github.com/ihabunek/twitch-dl/releases/tag/2.1.4)

View File

@ -1,11 +1,12 @@
2.2.0: 2.2.0:
date: TBA date: 2024-04-10
changes: changes:
- "**Requires python 3.8 or later**" - "**Requires Python 3.8+**"
- "Migrated to Click library for generating the commandline interface" - "Migrated to Click library for generating the commandline interface"
- "Add shell auto completion, see: https://twitch-dl.bezdomni.net/shell_completion.html" - "Add shell auto completion, see 'Shell completion' in docs."
- "Add setting defaults via environment variables, see: https://twitch-dl.bezdomni.net/environment_variables.html" - "Add setting defaults via environment variables, see 'Environment variables' in docs"
- "Add `download --concat` option to avoid using ffmeg for joinig vods and concat them instead. This will produce a `.ts` file by default." - "Add `download --concat` option to avoid using ffmeg for joinig vods and concat them instead. This will produce a `.ts` file by default."
- "Add `download --dry-run` option to skip actual download (thanks @metacoma)"
- "Add video description to metadata (#129)" - "Add video description to metadata (#129)"
- "Add `clips --compact` option for listing clips in one-per-line mode" - "Add `clips --compact` option for listing clips in one-per-line mode"

View File

@ -3,11 +3,18 @@ twitch-dl changelog
<!-- Do not edit. This file is automatically generated from changelog.yaml.--> <!-- Do not edit. This file is automatically generated from changelog.yaml.-->
### [2.2.0 (TBA)](https://github.com/ihabunek/twitch-dl/releases/tag/2.2.0) ### [2.2.0 (2024-04-10)](https://github.com/ihabunek/twitch-dl/releases/tag/2.2.0)
* **Requires python 3.8 or later** * **Requires Python 3.8+**
* Migrated to click lib for cli parsing * Migrated to Click library for generating the commandline interface
* Add shell auto completion * Add shell auto completion, see 'Shell completion' in docs.
* Add setting defaults via environment variables, see 'Environment variables' in
docs
* Add `download --concat` option to avoid using ffmeg for joinig vods and concat
them instead. This will produce a `.ts` file by default.
* Add `download --dry-run` option to skip actual download (thanks @metacoma)
* Add video description to metadata (#129)
* Add `clips --compact` option for listing clips in one-per-line mode
### [2.1.4 (2024-01-06)](https://github.com/ihabunek/twitch-dl/releases/tag/2.1.4) ### [2.1.4 (2024-01-06)](https://github.com/ihabunek/twitch-dl/releases/tag/2.1.4)

View File

@ -18,6 +18,11 @@ twitch-dl clips [OPTIONS] CHANNEL_NAME
<td>Fetch all clips, overrides --limit</td> <td>Fetch all clips, overrides --limit</td>
</tr> </tr>
<tr>
<td class="code">-c, --compact</td>
<td>Show clips in compact mode, one line per video</td>
</tr>
<tr> <tr>
<td class="code">-d, --download</td> <td class="code">-d, --download</td>
<td>Download clips in given period (in source quality)</td> <td>Download clips in given period (in source quality)</td>
@ -25,7 +30,7 @@ twitch-dl clips [OPTIONS] CHANNEL_NAME
<tr> <tr>
<td class="code">-l, --limit INTEGER</td> <td class="code">-l, --limit INTEGER</td>
<td>Number of clips to fetch [max: 100] [default: <code>10</code>]</td> <td>Number of clips to fetch. Defaults to 40 in compact mode, 10 otherwise.</td>
</tr> </tr>
<tr> <tr>

View File

@ -28,7 +28,7 @@ twitch-dl download [OPTIONS] [IDS]...
<tr> <tr>
<td class="code">--concat</td> <td class="code">--concat</td>
<td>Do not use ffmpeg to join files, concat them instead</td> <td>Do not use ffmpeg to join files, concat them instead. This will produce a .ts file by default.</td>
</tr> </tr>
<tr> <tr>

View File

@ -11,12 +11,10 @@ Usage: tag_version [version]
import subprocess import subprocess
import sys import sys
import textwrap import textwrap
import yaml
import twitchdl
from datetime import date from datetime import date
from os import path from os import path
from pkg_resources import get_distribution
import yaml
path = path.join(path.dirname(path.dirname(path.abspath(__file__))), "changelog.yaml") path = path.join(path.dirname(path.dirname(path.abspath(__file__))), "changelog.yaml")
with open(path, "r") as f: with open(path, "r") as f:
@ -33,15 +31,6 @@ if not changelog_item:
print(f"Version `{version}` not found in changelog.", file=sys.stderr) print(f"Version `{version}` not found in changelog.", file=sys.stderr)
sys.exit(1) sys.exit(1)
if twitchdl.__version__ != version:
print(f"twitchdl.__version__ is `{twitchdl.__version__}`, expected {version}.", file=sys.stderr)
sys.exit(1)
dist_version = get_distribution('twitch-dl').version
if dist_version != version:
print(f"Version in setup.py is `{dist_version}`, expected {version}.", file=sys.stderr)
sys.exit(1)
release_date = changelog_item["date"] release_date = changelog_item["date"]
changes = changelog_item["changes"] changes = changelog_item["changes"]
description = changelog_item["description"] if "description" in changelog_item else None description = changelog_item["description"] if "description" in changelog_item else None