Skip to content

bug: Meta parsing failure for StremThru Store (PikPak) when wrapping is enabled #831

@hsp1020

Description

@hsp1020

Deployment Method

Public ElfHosted Instance

Addon Version

v2.25.4

Bug Area

Deploying

Device/Browser/OS/Stremio Version

All Platform

Bug Description / Steps to Reproduce

Bug Description
There is a parsing issue when using StremThru Store (PikPak) with the wrapping feature enabled. Specifically, for movie files or single episode files from a series, the metadata fails to display and returns an aiostreamserror.

When wrapping is disabled, the metadata (including the id, name, and videos array) is parsed and displayed correctly. This suggests that the wrapping logic is failing to handle certain data structures during the transformation process.

Error Response (Wrapped):
"meta": {
"id": "aiostreamserror.%7B%22errorTitle%22%3A%22%5B%E2%9D%8C%5D%20StremThru%20Store%22%2C%22errorDescription%22%3A%22Failed%20to%20parse%20meta%20for%20StremThru%20Store%20PKP%22%7D",
"name": "[❌] StremThru Store",
"description": "Failed to parse meta for StremThru Store PKP",
"type": "movie"
}

Correct Response (Unwrapped):
1st case
{
"meta": {
"id": "st:store:pp:VOoBMRpuHG3Y9T5P5kbHrwyMo2",
"type": "other",
"name": "[SubsPlease] Maou no Musume wa Yasashi Sugiru!! - 01 (1080p) [F46D15F5].mkv",
"poster": "https://live.metahub.space/poster/small/tt38969275/img",
"videos": [
{
"id": "st:store:pp:VOoBMRpuHG3Y9T5P5kbHrwyMo2:stremthru:%2F%2Fstore%2Fpikpak%2FVk9vQk1ScHVIRzNZOVQ1UDVrYkhyd3lNbzI6Vk9vQk1ScHVIRzNZOVQ1UDVrYkhyd3lNbzI=",
"title": "[SubsPlease] Maou no Musume wa Yasashi Sugiru!! - 01 (1080p) [F46D15F5].mkv",
"episode": 1,
"season": 0
}
]
}
}

2nd case
{
"meta": {
"id": "st:store:pp:VOnjiVUrttatfKhKb_JxlxgGo2",
"type": "other",
"name": "Marty Supreme (2025) [2160p] [4K] [WEB] [5.1] [YTS.BZ]",
"poster": "https://images.metahub.space/poster/small/tt32916440/img",
"background": "https://images.metahub.space/background/medium/tt32916440/img",
"logo": "https://images.metahub.space/logo/medium/tt32916440/img",
"description": "[ 🧲 c130a1eb467daa36891afcec2e961d905dcc72f2 ] [ ✏️ Marty Supreme ] [ 📅 2025 ] [ 🎥 4k ] [ 💿 WEB ] [ 🎧 5.1 ] Marty Mauser, a young man with a dream no one respects, goes to hell and back in pursuit of greatness.",
"released": "2025-12-25T00:00:00Z",
"links": [
{
"name": "8.1",
"category": "imdb",
"url": "https://imdb.com/title/tt32916440"
},
{
"name": "Marty Supreme",
"category": "share",
"url": "https://www.strem.io/s/movie/marty-supreme-32916440"
},
{
"name": "Drama",
"category": "Genres",
"url": "stremio:///discover/https%3A%2F%2Fv3-cinemeta.strem.io%2Fmanifest.json/movie/top?genre=Drama"
},
{
"name": "Sport",
"category": "Genres",
"url": "stremio:///discover/https%3A%2F%2Fv3-cinemeta.strem.io%2Fmanifest.json/movie/top?genre=Sport"
},
{
"name": "Timothée Chalamet",
"category": "Cast",
"url": "stremio:///search?search=Timoth%C3%A9e%20Chalamet"
},
{
"name": "Gwyneth Paltrow",
"category": "Cast",
"url": "stremio:///search?search=Gwyneth%20Paltrow"
},
{
"name": "Odessa A'zion",
"category": "Cast",
"url": "stremio:///search?search=Odessa%20A'zion"
},
{
"name": "Josh Safdie",
"category": "Writers",
"url": "stremio:///search?search=Josh%20Safdie"
},
{
"name": "Ronald Bronstein",
"category": "Writers",
"url": "stremio:///search?search=Ronald%20Bronstein"
},
{
"name": "Josh Safdie",
"category": "Directors",
"url": "stremio:///search?search=Josh%20Safdie"
}
],
"videos": [
{
"id": "st:store:pp:VOnjiVUrttatfKhKb_JxlxgGo2:stremthru:%2F%2Fstore%2Fpikpak%2FVk9uamlWVXJ0dGF0ZktoS2JfSnhseGdHbzI6Vk9uamlWVXJ0dGF0ZktoS2JfSnhseGdJbzI=",
"title": "Marty.Supreme.2025.2160p.4K.WEB.x265.10bit.AAC5.1-[YTS.BZ].mkv",
"released": "2026-03-15T12:21:14.388+08:00",
"available": true,
"episode": 0,
"season": 0
}
]
}
}

Steps to Reproduce

  1. Configure the addon to use StremThru Store (PikPak).
  2. Enable the Wrapping option in the settings.
  3. Attempt to access a movie or a single episode file from a series.
  4. Observe that the metadata fails to load and displays the "Failed to parse meta" error.
  5. Disable Wrapping and observe that the metadata loads correctly.

Expected Behavior

The wrapping logic should correctly parse and map the metadata for all file types, including movies and single episodes, without triggering a parsing error. It should maintain consistency with the unwrapped data structure while applying the necessary wrapping fields.

Configuration Export

aiostreams-config-2026-03-21.15-13-35.json

Screenshots

Error Response (Wrapped):
Image
Correct Response (Unwrapped):
Image
Image

Debugging Checklist

  • If applicable, I have included server logs
  • If applicable, I have included MediaFlow logs

Issue Checklist

  • I have written a short but informative title that clearly describes the issue.
  • I have given clear and descriptive steps to reproduce the issue.
  • I have checked open and closed issues and confirmed that this is not a duplicate of another issue.
  • I have filled out all of the requested information adequately.
  • I am using the latest version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions