Skip to content

Commit

Permalink
Release 2024.05.27
Browse files Browse the repository at this point in the history
  • Loading branch information
bashonly committed May 27, 2024
1 parent a79278a commit dec4c54
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,22 @@ A [yt-dlp](https://github.com/yt-dlp/yt-dlp) extractor [plugin](https://github.c

---

* Pass `--extractor-args "tiktok:sec_uid=USERNAME1:SECUID1,USERNAME2:SECUID2"` to specify a secondary user ID (`SECUID`) for a given username (`USERNAME`)
## NOTICE

This plugin has been made obsolete by [yt-dlp version 2024.05.27](https://github.com/yt-dlp/yt-dlp/releases/tag/2024.05.27), [commit c53c2e4](https://github.com/yt-dlp/yt-dlp/commit/c53c2e40fde8f2e15c7c62f8ca1a5d9e90ddc079)

**The TikTok user extractor has now been fixed in yt-dlp. As such, this plugin will no longer be updated, and it has been disabled for yt-dlp versions where it is obsolete and/or incompatible**

Update your yt-dlp to the latest version (`yt-dlp -U`) if you have not already.

---

* Pass `--extractor-args "tiktok:sec_uid=USERNAME1:SECUID1,USERNAME2:SECUID2"` to specify a secondary user ID (`SECUID`) for a given username (`USERNAME`).
- **NOTE:** This extractor-arg does not apply to the fixed/actual yt-dlp extractor; it instead accepts `tiktokuser:`-prefixed URLs, e.g. `tiktokuser:SEC_UID`

## Installation

Requires yt-dlp `2023.09.24` or above.
Requires yt-dlp version [2023.09.24](https://github.com/yt-dlp/yt-dlp/releases/tag/2023.09.24) to [2024.05.26.232421](https://github.com/yt-dlp/yt-dlp-master-builds/releases/tag/2024.05.26.232421).

You can download the wheel of the [latest release](https://github.com/bashonly/yt-dlp-TTUser/releases/latest) and place the `.whl` file in one of [yt-dlp's plugin paths](https://github.com/yt-dlp/yt-dlp#installing-plugins).

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "hatchling.build"
name = "yt-dlp-TTUser"
description = "A yt-dlp extractor plugin for downloading all videos posted by a TikTok user"
authors = [{name = "bashonly", email = "[email protected]"}]
version = "2024.03.18"
version = "2024.05.27"
requires-python = ">=3.8"
readme = "README.md"
license = {file = "LICENSE"}
Expand Down
4 changes: 2 additions & 2 deletions yt_dlp_plugins/extractor/tt_user.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from yt_dlp.update import version_tuple
from yt_dlp.version import __version__

if version_tuple(__version__) < (2023, 9, 24):
raise ImportError('yt-dlp version 2023.09.24 or later is required to use the TTUser plugin')
if not ((2023, 9, 24) <= version_tuple(__version__) < (2024, 5, 27)):
raise ImportError('Only yt-dlp versions between 2023.09.24 and 2024.05.26.232421 can use this plugin')

import itertools
import random
Expand Down

0 comments on commit dec4c54

Please sign in to comment.