Hey again all,<br><br>Been messing with mythvidexport.py again today, but not getting any further.<br><br>Basically, it keeps falling back to Generic for the naming output, about 50/50 when it does this. All recordings I have are TV, no films or anything else. Can only assume the data isn't there for it to do TV naming?!<br>
<br>So, I thought if the data wasn't there, then I could just change the Generic output to include the recording date/time, so that each had a different name (they were just being named by title, so weekly shows would just overwrite each other).<br>
<br>I ran this in the command line:<br><br>'/home/user/Desktop/mythvideoexport.py' --gformat Videos/%STARTTIME%-%TITLE%<br><br>But get the following errors:<br><br>Changing Generic format to: Videos/%STARTTIME%-%TITLE%<br>
Traceback (most recent call last):<br> File "/home/user/Desktop/mythvideoexport.py", line 381, in <module><br> main()<br> File "/home/user/Desktop/mythvideoexport.py", line 374, in main<br>
db.settings[hosts]['mythvideo.GENERICexportfmt'] = opts.gformat<br>
NameError: global name 'hosts' is not defined<br><br>Even just running "'/home/user/Desktop/mythvideoexport.py' --gformat %TITLE%"gives the same error.<br><br>Any ideas?<br><br>Cheers<br><br>Martin<br>