mirror of
https://github.com/anxdpanic/plugin.video.youtube.git
synced 2025-12-06 02:30:50 -08:00
Fix possible exception when plugin items that resolve to a removed Youtube item are added to a listing
This commit is contained in:
parent
154c4db740
commit
419c37ddd1
1 changed files with 3 additions and 4 deletions
|
|
@ -120,15 +120,14 @@ def _process_list_response(provider,
|
|||
item_params = yt_item.get('_params') or {}
|
||||
item_params.update(new_params)
|
||||
|
||||
item_id = None
|
||||
item_id = yt_item.get('id')
|
||||
snippet = yt_item.get('snippet', {})
|
||||
|
||||
video_id = None
|
||||
playlist_id = None
|
||||
channel_id = None
|
||||
|
||||
if is_youtube:
|
||||
item_id = yt_item.get('id')
|
||||
snippet = yt_item.get('snippet', {})
|
||||
|
||||
localised_info = snippet.get('localized') or {}
|
||||
title = (localised_info.get('title')
|
||||
or snippet.get('title')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue