Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 513876 - net-misc/pytvshows - pytvshows: NameError: global name 'titlematch' is not defined
Summary: net-misc/pytvshows - pytvshows: NameError: global name 'titlematch' is not de...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-06-19 18:05 UTC by gentoo
Modified: 2016-08-17 14:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch file to rename variable (titlematch_fix.patch,480 bytes, patch)
2014-06-19 18:05 UTC, gentoo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description gentoo 2014-06-19 18:05:10 UTC
Created attachment 379270 [details, diff]
Patch file to rename variable

When running pytvshows with a show that is not season/episode or date based, the matching logic fails:

Traceback (most recent call last):
File "/usr/bin/pytvshows", line 658, in <module>
sys.exit(main())
File "/usr/bin/pytvshows", line 646, in main
show = Show(exact_name, args)
File "/usr/bin/pytvshows", line 216, in __init__
self.get_details()
File "/usr/bin/pytvshows", line 258, in get_details
elif titlematch and titlematch.group(1) != 'n/a':
NameError: global name 'titlematch' is not defined

Looking at the source code it would seem that the variable "titlematch" should be "title_match".

Attached is a patch file to rename the variable.
Comment 1 Pacho Ramos gentoo-dev 2015-11-08 10:28:29 UTC
are you willing to proxy maintain this package:
https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers

Thanks
Comment 2 Pacho Ramos gentoo-dev 2016-08-17 14:12:28 UTC
[master 2cffd05] net-misc/pytvshows: Fix var name (#513876)
 5 files changed, 50 insertions(+), 6 deletions(-)
 create mode 100644 net-misc/pytvshows/files/pytvshows-0.2-rename-var.patch
 create mode 100644 net-misc/pytvshows/pytvshows-0.2-r3.ebuild