XBMC Community Forum
mythicalLibrarian - a tool to build Movie and TV Show library from MythTV recordings - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for XBMC (/forumdisplay.php?fid=116)
+--- Thread: mythicalLibrarian - a tool to build Movie and TV Show library from MythTV recordings (/showthread.php?tid=65644)



- outleradam - 2010-09-07 01:27

The first thing I noticed is that the permissions are wrong in your recordings dir.

Here is my mythtv recordings dir. At a minimum you must have RW access. I have not modified the permissions in this folder at all. This is default and normal. I also noticed that there are no pictures to go with your
Code:
-rw-rw-rw-  1 mythtv mythtv     14731 2010-09-04 18:15 1952_20100903100000.mpg.64.100x75.png
-rw-rw-rw-  1 mythtv mythtv    118677 2010-09-03 10:52 1952_20100903100000.mpg.png
lrwxrwxrwx  1 mythtv mythtv       138 2010-09-06 07:26 1952_20100906063000.mpg -> /home/mythtv/Videos/Episodes/Clifford the Big Red Dog/Season 2/Clifford the Big Red Dog S02E01 (Cliffords Valentines Day Special 2002).mpg
-rw-rw-rw-  1 mythtv mythtv    101323 2010-09-06 07:25 1952_20100906063000.mpg.png
lrwxrwxrwx  1 mythtv mythtv       124 2010-09-06 07:30 1952_20100906070000.mpg -> /home/mythtv/Videos/Episodes/Curious George (2006)/Season 5/Curious George (2006) S05E01 (George and Marco Sound It Out).mpg
-rw-rw-rw-  1 root   root      114387 2010-09-06 07:30 1952_20100906070000.mpg.png
drwxr-xr-x 16 mythtv mythtv      4096 2010-09-06 18:00 Episodes
drwxr-xr-x  2 mythtv mythtv      4096 2010-09-06 18:00 Movies
drwxr-xr-x 13 mythtv mythtv      4096 2010-09-06 18:00 Showings
Your permissions look like you chmod 555'd it. It should be 666'd. There is no write access in that folder, but every file is readable and executable which makes no sense for media files.
Code:
sudo chmod 666 /var/lib/mythtv/recordings
Make sure that mythtv is in the Robot group. I'm actually not sure why, but even the owner isn't allowed to do certain things unless they're a member of a group.
Code:
sudo useradd -G robot mythtv

Is it just that one entry that does not have any "new search initiated"? the next entry has it. It could have been that the updater was activated in the middle of mythtv processing the file so the log was dumped into the old log. Can I see the next entry? I would like to get more information. I'm getting ideas as to how to properly handle this, and I believe this setup issue could be handled autonomously in mythicalSetup.


- thrasherx - 2010-09-07 04:46

outleradam Wrote:The first thing I noticed is that the permissions are wrong in your recordings dir.

Here is my mythtv recordings dir. At a minimum you must have RW access. I have not modified the permissions in this folder at all. This is default and normal. I also noticed that there are no pictures to go with your
Code:
-rw-rw-rw-  1 mythtv mythtv     14731 2010-09-04 18:15 1952_20100903100000.mpg.64.100x75.png
-rw-rw-rw-  1 mythtv mythtv    118677 2010-09-03 10:52 1952_20100903100000.mpg.png
lrwxrwxrwx  1 mythtv mythtv       138 2010-09-06 07:26 1952_20100906063000.mpg -> /home/mythtv/Videos/Episodes/Clifford the Big Red Dog/Season 2/Clifford the Big Red Dog S02E01 (Cliffords Valentines Day Special 2002).mpg
-rw-rw-rw-  1 mythtv mythtv    101323 2010-09-06 07:25 1952_20100906063000.mpg.png
lrwxrwxrwx  1 mythtv mythtv       124 2010-09-06 07:30 1952_20100906070000.mpg -> /home/mythtv/Videos/Episodes/Curious George (2006)/Season 5/Curious George (2006) S05E01 (George and Marco Sound It Out).mpg
-rw-rw-rw-  1 root   root      114387 2010-09-06 07:30 1952_20100906070000.mpg.png
drwxr-xr-x 16 mythtv mythtv      4096 2010-09-06 18:00 Episodes
drwxr-xr-x  2 mythtv mythtv      4096 2010-09-06 18:00 Movies
drwxr-xr-x 13 mythtv mythtv      4096 2010-09-06 18:00 Showings
Your permissions look like you chmod 555'd it. It should be 666'd. There is no write access in that folder, but every file is readable and executable which makes no sense for media files.
Code:
sudo chmod 666 /var/lib/mythtv/recordings
Make sure that mythtv is in the Robot group. I'm actually not sure why, but even the owner isn't allowed to do certain things unless they're a member of a group.
Code:
sudo useradd -G robot mythtv

Is it just that one entry that does not have any "new search initiated"? the next entry has it. It could have been that the updater was activated in the middle of mythtv processing the file so the log was dumped into the old log. Can I see the next entry? I would like to get more information. I'm getting ideas as to how to properly handle this, and I believe this setup issue could be handled autonomously in mythicalSetup.

I manually deleted the pictures because they were temporary recordings.

mythtv was already in the robot group.

I have rw access to /var/lib/mythtv/recordings and /home/media-server/Videos/TV-Recorded/ We'll see what difference that makes. More to come tomorrow. Thanks!


