Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

mythvideo and myth2ipod script

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


mythtv at oceansidemortgage

Feb 24, 2006, 7:31 PM

Post #1 of 8 (1013 views)
Permalink
mythvideo and myth2ipod script

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

_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


sarvinc at fastmail

Feb 24, 2006, 8:32 PM

Post #2 of 8 (969 views)
Permalink
Re: mythvideo and myth2ipod script [In reply to]

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
>
> _______________________________________________

I'd like that. Please either post it here or send it directly to me.
Thanks in advance.
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


mythtv at oceansidemortgage

Feb 24, 2006, 10:20 PM

Post #3 of 8 (970 views)
Permalink
Re: mythvideo and myth2ipod script [In reply to]

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
>
> _______________________________________________

I'd like that. Please either post it here or send it directly to me.
Thanks in advance.
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Attachments: video2ipod.txt (10.2 KB)


myth at dermanouelian

Feb 25, 2006, 9:49 AM

Post #4 of 8 (935 views)
Permalink
Re: mythvideo and myth2ipod script [In reply to]

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

_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


mythtv at oceansidemortgage

Feb 25, 2006, 11:07 AM

Post #5 of 8 (955 views)
Permalink
Re: mythvideo and myth2ipod script [In reply to]

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

_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


mythtv at oceansidemortgage

Feb 25, 2006, 11:09 AM

Post #6 of 8 (952 views)
Permalink
Re: mythvideo and myth2ipod script [In reply to]

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

_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Attachments: video2ipod.txt (10.2 KB)


myth at dermanouelian

Feb 25, 2006, 12:16 PM

Post #7 of 8 (939 views)
Permalink
Re: mythvideo and myth2ipod script [In reply to]

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
>
When it finished, it gave me files called .ipod.xml and .ipod.mov so
I'm guessing it didn't pull the metadata from mysql correctly. I'll
take a look at the query when I get some time and see if I can fix it
up. Not sure what's different between my data and yours. I just
renamed the files and hand-edited the xml for now.

_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


myth at dermanouelian

Feb 25, 2006, 12:38 PM

Post #8 of 8 (932 views)
Permalink
Re: mythvideo and myth2ipod script [In reply to]

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!

_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.