Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update __init__.py #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
6 changes: 6 additions & 0 deletions itunes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ def _set(self, json):
self._set_languages(json)
self._set_avg_rating(json)
self._set_num_ratings(json)
self._set_bundle_id(json)

def _set_version(self, json):
self.version = json.get('version', None)
Expand Down Expand Up @@ -562,6 +563,9 @@ def _set_num_ratings(self, json, only_current_version=False):
else:
self.num_ratings = json.get('userRatingCount', None)

def _set_bundle_id(self, json):
self.bundle_id = json.get('bundleId', None)

# GETTERs
def get_version(self):
return self.version
Expand All @@ -579,6 +583,8 @@ def get_avg_rating(self):
return self.avg_rating
def get_num_ratings(self):
return self.num_ratings
def get_bundle_id(self):
return self.bundle_id

# CACHE
def enable_caching(cache_dir = None):
Expand Down