Skip to content

Commit e9d77af

Browse files
Tweaks to "usage.md" docs page
Add a couple of newlines in code snippets.
1 parent ac66b5f commit e9d77af

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

docs/usage.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ based on a given title.
6565
from simplejustwatchapi import search
6666

6767
results = search("The Matrix", "US", "en", 5, True, 0, ["nfx", "apv"])
68+
6869
for entry in results:
6970
print(entry.title, entry.offers)
7071
```
@@ -97,6 +98,7 @@ currently popular titles.
9798
from simplejustwatchapi import popular
9899

99100
results = popular("US", "en", 5, True, 0, ["nfx", "apv"])
101+
100102
for entry in results:
101103
print(entry.title, entry.offers)
102104
```
@@ -126,6 +128,7 @@ for a single entry via its node ID.
126128
from simplejustwatchapi import details
127129

128130
result = details("tm19698", "US", "en", False)
131+
129132
print(result.title, result.short_description)
130133
```
131134

@@ -165,6 +168,7 @@ for all seasons of a TV show based on its node ID.
165168
from simplejustwatchapi import seasons
166169

167170
results = seasons("tss20091", "US", "en", True)
171+
168172
for season in results:
169173
print(season.season_number, season.total_episode_count)
170174
```
@@ -185,6 +189,7 @@ details for all episodes of a single TV show season based on its node ID.
185189
from simplejustwatchapi import episodes
186190

187191
results = episodes("tse334769", "US", "en", False)
192+
188193
for episode in results:
189194
print(episode.episode_id, episode.episode_number, episode.offers)
190195
```
@@ -211,6 +216,7 @@ Only offers are returned, not additional data.
211216
from simplejustwatchapi import offers_for_countries
212217

213218
results = offers_for_countries("tm10", {"US", "UK", "CA"}, "en", True)
219+
214220
for country, offers in results.items():
215221
print(f"Offers for {country}:")
216222
for offer in offers:
@@ -233,6 +239,7 @@ given country.
233239
from simplejustwatchapi import providers
234240

235241
results = providers("US")
242+
236243
netflix_apple_only = [
237244
provider
238245
for provider in all_providers

0 commit comments

Comments
 (0)