-
Notifications
You must be signed in to change notification settings - Fork 444
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
[plugin.video.youtube] v6.1.2 #2001
Conversation
Travis tests have failedHey @anxdpanic, 1st BuildExpand here
|
Travis tests have failedHey @anxdpanic, 1st BuildExpand here
|
I've fixed the complex entry warning and the codacy issue, leaving the commit separate in case anyone has started reviewing. Will bump version and squash when given the go ahead. |
list_item.setProperty("Fanart_Image", fanart) | ||
elif major_version <= 15: | ||
list_item.setArt({'thumb': thumb, 'fanart': fanart}) | ||
list_item.setIconImage(thumb) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
play_item.get_headers() and play_item.get_uri().startswith('http'): | ||
play_item.set_uri(play_item.get_uri() + '|' + play_item.get_headers()) | ||
|
||
list_item.setProperty('inputstreamaddon', '') |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
||
monitor.remove_temp_dir() | ||
|
||
while not monitor.abortRequested(): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -106,16 +105,4 @@ def _seconds_difference(_first, _last): | |||
return cached_data | |||
|
|||
def _optimize_item_count(self): | |||
clear = False |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
||
|
||
__API_KEY = 'ZGFiODVhMzM5NTI2ZmVhNmEwZDc5ZjkzMjM2M2FjY2Q=' | ||
__API_BASE_URL = 'http://api.ipstack.com' |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
self.current_video_total_time = self.getTotalTime() | ||
|
||
def onAVStarted(self): | ||
if self.context.get_settings().use_playback_history(): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
else: | ||
context.log_warning('Missing video ID for post play event') | ||
return True | ||
|
||
@kodion.RegisterProviderPath('^/users/(?P<action>[^/]+)/$') | ||
def _on_users(self, context, re_match): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Globally all is good. I don't like the ipstack stuff nor understand why you need it. Is it only used for the initial setup wizzard? Why is it required?
Note it can be confused by some sort of tracking. I don't think anyone will be confortable to have a youtube plugin that performs requests to other API's rather than youtube itself.
Thanks for the update and sorry for the time taken to review (changes are big). Don't mind about addon-check failure, we'll try to fix it soon.
Thanks for the review. No worries on the time, was expecting a few day. I will try to respond and address the issues. As for the ipstack code, a 'My Location' folder was added that uses latitude, longitude(parameters in youtube api call) to provide geo based results and nothing more. During the setup wizard, the user is asked "Perform geolocation? Used for My Location" If this is not okay, is manual input of this information allowed? |
@anxdpanic thanks for understanding. The problem here is that relying on an API key will also enable api usage stats and along with it...user tracking. I was pointed by @Lunatixz that http://ip-api.com/json could be an alternative (used in plutotv). Would this work for you? |
@enen92 While I'm making these changes, is there anything that needs to be done to identify py3 compatibility? |
When Leia is final a new field will be available in You can try to use the addon-check project (https://github.com/xbmc/addon-check) locally against your addon by setting |
Thank you for the information. I will check to see if there are any suggestions that come from running |
Travis tests have failedHey @anxdpanic, 1st BuildExpand here
|
Changes made and using ip-api now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@anxdpanic can you squash for merging? Thanks for adjusting
Travis tests have failedHey @anxdpanic, 1st BuildExpand here
|
Thanks for taking the time to review, squashed and updated titles |
CI failure is already reported in addon-check project and should be addressed soon (xbmc/addon-check#110). Merging. |
Description
Changelog: https://github.com/jdf76/plugin.video.youtube/blob/6.x.x/changelog.txt#L1-L38
Checklist:
Additional information :