- thrasherx - 2010-09-07 11:49

Update: Still no luck. My permissions look like this:

Code:
drwxrwxrwx  3 robot mythtv  4096 2010-09-06 22:48 TV-Recorded

For whatever reason if I 666 the folder, it turns into a file and I'm unable to open it using my main user. I've also 'chmod a-x' and get the same result:

Code:
drw-rw-rw-  3 robot mythtv  4096 2010-09-06 22:48 TV-Recorded

When I try and ls -l the contents, it returns:

Code:
/home/media-server/Videos/TV-Recorded:
total 0
d????????? ? ? ? ?                ? Access Hollywood
ls: cannot open directory /home/media-server/Videos/TV-Recorded/Access Hollywood: Permission denied



- outleradam - 2010-09-07 16:27

chmod +x on a folder makes the folder a valid system folder. You want
Code:
chmod -R a+r /home/media-server/Videos/TV-Recorded
chmod -R a+w /home/media-server/Videos/TV-Recorded
chmod +x /home/media-server/Videos/TV-Recorded



- thrasherx - 2010-09-08 04:41

Still no luck with the above. I messaged you back. Thanks for your patience!


- outleradam - 2010-09-08 15:13

Alright, I just figured out why the log is truncating. I will fix that later tonight and post here.


- outleradam - 2010-09-09 00:46

I just committed a change that will fix the log problem. Please update then run mythicalLibrarian "/path_to/file.ext"

The results should clear up everything.


- GregoryK - 2010-09-10 20:24

Adam:

I'm unclear what the status of stable/SVN is now. Are you still recommending that we go with stable only releases when updating?

mL is working great for me right now, btw, thanks for your continued support of this script. Once Dharma gets final, I hope to wean the family off of mythfrontend.

Thanks,

/Greg


- outleradam - 2010-09-10 21:01

Right now, SVN = Stable, with a few minor punctuation changes in the logs.

If Stable is working for you, then SVN will work for you.

I'm working with ThrasherX to find out the problems in the setup. His configuration does not comply with mythicalLibrarian's expected setup. We are working to figure it out. Once the problem is resolved, I will add changes to mythicalLibrarian to account for the issue and then begin mythicalLibrarian's job scheduling routines.

Once the work has begun on the job scheduler, mythicalLibrarian's SVN should be considered "unstable" instead of Latest version. The reason is, since it's inception, mythicalLibrarian has run from start to finish and that was all. The job scheduler will basically create another instance of mythicalLibrarian to be run in the future. This could lead to problems dealing with mythicalLibrarian's database being accessed by two jobs at the same time. So the mythicalLibrarian working folder will have to be reworked based on timestamp and name of the show/channel recorded.

The work has not yet started so feel free to update to SVN. It looks like this project may be pushed toward starting Sunday or later. For now my focus is fixing the issues ThrasherX is experiencing.

BTW.. Thank you for the compliment. It's not often I hear something positive and I appreciate it.


- iscraigh - 2010-09-12 19:25

Posting in the correct thread this time.
I am unable to delete files from mythtv, the logs show the failure but no cause.

I seem to have a permissions issue

In the recordings directory things look like this

Code:
-rw-rw-rw-  1 mythtv mythtv      13164 2010-08-21 16:36 2158_20100814040000.mpg.64.100x75.png
-rw-rw-rw-  1 craig  craig      107940 2010-08-14 06:58 2158_20100814040000.mpg.png
lrwxrwxrwx  1 craig  craig         137 2010-09-11 13:54 2158_20100821050000.mpg -> /home/mythtv/recordings/Episodes/The Bachelorette/Season 3/The Bachelorette S03E02 (The Bachelorette After the Final Rose (Season 2)).mpg
-rw-rw-rw-  1 mythtv mythtv      15124 2010-08-21 15:15 2158_20100821050000.mpg.64.100x75.png
-rw-rw-rw-  1 craig  craig      127031 2010-08-21 06:29 2158_20100821050000.mpg.png



In the episodes directory they look like this
Code:
ls -la /home/mythtv/recordings/Episodes/The\ Bachelorette/Season\ 5/
total 6825916
drwxr-xr-x 2 craig  craig        4096 2010-09-11 13:54 .
drwxr-xr-x 5 craig  craig        4096 2010-09-11 13:54 ..
-rw-r--r-- 1 mythtv mythtv 2331160512 2010-08-07 06:00 The Bachelorette S05E10 (The Bachelorette The Men Tell All).mpg
-rw-r--r-- 1 craig  craig         111 2010-09-11 13:53 The Bachelorette S05E10 (The Bachelorette The Men Tell All).txt
-rw-r--r-- 1 mythtv mythtv 4658550720 2010-08-14 06:00 The Bachelorette S05E11 (Episode 11).mpg
-rw-r--r-- 1 craig  craig         154 2010-09-11 13:53 The Bachelorette S05E11 (Episode 11).txt

The renamed files are owned by mythtv but the symlink in the recordings folder is owned by craig

Am I on the right track if so what do I do to correct?

When I ran the setup and it asked who the user running the job was I took the default in the box "craig" , I updated this morning and chose mythtv.

Was choosing craig the root of my issue?


Problem 2

I am not getting program info in xbmc and every episode is not showing up.

I get a fanart background for the series but the individual shows have no info or artwork. I do see notifications of shows being added though.


thanks

Craig