Opened 15 years ago

Closed 15 years ago

#6574 closed defect (fixed)

tmdb.pl dies on movies without categories (genres)

Reported by: Mike Theobald <mike@…> Owned by: Anduin Withers
Priority: minor Milestone: unknown
Component: Plugin - MythVideo Version: 0.21-fixes
Severity: low Keywords: tmdb.pl
Cc: Ticket locked: no

Description

tmdb.pl (v0.1.1) cannot handle a movie without a category.

It will die with a

Can't use string ("") as a HASH ref while "strict refs" in use at ./tmdb.pl line 172.
  • movie with no category, The Andromeda Strain (2008)
/usr/share/mythtv/server/mythvideo/scripts/tmdb.pl -D 0424600

Attachments (1)

tmdb.pl_6574_v1.patch (750 bytes) - added by Michelle Agnew <mythtvtrac@…> 15 years ago.
Proper handling of movies with no categories

Download all attachments as: .zip

Change History (3)

Changed 15 years ago by Michelle Agnew <mythtvtrac@…>

Attachment: tmdb.pl_6574_v1.patch added

Proper handling of movies with no categories

comment:1 Changed 15 years ago by Michelle Agnew <mythtvtrac@…>

This is fixed with the attached patch. With no categories available, the categories has a value of instead of being a hashref. This checks for a reference first and only sets the value of @catlist if it's a reference.

Michelle

comment:2 Changed 15 years ago by Rob Smith

Resolution: fixed
Status: newclosed

(In [21189]) Fixes #6574, With no categories available, the categories has a value of instead of being a hashref. This checks for a reference first and only sets the value of @catlist if its a reference.

Note: See TracTickets for help on using tickets.