View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 14 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Fri Sep 24, 2004 9:01 pm 
Offline
Joined: Fri Apr 02, 2004 10:08 am
Posts: 1637
Location: Virginia, USA
My /myth/pretty/ folder is empty. Running mythlink.sh manually just says "Skipping" for each .nuv file in my /myth/tv folder. Checked the system log, can't see any problems. Any ideas on what to do now? Thanks. (PS: can't say for sure this is 0.16 related as I haven't checked the pretty folder recently)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 24, 2004 9:29 pm 
Offline
Joined: Thu Apr 01, 2004 10:44 am
Posts: 677
Location: WA
i had this problem when i R4v4.1 after i updated to .16, but i thought i must have messed up something on my system. i just did a autoupgrade to R4V5 and it went great. but mythpretty is still broken.. its definitly a .16 thing.. mythlink says skipping to all my NUV files as well.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 24, 2004 9:58 pm 
Offline
Joined: Thu Apr 01, 2004 10:44 am
Posts: 677
Location: WA
Quote:
# skip if the nuv doesnt exist
do { print "Skipping $mythpath/$ofn\n"; next } unless -e "$mythpath/$ofn";
$start =~ /^....(........)/;


this is the part of the script that isnt working. if you comment our the two lines under SKIP IF NUV DOESNT EXIT, the script runs fine. Everything i kind of understand but this:
Quote:
$start =~ /^....(........)/;

start is the variable for start time, but what is
Quote:
=~ /^....(........)/;


lol that last part totatly lost me for any meaning in english.. ohh how i miss logical languages like visual basic.. =0P Anyone know??


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 25, 2004 6:24 am 
Offline
Joined: Fri Apr 02, 2004 10:08 am
Posts: 1637
Location: Virginia, USA
Tried commenting out those lines but now it says

Code:
Failed to create symlink /myth/pretty/The_Magic_School_Bus-The_Magic_School_Bus_Gains_Weight.mpg: Permission denied at -e line 39, <> line 2.


and stops.


Top
 Profile  
 
 Post subject: Add DATE_FORMAT
PostPosted: Sat Sep 25, 2004 1:28 pm 
Offline
Joined: Sat Sep 04, 2004 4:20 pm
Posts: 3
It appears that the date format has changed. I altered the SQL line from

Code:
mysql -uroot  mythconverg -B --exec "select chanid,starttime,endtime,title,subtitle from recorded;" >/tmp/mythlink.$$


to

Code:
mysql -uroot  mythconverg -B --exec "select chanid,DATE_FORMAT(starttime,'%Y%m%d%H%i%s'),DATE_FORMAT(endtime,'%Y%m%d%H%i%s'),title,subtitle from recorded;" >/tmp/mythlink.$$


Note the addition of DATE_FORMAT.

It seems to work (for me) with that change.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 25, 2004 9:14 pm 
Offline
Joined: Fri Apr 02, 2004 10:08 am
Posts: 1637
Location: Virginia, USA
I thought it might be a database change. Thanks for the edit. Unfortunately I'm still seeing the same symlink permissions error I listed above with the edited script. Ugh.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 25, 2004 9:22 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Which crontab is the script in and who owns the directory? It runs as root on my system which pretty much means the permission problems shouldn't be an issue. The directory is owned by mythtv but obviously the symlinks are going to be owned by whoever creates them.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 26, 2004 3:23 am 
Offline
Joined: Fri Apr 02, 2004 10:08 am
Posts: 1637
Location: Virginia, USA
Thank you, you're right of course... I was running it manually as mythtv and it wasn't working, but the crontab runs as root and it worked properly. Whew. Thanks again.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 26, 2004 6:29 pm 
Offline
Joined: Thu Apr 01, 2004 10:44 am
Posts: 677
Location: WA
Quote:
It appears that the date format has changed. I altered the SQL line from

Code:
mysql -uroot mythconverg -B --exec "select chanid,starttime,endtime,title,subtitle from recorded;" >/tmp/mythlink.$$


to

Code:
mysql -uroot mythconverg -B --exec "select chanid,DATE_FORMAT(starttime,'%Y%m%d%H%i%s'),DATE_FORMAT(endtime,'%Y%m%d%H%i%s'),title,subtitle from recorded;" >/tmp/mythlink.$$


Note the addition of DATE_FORMAT.

It seems to work (for me) with that change.


that worked for me thanks!!!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 05, 2004 3:28 pm 
Offline
Joined: Mon Oct 04, 2004 6:19 am
Posts: 9
Please forgive the very newbish question. I installed KnoppMyth over the weekend and it is working splendidly except for the "pretty folder" being empty.

After reading the previous posts, exactly which file do I edit to make the change:

Code:
mysql -uroot mythconverg -B --exec "select chanid,starttime,endtime,title,subtitle from recorded;" >/tmp/mythlink.$$


to

Code:
mysql -uroot mythconverg -B --exec "select chanid,DATE_FORMAT(starttime,'%Y%m%d%H%i%s'),DATE_FORMAT(endtime,'%Y%m%d%H%i%s'),title,subtitle from recorded;" >/tmp/mythlink.$$

Thanks to everyone for the excellent work!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 05, 2004 3:58 pm 
Offline
Joined: Thu Apr 01, 2004 10:44 am
Posts: 677
Location: WA
mythlink.sh i cant remember where its at, and im not at my box so do a
Code:
locate mythlink.sh

it will tell you what dir its in


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 05, 2004 11:49 pm 
Offline
Joined: Wed Apr 07, 2004 2:37 am
Posts: 61
Location: Memphis, TN
In case you didn't find it, it's located here: /usr/local/bin/mythlink.sh

_________________
ASUS Pundit AB-P2600
Intel P4 2.0 GHz
512 MB RAM
Maxtor 40 GB HD
Compaq DVD-Rom
2 AverMedia m179's
ATI Remote Wonder
KnoppMyth R4V5


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 06, 2004 3:08 am 
Offline
Joined: Mon Oct 04, 2004 6:19 am
Posts: 9
Thanks very much. I'll make the change when I get home.


Top
 Profile  
 
 Post subject: Re: Add DATE_FORMAT
PostPosted: Fri Dec 10, 2004 11:17 am 
Offline
Joined: Tue Dec 07, 2004 12:04 pm
Posts: 369
toddm_c wrote:
It appears that the date format has changed. I altered the SQL line from

Code:
mysql -uroot  mythconverg -B --exec "select chanid,starttime,endtime,title,subtitle from recorded;" >/tmp/mythlink.$$


to

Code:
mysql -uroot  mythconverg -B --exec "select chanid,DATE_FORMAT(starttime,'%Y%m%d%H%i%s'),DATE_FORMAT(endtime,'%Y%m%d%H%i%s'),title,subtitle from recorded;" >/tmp/mythlink.$$


Note the addition of DATE_FORMAT.

It seems to work (for me) with that change.


This worked for me as well using R4V5 .

-brendan


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu