Skip to content

Commit

Permalink
Merge pull request #1544 from github-user-t/patch-1
Browse files Browse the repository at this point in the history
URLs weren't getting populated for SARJ-LLC.py
  • Loading branch information
Maista6969 authored Nov 28, 2023
2 parents c414705 + 9314cc1 commit 0ed2b88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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'],
'URL': 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
2 changes: 1 addition & 1 deletion scrapers/SARJ-LLC/SARJ-LLC.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ performerByName:
- SARJ-LLC.py
- search
- performer
# Last Updated April 24, 2023
# Last Updated November 28, 2023

0 comments on commit 0ed2b88

Please sign in to comment.