Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#12475 closed Bug Report - Crash (fixed)

small bug in youtube_api.py

Reported by: hikavdh@… Owned by: Jonatan Lindblad
Priority: minor Milestone: 0.27.6
Component: Plugin - MythNetvision Version: Master Head
Severity: medium Keywords: mythnetvision
Cc: Ticket locked: no

Description

in:

173 region = self.userPrefs.find("region") 174 if region != None: 175 self.configregion? = region.text 176 else: 177 self.configregion? = u'us'

line 174 should be

if region != None and region.text:

or else youtube -T crashes if region.text is not set

Change History (5)

comment:1 Changed 4 years ago by Stuart Auchterlonie

Component: MythTV - GeneralPlugin - MythNetvision
Milestone: unknown0.28

comment:2 Changed 4 years ago by Jonatan Lindblad

Owner: set to Jonatan Lindblad
Status: newaccepted

comment:3 Changed 4 years ago by Hika van den Hoven <hikavdh@…>

Resolution: fixed
Status: acceptedclosed

In a8dcf35fe25dfd9f0501b8f0bd4d08e770f415e0/mythtv:

Internet Content: Only use the YouTube? region preference if it is nonempty

Fixes #12475

Signed-off-by: Jonatan Lindblad <jlindblad@…>

comment:4 Changed 4 years ago by Hika van den Hoven <hikavdh@…>

In e2a11c915058c6876a25d8188f02bc1d99fdad02/mythtv:

Internet Content: Only use the YouTube? region preference if it is nonempty

Fixes #12475

Signed-off-by: Jonatan Lindblad <jlindblad@…>
(cherry picked from commit a8dcf35fe25dfd9f0501b8f0bd4d08e770f415e0)

comment:5 Changed 4 years ago by Jonatan Lindblad

Milestone: 0.280.27.6
Note: See TracTickets for help on using tickets.