mythicalLibrarian - a tool to build Movie and TV Show library from MythTV recordings - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116) +--- Thread: mythicalLibrarian - a tool to build Movie and TV Show library from MythTV recordings (/showthread.php?tid=65644) |
- watson540 - 2010-01-31 also, i thought deleting files from the xbox was part of the built in myth:// protocol.. Code: 2010-01-30 22:20:48.288 ERROR when trying to delete file: /GetPlaybackURL/UNABLE/TO/FIND/LOCAL/FILE/ON/myth/1032_20100128000000.mpg. File doesn't exist. Database metadata will not be removed. - outleradam - 2010-01-31 You've got to enable follow symlinks when deleting. see the installation instructions for mythtv, or the installation instructions for mythicalLibrarian. This is not a mythicalLibrarian issue. MythicalLibrarian bridges a gap, and does not create additional handling for other programs. If the symlink is there and valid, then MythTV owns the file. I am not a Team XBMC developer. Things get changed alot in XBMC. Arnova is the only active dev for xbox. Maybe you could talk to him, or pick up a cheap computer and run LIVE. Comskip data is not an issue with mythicalLibrarian. I have had some problems with comskip removal though. It sounds like an XBOX speciffic issue. - tim- - 2010-01-31 I am trying to gather the info for MC2XML... having some weird issues http://pastebin.com/mdf1de5d it never even lists the filename - barney_1 - 2010-01-31 Any idea how I can have mythicalLibrarian delete the recording from the MythTV database after it moves the file? I'd like to go completely away from using the Myth frontend and manually delete files from XBMC after I watch them. - outleradam - 2010-01-31 tim- Wrote:I am trying to gather the info for MC2XML... having some weird issuesIt would appear that it won't give you the file name without database processing. Reenable that to get the file name. Change GuideDataType=SchedulesDirect, then rerun the mythicalLibrarian job Sorry, I didn't realize it would do that without proper GuideDataType, I've never run with anything except SchedulesDirect data. barney_1 Wrote:Any idea how I can have mythicalLibrarian delete the recording from the MythTV database after it moves the file?That would be outside the scope of mythicalLibrarian's field, which is to preserve the file handling. You may want to check on the mythtv forums for that. It sounds like you need a separate user job. You can disable SYMLINK mode and that will remove the ability to control the file from mythtv. Actually, on seccond thought you could do something like this with a one-liner as a user job to be run after mythicalLibrarian. Code: test -L "%DIR%/%FILE%" && mysql -uUSERNAME -pPASSWORD "use 'mythconverg' ; DELETE * from recorded where basename like %FILE%; "; *DO THE SAME FOR EACH OF THE DATABASES*; test -L "%DIR%/%FILE%" && rm "%DIR%/%FILE%" - barney_1 - 2010-01-31 Thanks, that line of code is exactly the type of thing I was looking for. But, I've also thought of another solution and will share it if anyone else is looking to do the same thing. So, I've got mythicalLibrarian in MOVE mode so that it moves the files then symlinks to them from their original location. Then I DO NOT allow mythtv to follow the Symlinks. That way when I delete a file from MythTV it just removes the link and the database info but leaves the file. This way I can delete the files from XBMC and it has no effect on MythTV. To get MythTV to automatically remove recordings I could use the code Outleradam gave me, but instead, I'm setting each recording rule up to record 3 episodes, expiring the old and recording the new. This way there will always be three of each episode recored. But I have the mythicalLibrarian user job run for each episode as soon as it's done recording. This means I have the MythTV data for the last three episodes recorded in case mythicalLibrarian fails but I don't ever need to manually delete recordings. I hope that makes sense. Once again, great script, thanks! - watson540 - 2010-02-01 outleradam Wrote:You've got to enable follow symlinks when deleting. see the installation instructions for mythtv, or the installation instructions for mythicalLibrarian. This is not a mythicalLibrarian issue. MythicalLibrarian bridges a gap, and does not create additional handling for other programs. If the symlink is there and valid, then MythTV owns the file. it is an xbox specific issue and i apologize. i guess it just seems like there are only certain places active on here..and the threads i start arent one of them. I do have an older laptop im considering donating to the cause..I just like the convenience and low power of the xbox about the not deleting file..i had mythtv set to follow symlinks, but with the script in move mode, which is how i had it it seems something is awry but i cant quite explain it..im trying it in link mode now, hoping it will work ..cause in link mode mythtv will actually have a symlink to follow..not so in move mode..correct?? I just wanted to reply to report an error in the logic maybe?? I keep getting madhouse the tv series show up as a movie even though the episode info is there.. Code: @@@@@@@@@@@NEW SEARCH INITIATED AT Sun Jan 31 23:01:42 EST 2010@@@@@@@@@@@@@ - outleradam - 2010-02-01 Upgrade to the latest version of mythicalLibrarian, it will stop the movie recognitions of shows on certain guide data types. Right now I only support SchedulesDirect/Zap2it/tivo database. I'm expecting some info from tim- for MC2XML data. In the mean time, all you can do is upgrade and fail out those recordings. I see that the IDs are almost the same as Zap2it ids, so it may be possible to work with it by just removing the EP and SH identifiers from the shows and just work with the numbers of the episodes to do the matching. We'll see. I think it's promissing though. - watson540 - 2010-02-01 thanks..also..im unclear on one other thing when I add the folders to the xbmc library by setting the content..do I add the folders "tv episodes"" and "movies" under the mythtv source, ot do I add the real folders (over xbmp for me) such a s/mnt/ntfs/tv-episodes?? seems to only work right with the latter - watson540 - 2010-02-01 issues ..nothings changed..but failsafe mode keeeps activating with new version..presumable cause i keep them on an ntfs drive which i cannot change p[ermissions for Code: @@@@@@@@@@@NEW SEARCH INITIATED AT Mon Feb 1 04:41:06 EST 2010@@@@@@@@@@@@@ - watson540 - 2010-02-01 nm i give up for real..time to find something that works but thanks for your hard work..mebbe in a year ill come back to deleting all of my recordings a nightly basis just to see pretty album art i mean..what is this?! Code: mythtv@myth ~/mythicalLibrarian $ ./mythicalLibrarian.sh "SpongeBob SquarePants" "Sand Castles in the Sand" /mnt/ntfs/myth/1054_20100131200000.mpg - outleradam - 2010-02-01 mythicalLibrarian does not process mc2xml? It's looking for channelID for the information. It's not getting proper database information. I'm waiting for information to process mc2xml. currently mythicalLibrarian handles SchedulesDirect. If you would like, you can go back a few pages and get the information for me so that I can get the ball rolling on it. You can change permissions by editing the /etc/fstab file for mounting and/or adding the mythtv user to your user group. I should add this to the FAQ. BTW.. check the installation page and look down at the bottom to fix most common issues. Do a bit of searching on how to fix your problems. As far as I have seen, mythicalLibrarian, configured correctly, with mythtv, using SchedulesDirect data handles 100% of movies and 99.7% of episodes, adds comskips, and manages it's files well. All I'm doing until I get the required data to support additional guide data types is maintaining. Until a new datatype comes up and I can begin a new development cycle, this program is in maintenance phase and there's not much to do with mythtv under SchedulesDirect data. Here's a visualization: SchedulesDirect is in maintenance phase ALL OTHERS are in Requirements phase This is what I need for new data types http://forum.xbmc.org/showpost.php?p=496721&postcount=90 2 things I need to add to the log is data provider and user running mythicalLibrarian - outleradam - 2010-02-01 tim- could you rerun the jobs please? I would like to get that info from you. - watson540 - 2010-02-02 yeah my permissions havent changed..i know how to setup fstab and its not been changed for over a year. i didnt start getting permissions errors till ii upgraded your sscript i would give you the info but you said you had it taken care of oh yeah..if you know how to set permissions on an ntfs drive im all ears (hint: its not possible) - watson540 - 2010-02-02 and oh h gee sorry for trting to report a bug it must be my dumb ass thats been runnning gentoo for 8 years now..thats it.,..i just dont know how to use linux Code: @@@@@@@@@@@NEW SEARCH INITIATED AT Mon Feb 1 19:00:13 EST 2010@@@@@@@@@@@@@ Code: mythtv@myth ~/mythicalLibrarian $ touch /home/mythtv/i-canfucking-write-here Code: myth Downloads # fdisk -l |