[mythtv-users] More mythvidexport.py issues, "NameError: global name 'hosts' is not defined"

Raymond Wagner raymond at wagnerrp.com
Fri Dec 31 16:10:20 UTC 2010


On 12/31/2010 10:50, Martin Moores wrote:
> Changing Generic format to: Videos/%STARTTIME%-%TITLE%
> Traceback (most recent call last):
>   File "/home/user/Desktop/mythvideoexport.py", line 381, in <module>
>     main()
>   File "/home/user/Desktop/mythvideoexport.py", line 374, in main
>     db.settings[hosts]['mythvideo.GENERICexportfmt'] = opts.gformat
> NameError: global name 'hosts' is not defined

Looks like a typo.  Should be:

db.settings[host]['mythvideo.GENERICexportfmt']


More information about the mythtv-users mailing list