[mythtv-users] Commercial Flagging (UK, DVB-T)

Andrew Leech coronasensei at gmail.com
Sat Oct 27 12:57:40 UTC 2012


On 27/10/12 9:24 PM, Mark Greenwood wrote:
> On 27 Oct 2012, at 07:56, Andrew Leech wrote:
>
>> On 26/10/12 10:34 PM, Tim Phipps wrote:
>>> Quoting Mark Greenwood <fatgerman at gmail.com>:
>>>> Unfortunately it's not working for me Tim (on SD channels), it seems from what I can tell that it exits very quickly so I'm thinking it's probably not doing anything. However it's also not generating any log messages anywhere that I know to look (/var/log/mythtv) so I'm stuck for where to go next.
>>> You can run it from the command line (same user as mythbackend):
>>>
>>> mausc-wrapper.py --chanid 1010 --starttime 20121025205800
>>>
>>> will operate on the file 1010_20121025205800.mpg in the recordings directory and it should print out the breaks that it finds.
>>>
>>> Cheers,
>>> Tim.
>>>
>> I'm really keen to give this a go (in Australia), but I appear to be having some python troubles:
>>
>> # ./mausc-wrapper 24367
>> Traceback (most recent call last):
>>   File "./mausc-wrapper", line 106, in <module>
>>     main()
>>   File "./mausc-wrapper", line 97, in main
>>     runjob(jobid=args[0])
>>   File "./mausc-wrapper", line 18, in runjob
>>     db = MythDB()
>>   File "/usr/lib/pymodules/python2.6/MythTV/database.py", line 965, in __init__
>>     dbconn = xml.getConnectionInfo(pin)
>>   File "/usr/lib/pymodules/python2.6/MythTV/connections.py", line 619, in getConnectionInfo
>>     dat = self._request('Myth/GetConnectionInfo', Pin=pin).readJSON()
>>   File "/usr/lib/pymodules/python2.6/MythTV/connections.py", line 607, in _request
>>     for k,v in keyvars.items()])
>>   File "/usr/lib/python2.6/urllib.py", line 1234, in quote
>>     res = map(safe_map.__getitem__, s)
>> TypeError: argument 2 to map() must support iteration
>>
>> What version of python are you running (and maybe what distro)? I'm on mythbuntu lucid and I can't seem to get past this problem.
>> I've checked that my python2.6 packages are all up to date, as well as my libmyth-python (2:0.25.2+fixes.20121002.139bd59-0ubuntu0mythbuntu1)
> I'm using mythbuntu 12.04.1, which has python 2.7.3. I'm no python expert I'm afraid so I don't know what your error means.
>
> Cheers,
>
> Mark
Thanks for that, it gives me an avenue to try seeing as you're on a 
different version. I'll try getting a backport of 2.7.3 as a first step, 
and if I get some time I might look at upgrading my system, it's been a 
while since it's had one.

Regards,
Andrew



More information about the mythtv-users mailing list