Skip to content

Commit

Permalink
fix librivox.py (#2)
Browse files Browse the repository at this point in the history
fix bug in json data key
  • Loading branch information
Cydget authored Mar 27, 2024
1 parent 9d7be1d commit c8de657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion audiobooker/scrappers/librivox.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def scrap_all_audiobooks(cls, limit=2000, offset=0):
url = cls.base_url % \
("limit=" + str(limit) + "offset=" + str(offset) + "&extended=1")
json_data = session.get(url).json()['books']
for k in json_data:
for k in range(0,len(json_data)):
yield LibrivoxAudioBook(from_data=json_data[k])

@classmethod
Expand Down

0 comments on commit c8de657

Please sign in to comment.