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

Restore related videos, recommendations, and auto-play next functionality #551

Merged
merged 66 commits into from
Jan 15, 2024
Merged
Changes from 1 commit
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
a398b3a
Fix regression in player monitor after 9be2f82
MoojMidge Dec 26, 2023
c10b06c
Fix RunScript deprecation log spam
MoojMidge Dec 26, 2023
996e282
Add some missing entries to the menu_items module
MoojMidge Dec 27, 2023
2787809
Use snake case consistently for watch later
MoojMidge Dec 27, 2023
b2be81a
Fix #549
MoojMidge Dec 27, 2023
86c9d91
Fix directory items sort order
MoojMidge Dec 27, 2023
3c9b315
Move set_content_type to XbmcContext
MoojMidge Dec 27, 2023
960cde1
Add sort for local history
MoojMidge Dec 29, 2023
a018257
Update datetime handling for utcnow deprecation
MoojMidge Dec 29, 2023
fc94cac
Add sort for local watch later
MoojMidge Dec 29, 2023
0c88a32
Misc tidy ups
MoojMidge Dec 29, 2023
74fa647
Only set count infolabel for video items
MoojMidge Jan 1, 2024
14bfaf3
Add as_str=True param to friendly_number
MoojMidge Jan 1, 2024
048fe09
Add track number for all video items
MoojMidge Jan 1, 2024
88c1486
Update YouTubeRequestClient.json_traverse
MoojMidge Jan 3, 2024
0cb2c0f
Move ListItem methods to kodion.ui.xbmc.xbmc_items
MoojMidge Jan 3, 2024
32c794b
Remove instance variables from YouTubeRequestsClient
MoojMidge Jan 4, 2024
6054678
Restore functionality of Youtube.get_related_videos
MoojMidge Jan 4, 2024
d713443
Check for valid request response when not using raise_exc
MoojMidge Jan 4, 2024
10896ac
Follow up to d713443
MoojMidge Jan 4, 2024
a1e3177
Follow up to b2be81a and 996e282
MoojMidge Jan 4, 2024
a4907c5
Remove unnecessary sleep
MoojMidge Jan 4, 2024
ff08062
Make use of progress dialog context manager
MoojMidge Jan 4, 2024
24b4426
Enable item icons in root menu
MoojMidge Jan 7, 2024
08b59a0
Extend thread join timeout for slower devices
MoojMidge Jan 7, 2024
5393dec
Update YouTube._get_recommendations_for_home
MoojMidge Jan 7, 2024
9c638ed
Get recommendations recursively and allow removal
MoojMidge Jan 8, 2024
0563496
Misc tidy ups
MoojMidge Jan 8, 2024
0795387
Move infotagger import to compatibility module
MoojMidge Jan 8, 2024
3cbae78
Workaround for Kodi play action on action DirectoryItems
MoojMidge Jan 8, 2024
ee1afb5
Add plugin category labels
MoojMidge Jan 8, 2024
08fdee1
Fix unnecessary double resolve on playback
MoojMidge Jan 8, 2024
29fb7fc
Merge remote-tracking branch 'upstream/master' into wip-unstable
MoojMidge Jan 8, 2024
2961cdc
Update settings
MoojMidge Jan 8, 2024
db58f43
Ensure data from fake v3 API result is not cached
MoojMidge Jan 9, 2024
70459c6
Cache recommendations after ranking and sorting
MoojMidge Jan 9, 2024
4ae9cf1
Use correct log level for error logging
MoojMidge Jan 10, 2024
1092f3b
Fix regression after 32c794b
MoojMidge Jan 10, 2024
d770077
Fix edge case where API request fails for existing play_data
MoojMidge Jan 10, 2024
398fb6e
Improve request error logging
MoojMidge Jan 10, 2024
e2e7d13
Consolidate client details and methods for API requests
MoojMidge Jan 10, 2024
75488c3
Update root menu items
MoojMidge Jan 10, 2024
569e7a9
Remove "YouTube - " prefix in category labels
MoojMidge Jan 11, 2024
d4de81b
Partially revert 75488c3
MoojMidge Jan 11, 2024
67765b9
Allow setting constants to be accessed from class/instance
MoojMidge Jan 12, 2024
addeef8
Fix showing error status when set setting fails
MoojMidge Jan 12, 2024
44a37ea
Use default content and mediatype constants
MoojMidge Jan 12, 2024
8952ba2
Misc tidy ups
MoojMidge Jan 12, 2024
25b0f96
Fix settings exception handling
MoojMidge Jan 12, 2024
420e755
Fix incorrect requests exception raising
MoojMidge Jan 12, 2024
280543e
Don't hide missing localised strings
MoojMidge Jan 12, 2024
880da42
Move XbmcContextUI.get_info_label to XbmcContext.get_infolabel
MoojMidge Jan 12, 2024
bae3670
Simplify setup wizard and start in XbmcRunner.run
MoojMidge Jan 12, 2024
e2a630b
Remove remaining Container.Update call
MoojMidge Jan 12, 2024
33b307d
Move maintenance/config/user operations to script endpoint
MoojMidge Jan 13, 2024
e4dc267
Fix checking str type in Python 2
MoojMidge Jan 13, 2024
a504769
Restore deprecated log levels in compatibility module
MoojMidge Jan 13, 2024
884c35d
Fix for AccessManager data not being updated
MoojMidge Jan 13, 2024
d06c142
Update default cache size in code
MoojMidge Jan 13, 2024
bad56aa
Use per user local history, search, watch later, and favorites
MoojMidge Jan 13, 2024
e38725e
Consistently check for custom history and watch later playlists
MoojMidge Jan 14, 2024
5d4d7b5
Fix incorrectly setting channel fanart after 82b9525
MoojMidge Jan 14, 2024
5fda40c
Force YouTube.get_related_videos to not use login details
MoojMidge Jan 14, 2024
b715b79
Update workflows
MoojMidge Jan 14, 2024
a973128
Improve Python datetime.strptime bug workaround
MoojMidge Jan 14, 2024
1f4c5ac
Add basic checks for valid My Subscription request data
MoojMidge Jan 14, 2024
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
Prev Previous commit
Next Next commit
Fix edge case where API request fails for existing play_data
  • Loading branch information
MoojMidge committed Jan 10, 2024
commit d7700771b1fd455fe97b19f6f9a131b2cc4effde
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@ def get_videos(self,
playback_history = self._context.get_playback_history()
played_items = playback_history.get_items(ids)
for video_id, play_data in played_items.items():
result[video_id]['play_data'] = play_data
if video_id in result:
result[video_id]['play_data'] = play_data

return result

Expand Down