mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-18 23:11:12 +02:00
refactor(instagram): drop unused slug field and mark share links unsupported
This commit is contained in:
parent
4bc3d43b56
commit
d3c65a37b1
1 changed files with 2 additions and 2 deletions
|
|
@ -13,7 +13,8 @@ Normalization rules (from the reference spec):
|
||||||
- Numeric post-ID URLs cannot be single-post-extracted anonymously (the HTML
|
- Numeric post-ID URLs cannot be single-post-extracted anonymously (the HTML
|
||||||
page keys on the shortCode), so they resolve with ``numeric_post_id`` set and
|
page keys on the shortCode), so they resolve with ``numeric_post_id`` set and
|
||||||
the media flow skips them.
|
the media flow skips them.
|
||||||
- ``share/`` redirect resolution is handled at fetch time (network), not here.
|
- ``share/`` links are unsupported (they need a network redirect to resolve to a
|
||||||
|
canonical post/profile URL); pass the resolved ``/p/`` or profile URL instead.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
@ -40,7 +41,6 @@ class ResolvedUrl:
|
||||||
kind: ResolvedKind
|
kind: ResolvedKind
|
||||||
value: str
|
value: str
|
||||||
url: str
|
url: str
|
||||||
slug: str | None = None
|
|
||||||
numeric_post_id: bool = False
|
numeric_post_id: bool = False
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue