marqetive-lib 0.1.16__py3-none-any.whl → 0.1.17__py3-none-any.whl
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.
|
@@ -314,10 +314,17 @@ class InstagramClient(SocialMediaPlatform):
|
|
|
314
314
|
if media_type_str in type_map:
|
|
315
315
|
return type_map[media_type_str]
|
|
316
316
|
|
|
317
|
-
# Auto-detect
|
|
317
|
+
# Auto-detect from URL extension and count
|
|
318
318
|
if len(request.media_urls) > 1:
|
|
319
319
|
return MediaType.CAROUSEL
|
|
320
320
|
|
|
321
|
+
# Check if single media is a video (should be treated as reel)
|
|
322
|
+
if request.media_urls:
|
|
323
|
+
url_lower = request.media_urls[0].lower()
|
|
324
|
+
video_extensions = (".mp4", ".mov", ".avi", ".webm", ".m4v")
|
|
325
|
+
if any(url_lower.endswith(ext) for ext in video_extensions):
|
|
326
|
+
return MediaType.REEL
|
|
327
|
+
|
|
321
328
|
return MediaType.IMAGE
|
|
322
329
|
|
|
323
330
|
async def _create_single_image_post(self, request: PostCreateRequest) -> Post:
|
|
@@ -7,7 +7,7 @@ marqetive/core/models.py,sha256=L2gA4FhW0feAXQFsz2ce1ttd0vScMRhatoTclhDGCU0,1472
|
|
|
7
7
|
marqetive/factory.py,sha256=irZ5oN8a__kXZH70UN2uI7TzqTXu66d4QZ1FoxSoiK8,14092
|
|
8
8
|
marqetive/platforms/__init__.py,sha256=RBxlQSGyELsulSnwf5uaE1ohxFc7jC61OO9CrKaZp48,1312
|
|
9
9
|
marqetive/platforms/instagram/__init__.py,sha256=c1Gs0ozG6D7Z-Uz_UQ7S3joL0qUTT9eUZPWcePyESk8,229
|
|
10
|
-
marqetive/platforms/instagram/client.py,sha256=
|
|
10
|
+
marqetive/platforms/instagram/client.py,sha256=6jnoIt4CbdIQdVoVuZ_2DI2tQKj6dKBF_-RbFUljVps,33744
|
|
11
11
|
marqetive/platforms/instagram/exceptions.py,sha256=TcD_pX4eSx_k4yW8DgfA6SGPiAz3VW7cMqM8DmiXIhg,8978
|
|
12
12
|
marqetive/platforms/instagram/media.py,sha256=0ZbUbpwJ025_hccL9X8qced_-LJGoL_-NdS84Op97VE,23228
|
|
13
13
|
marqetive/platforms/instagram/models.py,sha256=20v3m1037y3b_WlsKF8zAOgV23nFu63tfmmUN1CefOI,2769
|
|
@@ -33,6 +33,6 @@ marqetive/utils/helpers.py,sha256=Sh5HZD6AOJig_6T84n6JsKLosIkKIkpkiYTl69rnOOw,13
|
|
|
33
33
|
marqetive/utils/media.py,sha256=reVousdueG-h5jeI6uLGqVCfjYxlsMiWhx6XZwg-iHY,14664
|
|
34
34
|
marqetive/utils/oauth.py,sha256=x30XAW5VlND6TAPBsw9kZShko_Jsmn_NE-KOZjnBxGo,14359
|
|
35
35
|
marqetive/utils/retry.py,sha256=UcgrmVBVG5zd30_11mZnRnTaSFrbUYXBO1DrXPR0f8E,7627
|
|
36
|
-
marqetive_lib-0.1.
|
|
37
|
-
marqetive_lib-0.1.
|
|
38
|
-
marqetive_lib-0.1.
|
|
36
|
+
marqetive_lib-0.1.17.dist-info/METADATA,sha256=mXa8m82FUduoiT9f6hCpeoNe-ygPA8TCqI7EOon__a8,7876
|
|
37
|
+
marqetive_lib-0.1.17.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
38
|
+
marqetive_lib-0.1.17.dist-info/RECORD,,
|
|
File without changes
|