simplecast: fix schema

Signed-off-by: Alexis Pentori <alexis@status.im>
This commit is contained in:
Alexis Pentori 2024-04-22 11:56:28 +02:00
parent 204812e8f8
commit e34407cffb
No known key found for this signature in database
GPG Key ID: 65250D2801E47A10
3 changed files with 5 additions and 4 deletions

View File

@ -14,7 +14,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: 464a7cea-0317-485e-9a9c-bcd06155bfff
dockerImageTag: 1.1.0
dockerImageTag: 1.1.1
dockerRepository: harbor.status.im/status-im/airbyte/source-simplecast-fetcher
githubIssueLabel: source-simplecast-fecther
icon: simplecast-fecther.svg

View File

@ -47,7 +47,7 @@ class SimplecastFectherStream(HttpStream):
class Podcast(SimplecastFectherStream):
primary_key = "podcast_id"
primary_key = "id"
@property
@ -75,7 +75,7 @@ class Podcast(SimplecastFectherStream):
yield podcast
class Episode(HttpSubStream, SimplecastFectherStream):
primary_key="episode_id"
primary_key="id"
@property
def use_cache(self) -> bool:
@ -141,7 +141,7 @@ class AnalyticSubStream(HttpSubStream, SimplecastFectherStream, ABC):
yield analytic
class AnalyticLocation(AnalyticSubStream):
primary_key="analytic_location_id"
primary_key=None
def __init__(self, **kwargs):
super().__init__(endpoint="location", keys_dict=LOCATION_KEYS, collection_name="countries", **kwargs)