[mythtv] Re: [mythtv-commits] Ticket #857: Patch to mythrename.pl to work correctly with slave backends

Michael T. Dean mtdean at thirdcontact.com
Fri Dec 23 10:24:13 EST 2005


Tom Lichti wrote:

> Tom Lichti wrote:
>
>>> Although I'll admit that your approach had one benefit mine didn't: 
>>> you could list the directories to quickly see/count what different 
>>> titles you have available.  (Didn't lose sight of the forest for the 
>>> trees.)
>>
>> Not sure I see your point here, doesn't your solution do basically 
>> the same thing? 
>
> Never mind, I see it now... :)

Yeah.  Basically with yours you can do the same as:

ls /path/to/view/directory | awk '{split($0,a,"-"); print a[1]}' | sort 
--unique

with a simple:

ls /path/to/view

which is much easier to type (and remember ;).  I guess there's always:

mysql -u mythtv -p mythconverg -e 'select distinct(title) from recorded'

Mike


More information about the mythtv-dev mailing list