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

remove external module dependencies #55

Merged
merged 2 commits into from
Oct 8, 2020
Merged

remove external module dependencies #55

merged 2 commits into from
Oct 8, 2020

Conversation

pkscout
Copy link
Member

@pkscout pkscout commented Oct 4, 2020

This is the bundle of code changes to remove the dependencies on tmdbsimple, trakt, and requests modules. All the external calls are now handled by urllib2 (Python 2) or urllib (Python 3). I tried to minimize the changes to the core of the code, so tmdbapi.py mostly mimics the previous API calls and the changes to traktratings.py, imdbratings.py, and fanarttv.py are all internal. There are two sets of changes to tmdb.py.

  1. all the error handling for URL requests is now handled in api_utils or tmdbapi, so the logic to check for raised errors was updated.
  2. With direct API calls images can now be returned with the primary query with different language requirements (images that match the language in the settings, English, or NULL are returned). That means the images are now loaded with the primary movie dict instead of the fallback one.

addon.xml Outdated
@@ -1,15 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="metadata.themoviedb.org.python"
name="The Movie Database Python"
version="1.2.1"
version="1.2.2"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is a bugfix version :D

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough. I've always thought of the versioning as major.minor.maintenance and this feels like maintenance. But if 1.3.0 would be better, that's fine with me.

changelog.txt Outdated
@@ -1,3 +1,8 @@
v1.2.2 (2020-10-04)
- Fix: removed dependencies on requests, tmdbsimple, and trakt modules
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think these should be Fix?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was trying to keep the changelog to the same format, and there were only Features and Fixes. Features felt like user facing things, so I used Fixes. Could we just list it as Change?

@razzeee
Copy link
Member

razzeee commented Oct 6, 2020 via email

@pkscout
Copy link
Member Author

pkscout commented Oct 6, 2020

3a42bdf updates the change log and version number. I also added the change log info to the news section of addon.xml

Copy link
Contributor

@rmrector rmrector left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Fixes #54, and looks like the change to the trakt implementation will also fix #53.

@pkscout pkscout merged commit 80852aa into xbmc:master Oct 8, 2020
@pkscout pkscout deleted the pr-feature-no-dependencies branch October 8, 2020 16:48
@rmrector rmrector mentioned this pull request Oct 17, 2020
tielis pushed a commit to tielis/metadata.mytmdb.movies that referenced this pull request Jul 18, 2023
…ion-providers-metadata-tvshows-themoviedb-org-python
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants