upload-post 2.5.0__tar.gz → 2.6.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: upload-post
3
- Version: 2.5.0
3
+ Version: 2.6.0
4
4
  Summary: Cross-platform social media upload for TikTok, Instagram, YouTube, LinkedIn, Facebook, Pinterest, Threads, Reddit, Bluesky, Discord, Telegram, and X (Twitter)
5
5
  Home-page: https://www.upload-post.com/
6
6
  Author: Upload-Post
@@ -300,6 +300,7 @@ boards = client.get_pinterest_boards("my-profile")
300
300
  - `allowedCountries` / `blockedCountries` - Country restrictions
301
301
  - `hasPaidProductPlacement` - Paid placement flag
302
302
  - `recordingDate` - Recording date (ISO 8601)
303
+ - `youtube_playlist_id` - Playlist ID (single string, list, or comma-separated) to add the uploaded video to after publishing
303
304
 
304
305
  ### LinkedIn
305
306
  - `visibility` - PUBLIC, CONNECTIONS, LOGGED_IN, CONTAINER
@@ -262,6 +262,7 @@ boards = client.get_pinterest_boards("my-profile")
262
262
  - `allowedCountries` / `blockedCountries` - Country restrictions
263
263
  - `hasPaidProductPlacement` - Paid placement flag
264
264
  - `recordingDate` - Recording date (ISO 8601)
265
+ - `youtube_playlist_id` - Playlist ID (single string, list, or comma-separated) to add the uploaded video to after publishing
265
266
 
266
267
  ### LinkedIn
267
268
  - `visibility` - PUBLIC, CONNECTIONS, LOGGED_IN, CONTAINER
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setup(
7
7
  name="upload-post",
8
- version="2.5.0",
8
+ version="2.6.0",
9
9
  author="Upload-Post",
10
10
  author_email="hi@img2html.com",
11
11
  description="Cross-platform social media upload for TikTok, Instagram, YouTube, LinkedIn, Facebook, Pinterest, Threads, Reddit, Bluesky, Discord, Telegram, and X (Twitter)",
@@ -15,7 +15,7 @@ Example:
15
15
  ... )
16
16
  """
17
17
 
18
- __version__ = "2.5.0"
18
+ __version__ = "2.6.0"
19
19
 
20
20
  from .api_client import UploadPostClient, UploadPostError
21
21
 
@@ -262,6 +262,12 @@ class UploadPostClient:
262
262
  data.append(("hasPaidProductPlacement", str(kwargs["hasPaidProductPlacement"]).lower()))
263
263
  if kwargs.get("recordingDate"):
264
264
  data.append(("recordingDate", kwargs["recordingDate"]))
265
+ playlist_value = kwargs.get("youtube_playlist_id")
266
+ if playlist_value:
267
+ if isinstance(playlist_value, (list, tuple)):
268
+ playlist_value = ",".join(str(p).strip() for p in playlist_value if str(p).strip())
269
+ if playlist_value:
270
+ data.append(("youtube_playlist_id", str(playlist_value)))
265
271
  if kwargs.get("subtitles"):
266
272
  for idx, sub in enumerate(kwargs["subtitles"]):
267
273
  if sub.get("language"):
@@ -464,6 +470,8 @@ class UploadPostClient:
464
470
  blockedCountries: Comma-separated country codes
465
471
  hasPaidProductPlacement: Paid placement flag
466
472
  recordingDate: Recording date (ISO 8601)
473
+ youtube_playlist_id: Playlist ID (or list/comma-separated of IDs) to add
474
+ the uploaded video to after publishing
467
475
  subtitles: List of subtitle dicts with keys: language (BCP-47),
468
476
  name (display name), file (path to SRT/VTT file), url (subtitle URL)
469
477
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: upload-post
3
- Version: 2.5.0
3
+ Version: 2.6.0
4
4
  Summary: Cross-platform social media upload for TikTok, Instagram, YouTube, LinkedIn, Facebook, Pinterest, Threads, Reddit, Bluesky, Discord, Telegram, and X (Twitter)
5
5
  Home-page: https://www.upload-post.com/
6
6
  Author: Upload-Post
@@ -300,6 +300,7 @@ boards = client.get_pinterest_boards("my-profile")
300
300
  - `allowedCountries` / `blockedCountries` - Country restrictions
301
301
  - `hasPaidProductPlacement` - Paid placement flag
302
302
  - `recordingDate` - Recording date (ISO 8601)
303
+ - `youtube_playlist_id` - Playlist ID (single string, list, or comma-separated) to add the uploaded video to after publishing
303
304
 
304
305
  ### LinkedIn
305
306
  - `visibility` - PUBLIC, CONNECTIONS, LOGGED_IN, CONTAINER
File without changes