Skip to content

Commit

Permalink
Update SARJ-LLC.py
Browse files Browse the repository at this point in the history
  • Loading branch information
github-user-t authored Nov 28, 2023
1 parent 6fc925f commit 9314cc1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scrapers/SARJ-LLC/SARJ-LLC.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,12 @@ def scrape_model(base_url, name):


def map_media(data, studio, base_url):
url = ""
urls = []
studio_code = data["UUID"]
studio_name = {'Name': ""}
if studio is not None:
studio_url = studio[1]
url = f"https://www.{studio_url}{data['path']}"
urls = [f"https://www.{studio_url}{data['path']}"]
studio_name = {'Name': studio[0]}

director = None
Expand All @@ -195,7 +195,7 @@ def map_media(data, studio, base_url):
return {
'Title': data['name'],
'Details': data['description'],
'URLs': [url],
'URLs': urls,
'Date': data['publishedAt'][0:data['publishedAt'].find('T')],
'Tags': list(map(lambda t: {'Name': t}, data['tags'])),
'Performers': list(map(lambda m: map_model(base_url, m), data['models'])),
Expand Down

0 comments on commit 9314cc1

Please sign in to comment.