diff --git a/Contents/Code/__init__.py b/Contents/Code/__init__.py
index 7669a84..dc1088b 100644
--- a/Contents/Code/__init__.py
+++ b/Contents/Code/__init__.py
@@ -835,7 +835,7 @@ def AddItemsFromDescription(oc, description):
oc.add(DirectoryObject(
key=Callback(VideoInfo, vid=ext_vid),
title=u'[*] %s' % ext_title,
- thumb='https://i.ytimg.com/vi/%s/hqdefault.jpg' % ext_vid
+ thumb=Video.GetThumb(ext_vid)
))
return oc
diff --git a/Contents/Info.plist b/Contents/Info.plist
index c8761f6..94a6332 100644
--- a/Contents/Info.plist
+++ b/Contents/Info.plist
@@ -14,7 +14,7 @@
CFBundleSignature
hook
CFBundleVersion
- 4.4
+ 4.5
PlexPluginVersionUrl
http://bit.ly/1FuE3dz
diff --git a/Contents/Services/Shared Code/video.pys b/Contents/Services/Shared Code/video.pys
index 0138e56..f087747 100644
--- a/Contents/Services/Shared Code/video.pys
+++ b/Contents/Services/Shared Code/video.pys
@@ -78,6 +78,10 @@ def GetMetaUrlByServiceURL(url):
return 'https://www.youtube.com/watch?v=%s' % GetOID(url)
+def GetThumb(vid):
+ return 'https://i.ytimg.com/vi/%s/hqdefault.jpg' % vid
+
+
def GetVideoData(url):
try:
res = HTML.ElementFromURL(GetMetaUrlByServiceURL(url))
diff --git a/Contents/Services/URL/YouTubeTV/ServiceCode.pys b/Contents/Services/URL/YouTubeTV/ServiceCode.pys
index 854db7d..e3926b4 100644
--- a/Contents/Services/URL/YouTubeTV/ServiceCode.pys
+++ b/Contents/Services/URL/YouTubeTV/ServiceCode.pys
@@ -121,10 +121,6 @@ def MetadataObjectForURL(url):
if not meta:
raise Ex.MediaNotAvailable
- thumb = meta['iurl']
- if thumb[0] == '/':
- thumb = 'http:%s' % thumb
-
return VideoClipObject(
title=u'%s' % meta['title'],
rating_key=url.split('&')[0],
@@ -132,7 +128,7 @@ def MetadataObjectForURL(url):
meta['author'],
item['description'] if 'description' in item else '',
),
- thumb=thumb,
+ thumb=Video.GetThumb(meta['video_id']),
rating=(float(meta['avg_rating'])*2),
tags=meta['keywords'].split(','),
duration=int(meta['length_seconds'])*1000 if meta['length_seconds'] else None,