Hey
Cool, thanks for the info. I’d be willing to open a PR. Is there some tutorial / guide on how to get the proper information for the audioID?
EDIT
I had a look at the store and extracted this payload parts from the XHR calls (source: tonies® | Audioinhalte Die drei ??? - und das Hexen-Handy | Jetzt bestellen):
Relevant JSON part
{
"series": {
"id": "d26ee5c2-00e8-41f5-8ceb-a3ce03c75558",
"key": "die-drei-2",
"name": "Die drei ???",
"slug": "die-drei-fragezeichen",
"description": null,
"productsCommonAttributes": null,
"hasChokingHazardWarning": null,
"variantsLabel": null,
"productsWarning": null,
"logoUrl": null,
"variantsType": null
},
"character": {
"id": "a64e230c-06d1-4a1e-afda-5a0e78bd3e23",
"key": "die-drei-4",
"name": "Die drei ???",
"slug": "die-drei-fragezeichen-c",
"description": null,
"productsCommonAttributes": null,
"hasChokingHazardWarning": null,
"variantsLabel": null,
"productsWarning": null,
"logoUrl": "https://cdn.tonies.de/o/images/1_b5d215aac918057a5bc01749192d81e9f04b95d0f0f78037d8e6f127/3_XxVP80dtBD3K34hx/the_three__530x530.jpg",
"variantsType": null
},
"mainCategory": {
"id": "59b89015-4cba-422a-9c16-4c6b66e1f938",
"key": "tunes",
"name": "Audio Content",
"slug": "audio-content",
"description": "Inhalte für die Audiothek",
"productsCommonAttributes": null,
"hasChokingHazardWarning": null,
"variantsLabel": null,
"productsWarning": null,
"logoUrl": null,
"variantsType": null
},
"variantId": 1,
"sku": "2000000471",
"variantKey": "5fe72de4-393a-41ac-98ab-47bfbe8cb937",
"price": {
"validUntil": "2124-12-31T23:59:00+00:00",
"validFrom": "1970-01-01T00:00:00+00:00",
"id": "9059de0a-b12c-4ae3-bbb8-e99cf3217e31",
"value": {
"type": "centPrecision",
"currencyCode": "EUR",
"centAmount": 699,
"fractionDigits": 2,
"amount": 6.99
},
"strikeValue": null
},
"images": [
{
"url": "https://cdn.tonies.de/o/images/1_9faa3cda75e5b7ccfd79225520511a8f978de0938b4e9069d53b24ce/3_TWVrDlR8M3GKjPPC/the_three_101_und_das_hexen_handy_530x530.jpg",
"label": "The Three ??? – 101 – und das Hexen-Handy",
"width": 1234,
"height": 1234
}
],
"firstImage": {
"url": "https://cdn.tonies.de/o/images/1_9faa3cda75e5b7ccfd79225520511a8f978de0938b4e9069d53b24ce/3_TWVrDlR8M3GKjPPC/the_three_101_und_das_hexen_handy_530x530.jpg",
"label": "The Three ??? – 101 – und das Hexen-Handy",
"width": 1234,
"height": 1234
},
"productId": "710ce163-27f8-472d-abf9-82016b840855",
"productKey": "5fe72de4-393a-41ac-98ab-47bfbe8cb937",
"name": "und das Hexen-Handy",
"slug": "und-das-hexen-handy",
"description": "Der neueste Hit unter den Teenagern in Rocky Beach: \"Hexenhandys\"! Sie leichten im Dunkeln giftgrün und statt zu klingeln, kichern sie gruselig.\n \nDoch dann legt sich ein düsterer Schatten auf das kleine Küstenstädtchen.\nEinige der stolzen Besitzer dieser Handys verschwinden auf unheimliche Weise. Zurück am Tatort bleiben nur die leuchtenden Mobiltelefone, auf deren Display die Teufelszahl 666 erscheint.\n \nDie drei Detektive Justus, Peter und Bob nehmen per Handy die Spur auf, ohne zu wissen, was sie am anderen Ende der Leitung erwartet...",
"categories": [
{
"items": [
{
"id": "59b89015-4cba-422a-9c16-4c6b66e1f938",
"key": "tunes",
"name": "Audio Content",
"slug": "audio-content",
"description": "Inhalte für die Audiothek",
"productsCommonAttributes": null,
"hasChokingHazardWarning": null,
"variantsLabel": null,
"productsWarning": null,
"logoUrl": null,
"variantsType": null
}
]
},
{
"items": [
{
"id": "4e1bab68-2d69-408e-b307-76becc2b9b90",
"key": "characters",
"name": "Series Groups",
"slug": "characters",
"description": null,
"productsCommonAttributes": null,
"hasChokingHazardWarning": null,
"variantsLabel": null,
"productsWarning": null,
"logoUrl": null,
"variantsType": null
},
{
"id": "a64e230c-06d1-4a1e-afda-5a0e78bd3e23",
"key": "die-drei-4",
"name": "Die drei ???",
"slug": "die-drei-fragezeichen-c",
"description": null,
"productsCommonAttributes": null,
"hasChokingHazardWarning": null,
"variantsLabel": null,
"productsWarning": null,
"logoUrl": "https://cdn.tonies.de/o/images/1_b5d215aac918057a5bc01749192d81e9f04b95d0f0f78037d8e6f127/3_XxVP80dtBD3K34hx/the_three__530x530.jpg",
"variantsType": null
}
]
},
{
"items": [
{
"id": "4e1bab68-2d69-408e-b307-76becc2b9b90",
"key": "characters",
"name": "Series Groups",
"slug": "characters",
"description": null,
"productsCommonAttributes": null,
"hasChokingHazardWarning": null,
"variantsLabel": null,
"productsWarning": null,
"logoUrl": null,
"variantsType": null
},
{
"id": "a64e230c-06d1-4a1e-afda-5a0e78bd3e23",
"key": "die-drei-4",
"name": "Die drei ???",
"slug": "die-drei-fragezeichen-c",
"description": null,
"productsCommonAttributes": null,
"hasChokingHazardWarning": null,
"variantsLabel": null,
"productsWarning": null,
"logoUrl": "https://cdn.tonies.de/o/images/1_b5d215aac918057a5bc01749192d81e9f04b95d0f0f78037d8e6f127/3_XxVP80dtBD3K34hx/the_three__530x530.jpg",
"variantsType": null
},
{
"id": "d26ee5c2-00e8-41f5-8ceb-a3ce03c75558",
"key": "die-drei-2",
"name": "Die drei ???",
"slug": "die-drei-fragezeichen",
"description": null,
"productsCommonAttributes": null,
"hasChokingHazardWarning": null,
"variantsLabel": null,
"productsWarning": null,
"logoUrl": null,
"variantsType": null
}
]
}
],
"productTypeKey": "tunes",
"productFamily": "digital",
"searchKeywords": [],
"metaTitle": null,
"metaDescription": null,
"shopLocale": "de-DE",
"productIndex": "de-DE_2000000471_9059de0a-b12c-4ae3-bbb8-e99cf3217e31",
"productUrl": "/de-de/audio-content/die-drei-fragezeichen/und-das-hexen-handy/",
"available": true,
"productsCommonAttributes": null,
"hasChokingHazardWarning": null,
"salesId": "2000000471",
"readers": null,
"maxQuantity": 1,
"ageMin": 8,
"publicationDate": "2020-09-05T00:00:00+00:00",
"runTime": 4313,
"flag": null,
"tracks": "Teil 1\nTeil 2\nTeil 3\nTeil 4",
"audioSampleUrl": "",
"audioLibraryAssignUrl": "https://my.tonies.com/audio-library/5fe72de4-393a-41ac-98ab-47bfbe8cb937/assign",
"genre": {
"name": "Hörspiel",
"key": "audio-play"
},
"theme": [],
"packageContents": null,
"language": {
"name": "de-de",
"key": "de-de"
},
"soldLastMonth": 4,
"orderFrom": null,
"authors": null,
"shippingFrom": null,
"colors": null,
"weight": null,
"colorcode": null,
"dimensions": null,
"production": null,
"copyrights": null,
"variantLabel": null,
"episodeNumber": 101,
"bundleIdentifier": null,
"assignableToAllCreativeTonies": true,
"gtin": null,
"videoUrl": null,
"bundledProducts": [],
"numberOfPlayers": null,
"packageSize": null,
"sessionTime": null,
"idField": "productIndex"
}
There is a variant in the payload however it is actually referencing another episode:
Second Episode
{
"series": {
"id": "d26ee5c2-00e8-41f5-8ceb-a3ce03c75558",
"key": "die-drei-2",
"name": "Die drei ???",
"slug": "die-drei-fragezeichen",
"description": null,
"productsCommonAttributes": null,
"hasChokingHazardWarning": null,
"variantsLabel": null,
"productsWarning": null,
"logoUrl": null,
"variantsType": null
},
"character": {
"id": "a64e230c-06d1-4a1e-afda-5a0e78bd3e23",
"key": "die-drei-4",
"name": "Die drei ???",
"slug": "die-drei-fragezeichen-c",
"description": null,
"productsCommonAttributes": null,
"hasChokingHazardWarning": null,
"variantsLabel": null,
"productsWarning": null,
"logoUrl": "https://cdn.tonies.de/o/images/1_b5d215aac918057a5bc01749192d81e9f04b95d0f0f78037d8e6f127/3_XxVP80dtBD3K34hx/the_three__530x530.jpg",
"variantsType": null
},
"mainCategory": {
"id": "59b89015-4cba-422a-9c16-4c6b66e1f938",
"key": "tunes",
"name": "Audio Content",
"slug": "audio-content",
"description": "Inhalte für die Audiothek",
"productsCommonAttributes": null,
"hasChokingHazardWarning": null,
"variantsLabel": null,
"productsWarning": null,
"logoUrl": null,
"variantsType": null
},
"variantId": 1,
"sku": "2000000472",
"variantKey": "d1158109-c35e-493e-9a64-c9f346208cea",
"price": {
"validUntil": "2124-12-31T23:59:00+00:00",
"validFrom": "1970-01-01T00:00:00+00:00",
"id": "bf087028-d5b3-45e1-8ad6-c5e1c0b6f0b1",
"value": {
"type": "centPrecision",
"currencyCode": "EUR",
"centAmount": 699,
"fractionDigits": 2,
"amount": 6.99
},
"strikeValue": null
},
"images": [
{
"url": "https://cdn.tonies.de/o/images/1_8fc8fc64cb066926700003de621e4dc03d2ec2b8d9ab31317d3f07b3/3_lDmlvlRbL5GjCTnt/the_three_201_hohenangst_530x530.jpg",
"label": "The Three ??? – 201 – Höhenangst",
"width": 1234,
"height": 1234
}
],
"firstImage": {
"url": "https://cdn.tonies.de/o/images/1_8fc8fc64cb066926700003de621e4dc03d2ec2b8d9ab31317d3f07b3/3_lDmlvlRbL5GjCTnt/the_three_201_hohenangst_530x530.jpg",
"label": "The Three ??? – 201 – Höhenangst",
"width": 1234,
"height": 1234
},
"productId": "9989a1df-b46f-4ec9-8d47-fbbde7c6e442",
"productKey": "d1158109-c35e-493e-9a64-c9f346208cea",
"name": "Höhenangst",
"slug": "hohenangst",
"description": "Ein unbekannter Anrufer behauptet, Bob wäre der einzige Augenzeuge eines Mordes. Und als wäre das nicht schon seltsam genug, handelt das neueste Buch des Autors Ben Hustler von genau diesem Verbrechen. Bob glaubt an einen schlechten Scherz. Doch als er beginnt, die ersten Kapitel von \"Höhenangst\" zu lesen, überkommt ihn eine Gänsehaut.",
"categories": [
{
"items": [
{
"id": "59b89015-4cba-422a-9c16-4c6b66e1f938",
"key": "tunes",
"name": "Audio Content",
"slug": "audio-content",
"description": "Inhalte für die Audiothek",
"productsCommonAttributes": null,
"hasChokingHazardWarning": null,
"variantsLabel": null,
"productsWarning": null,
"logoUrl": null,
"variantsType": null
}
]
},
{
"items": [
{
"id": "4e1bab68-2d69-408e-b307-76becc2b9b90",
"key": "characters",
"name": "Series Groups",
"slug": "characters",
"description": null,
"productsCommonAttributes": null,
"hasChokingHazardWarning": null,
"variantsLabel": null,
"productsWarning": null,
"logoUrl": null,
"variantsType": null
},
{
"id": "a64e230c-06d1-4a1e-afda-5a0e78bd3e23",
"key": "die-drei-4",
"name": "Die drei ???",
"slug": "die-drei-fragezeichen-c",
"description": null,
"productsCommonAttributes": null,
"hasChokingHazardWarning": null,
"variantsLabel": null,
"productsWarning": null,
"logoUrl": "https://cdn.tonies.de/o/images/1_b5d215aac918057a5bc01749192d81e9f04b95d0f0f78037d8e6f127/3_XxVP80dtBD3K34hx/the_three__530x530.jpg",
"variantsType": null
}
]
},
{
"items": [
{
"id": "4e1bab68-2d69-408e-b307-76becc2b9b90",
"key": "characters",
"name": "Series Groups",
"slug": "characters",
"description": null,
"productsCommonAttributes": null,
"hasChokingHazardWarning": null,
"variantsLabel": null,
"productsWarning": null,
"logoUrl": null,
"variantsType": null
},
{
"id": "a64e230c-06d1-4a1e-afda-5a0e78bd3e23",
"key": "die-drei-4",
"name": "Die drei ???",
"slug": "die-drei-fragezeichen-c",
"description": null,
"productsCommonAttributes": null,
"hasChokingHazardWarning": null,
"variantsLabel": null,
"productsWarning": null,
"logoUrl": "https://cdn.tonies.de/o/images/1_b5d215aac918057a5bc01749192d81e9f04b95d0f0f78037d8e6f127/3_XxVP80dtBD3K34hx/the_three__530x530.jpg",
"variantsType": null
},
{
"id": "d26ee5c2-00e8-41f5-8ceb-a3ce03c75558",
"key": "die-drei-2",
"name": "Die drei ???",
"slug": "die-drei-fragezeichen",
"description": null,
"productsCommonAttributes": null,
"hasChokingHazardWarning": null,
"variantsLabel": null,
"productsWarning": null,
"logoUrl": null,
"variantsType": null
}
]
}
],
"productTypeKey": "tunes",
"productFamily": "digital",
"searchKeywords": [],
"metaTitle": null,
"metaDescription": null,
"shopLocale": "de-DE",
"productIndex": "de-DE_2000000472_bf087028-d5b3-45e1-8ad6-c5e1c0b6f0b1",
"productUrl": "/de-de/audio-content/die-drei-fragezeichen/hohenangst/",
"available": true,
"productsCommonAttributes": null,
"hasChokingHazardWarning": null,
"salesId": "2000000472",
"readers": null,
"maxQuantity": 1,
"ageMin": 8,
"publicationDate": "2020-09-05T00:00:00+00:00",
"runTime": 4843,
"flag": null,
"tracks": "Inhaltsangabe\nTeil 01\nTeil 02\nTeil 03\nTeil 04\nTeil 05\nTeil 06\nTeil 07\nTeil 08\nTeil 09\nTeil 10\nTeil 11\nTeil 12\nTeil 13\nTeil 14\nTeil 15\nTeil 16\nTeil 17\nTeil 18\nTeil 19\nTeil 20\nTeil 21\nTeil 22\nTeil 23\nTeil 24\nTeil 25\nTeil 26\nTeil 27\nTeil 28\nTeil 29\nTeil 30\nTeil 31\nTeil 32\nTeil 33\nTeil 34\nTeil 35\nTeil 36\nTeil 37\nTeil 38\nTeil 39\nTeil 40\nOutro",
"audioSampleUrl": "",
"audioLibraryAssignUrl": "https://my.tonies.com/audio-library/d1158109-c35e-493e-9a64-c9f346208cea/assign",
"genre": {
"name": "Hörspiel",
"key": "audio-play"
},
"theme": [
{
"name": "Detektivgeschichten",
"key": "detective-stories"
}
],
"packageContents": null,
"language": {
"name": "de-de",
"key": "de-de"
},
"soldLastMonth": 1,
"orderFrom": null,
"authors": "André Minninger",
"shippingFrom": null,
"colors": null,
"weight": null,
"colorcode": null,
"dimensions": null,
"production": null,
"copyrights": null,
"variantLabel": null,
"episodeNumber": 201,
"bundleIdentifier": null,
"assignableToAllCreativeTonies": true,
"gtin": null,
"videoUrl": null,
"bundledProducts": [],
"numberOfPlayers": null,
"packageSize": null,
"sessionTime": null,
"idField": "productIndex"
}
What part of the payload is relevant for the yaml and how would I have to call the yaml file?
The information about the TAF are:
{
"audioId": 1701244274,
"sha1Hash": "c568616bb4f6645274489038818eea414d7f74a2",
"size": 51584410,
"valid": true
}
If you could guide me into how I have to create the yaml, I’ll be happy to open a PR as well as for the other episode.