Skip to content

Commit

Permalink
Merge pull request #1019 from MoojMidge/v7.1.1
Browse files Browse the repository at this point in the history
v7.1.16
  • Loading branch information
MoojMidge authored Dec 8, 2024
2 parents 2cffc2c + 122ae56 commit 0ea2754
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.youtube" name="YouTube" version="7.1.1.5" provider-name="anxdpanic, bromix, MoojMidge">
<addon id="plugin.video.youtube" name="YouTube" version="7.1.1.6" provider-name="anxdpanic, bromix, MoojMidge">
<requires>
<import addon="xbmc.python" version="3.0.0"/>
<import addon="script.module.requests" version="2.27.1"/>
Expand Down
3 changes: 2 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## v7.1.1.5
## v7.1.1.6
### Fixed
- Fix http server not listening on any interface if listen IP is 0.0.0.0 #927
- Standardise return type of LoginClient.refresh_token #932
Expand Down Expand Up @@ -43,6 +43,7 @@
- Fix errors with progress dialogs in Kodi 18 #1000
- Fix remote watch history not updating #1008
- Fix API requests when not signed in #1013
- Fix playback not working when no API key is provided #1018

### Changed
- Improve display and update of bookmarks
Expand Down
2 changes: 2 additions & 0 deletions resources/lib/youtube_plugin/youtube/client/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -2225,6 +2225,8 @@ def api_request(self,
abort = False
params['key'] = key
else:
if not client['_has_auth']:
abort = True
del params['key']
client['params'] = params

Expand Down
15 changes: 8 additions & 7 deletions resources/lib/youtube_plugin/youtube/helper/resource_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,14 @@ def get_videos(self,
notify=notify_and_raise,
raise_exc=notify_and_raise)
for list_of_50 in self._list_batch(to_update, n=50)]
if not any(new_data):
if any(new_data):
new_data = {
yt_item['id']: yt_item
for batch in new_data
for yt_item in batch.get('items', [])
if yt_item
}
else:
new_data = None
else:
new_data = None
Expand All @@ -353,12 +360,6 @@ def get_videos(self,
'\n\tVideo IDs: {ids}'
.format(ids=to_update)
)
new_data = {
yt_item['id']: yt_item
for batch in new_data
for yt_item in batch.get('items', [])
if yt_item
}
new_data = dict(dict.fromkeys(to_update, {'_unavailable': True}),
**new_data)
result.update(new_data)
Expand Down

0 comments on commit 0ea2754

Please sign in to comment.