Try displayTitle for resolution
@@ -245,6 +245,20 @@ def resolution(self):
"""
Set to uhd_4k, hd_1080p, hd_1080i, hd_720p, sd_480p, sd_480i, sd_576p, or sd_576i.
"""
+ try:
+ stream = self.video_streams[0]
+ title = stream.displayTitle.split(' ')[0]
+ except IndexError:
+ title = None
+
+ variants = {
+ '1080p': 'hd_1080p',
+ '720p': 'hd_720p',
+ }
+
+ if title in variants:
+ return variants[title]
+
try:
media = self.item.media[0]
width = media.width
