Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# tvdb-v4-python

This is the official tvdb api v4 python package

### Installation
## Installation

```bash
python3 -m pip install tvdb_v4_official
```
### Getting Started
some projects require a user supplied pin as well as an apikey

## Getting Started

> Note: some projects require a user supplied pin as well as an apikey

```python3
import tvdb_v4_official
Expand All @@ -27,8 +31,8 @@ series = tvdb.get_series(121361)
series = tvdb.get_series_extended(121361)
for season in sorted(series["seasons"], key=lambda x: (x["type"]["name"], x["number"])):
if season["type"]["name"] == "Aired Order" and season["number"] == 1:
season = tvdb.get_season_extended(season["id"])
break
season = tvdb.get_season_extended(season["id"])
break
else:
season = None
if season is not None:
Expand All @@ -49,9 +53,9 @@ for c in movie["characters"]:
print(c)

# fetching a person record
person = tvdb.get_person_extended(characters[0]["peopleId"])
person = tvdb.get_person_extended(movie["characters"][0]["peopleId"])
print(person)

# using since If-Modifed-Since parameter
# using since If-Modified-Since parameter
series = tvdb.get_series_extended(393199, if_modified_since="Wed, 30 Jun 2022 07:28:00 GMT")
```