pytrakt 4.2.2__tar.gz → 4.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pytrakt-4.2.2/pytrakt.egg-info → pytrakt-4.2.3}/PKG-INFO +1 -1
- {pytrakt-4.2.2 → pytrakt-4.2.3/pytrakt.egg-info}/PKG-INFO +1 -1
- pytrakt-4.2.3/trakt/__version__.py +1 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/config.py +5 -3
- pytrakt-4.2.2/trakt/__version__.py +0 -1
- {pytrakt-4.2.2 → pytrakt-4.2.3}/HISTORY.rst +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/LICENSE +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/MANIFEST.in +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/README.rst +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/pytrakt.egg-info/SOURCES.txt +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/pytrakt.egg-info/dependency_links.txt +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/pytrakt.egg-info/not-zip-safe +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/pytrakt.egg-info/requires.txt +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/pytrakt.egg-info/top_level.txt +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/requirements.txt +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/setup.cfg +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/setup.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_api.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_calendars.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_episodes.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_errors.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_genres.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_lists.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_movies.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_people.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_scrobble.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_search.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_seasons.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_shows.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_sync.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_users.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_utils.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/__init__.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/api.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/auth/__init__.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/auth/base.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/auth/device.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/auth/oauth.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/auth/pin.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/calendar.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/core.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/decorators.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/errors.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/mixins.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/movies.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/people.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/sync.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/tv.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/users.py +0 -0
- {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/utils.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '4.2.3'
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
__author__ = 'Elan Ruusamäe'
|
|
4
4
|
|
|
5
5
|
import json
|
|
6
|
-
from dataclasses import dataclass
|
|
6
|
+
from dataclasses import dataclass, fields
|
|
7
7
|
from os.path import exists
|
|
8
8
|
from typing import Optional
|
|
9
9
|
|
|
@@ -40,7 +40,8 @@ class AuthConfig:
|
|
|
40
40
|
|
|
41
41
|
def all(self):
|
|
42
42
|
result = {}
|
|
43
|
-
for
|
|
43
|
+
for field in fields(self):
|
|
44
|
+
key = field.name
|
|
44
45
|
result[key] = self.get(key)
|
|
45
46
|
|
|
46
47
|
return result
|
|
@@ -55,7 +56,8 @@ class AuthConfig:
|
|
|
55
56
|
with open(self.config_path) as config_file:
|
|
56
57
|
config_data = json.load(config_file)
|
|
57
58
|
|
|
58
|
-
for
|
|
59
|
+
for field in fields(self):
|
|
60
|
+
key = field.name
|
|
59
61
|
# Don't overwrite
|
|
60
62
|
if self.get(key) is not None:
|
|
61
63
|
continue
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '4.2.2'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|