[mythtv-users] mythvideo and myth2ipod script

Brad DerManouelian myth at dermanouelian.com
Sat Feb 25 20:38:48 UTC 2006


On Feb 25, 2006, at 2:09 PM, Jason Stone wrote:

> I don't seem to get the errors, see if this one fixes them.
>
> --Jason
>
> Original Message -----------------------
> On Feb 25, 2006, at 1:20 AM, Jason Stone wrote:
>
>> No Problem, at least my wasted time will benefit someone, if you
>> have any problems with it let me know and i'll try to fix them.
>>
>> The script should be able to compensate for any special characters
>> in the file names.
>>
>> Usage (the same as myth2ipod):
>>
>> video2ipod video_directory video_name
>>
>> --Jason
>>
>> Original Message -----------------------
>> On Friday 24 February 2006 21:31, Jason Stone wrote:
>>> I modified the myth2ipod script to work with mythvideo, I was
>>> wondering if
>>> anyone wanted it?  I'll post it if there is any demand.
>>>
>>> The script is 99 % of the original script, all I did was change a
>>> few lines
>>> (to work with non standardized file names) and change the database
>>> query
>>> lines.
>>>
>>> --Jason
>>>
>>> _______________________________________________
>>
>
> Thanks, man. I'm running it now. I got perl warnings:
> Use of uninitialized value in substitution (s///) at /usr/local/bin/
> video2ipod line 99.
> Use of uninitialized value in substitution (s///) at /usr/local/bin/
> video2ipod line 105.
> But it seems to be perfectly happy since I didn't use a filename with
> any bad characters.
>
> Happy to get some of my movies onto my iPod along with my TV shows...
>
> -Brad
>

I found my issue. I added an extra / at the end of the directory  
argument so I ended up with two /'s in $to_file which made the query  
fail. I'm adding a regex to strip off the last / of the directory if  
it's there and not worry about it again.

Thanks!



More information about the mythtv-users mailing list