Kodi Community Forum
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)



- okiekyle - 2010-01-28

Sorry it took me a while to get back to this.

2nd line in the script says:
Code:
#MON, jan 25, 11:11PM

After a new download, I'll delete out all the subdirectories, make sure debugging is turned on, etc. - I'll start over so we'll know what's up.

Should I use the Google repo or SourceForge?


- outleradam - 2010-01-29

the 2nd line should say #Wed, 27Jan2010 07:23...
get the sourceforge version from this link: http://downloads.sourceforge.net/project/mythicallibrari/mythicalLibrarianBeta/mythicalLibrarian.sh?use_mirror=cdnetworks-us-1

Sourceforge is always the newest. Google is the previous version before alot of the "smart" features were created. It works, and is stable, but it lacks the ability to loop through every matching episode and find the correct series ID.

My master back-end is also my XBMC-Live media center. Here are the file versions, there was alot more to the output, but I cleaned it up.
Code:
root@XBMCLive:~# sed --version
GNU sed version 4.2.1
root@XBMCLive:~# bash --version
GNU bash, version 4.0.33(1)-release (i486-pc-linux-gnu)
root@XBMCLive:~# awk --version
GNU Awk 3.1.6
root@XBMCLive:~# cat --version
cat (GNU coreutils) 7.4
root@XBMCLive:~# mysql --version
mysql  Ver 14.14 Distrib 5.1.37, for debian-linux-gnu (i486) using  EditLine wrapper
root@XBMCLive:~# mkdir --version
mkdir (GNU coreutils) 7.4
root@XBMCLive:~# agrep -V

This is agrep version 3.0, 1994.
root@XBMCLive:~# tr --version
tr (GNU coreutils) 7.4
root@XBMCLive:~# replace -?
replace  Ver 1.4 for debian-linux-gnu at i486
root@XBMCLive:~# ln --version
ln (GNU coreutils) 7.4
root@XBMCLive:~# mv --version
mv (GNU coreutils) 7.4
root@XBMCLive:~# mkdir --version
mkdir (GNU coreutils) 7.4
root@XBMCLive:~# curl --version
curl 7.19.5 (i486-pc-linux-gnu) libcurl/7.19.5 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.15
doing some more research on Gentoo. I've never used it.

It looks like you're using the same agrep, but yours is a bit older.

Your version is failing in the fuzzy logic matching of episode name to absoloute episode number. This is somewhere in DownloadAndParse () or FuzzySeriesMatch () I'd say sed, or agrep.


Still Trying - more info - okiekyle - 2010-01-29

OK - I reinstalled from SourceForge (Wed, 27Jan2010 07:23) and deleted everything left behind by previous installations and attempts.

Here's the log:

Code:
@@@@@@@@@@@NEW SEARCH INITIATED AT Thu Jan 28 20:36:22 CST 2010@@@@@@@@@@@@@
SEARCHING: www.TheTvDb.com SHOW NAME: The Vampire Diaries EPISODE: Unpleasantville
FILE NAME: /home/mythtv/Episodes/1062_20100128185600.mpg
creating home mythicalLibrarian and log file
SEARCH FOUND:The Vampire Diaries ID#: 95491
SEARCH FOUND:The Vampire Diaries ID#: 95491
DEFINED ABSOLOUTE EPISODE NUMBER:
###################DEBUG MODE ENABLED####################
LISTING INTERNAL VARIABLES USED BY mythicalLibrarian.
INTERNET TIMEOUT:120- TVDB API KEY:6DF511BB2A64E0E9- mythicalLibrarian WORKING DIR:/home/mythtv/mythicalLibrarian-
MOVE DIR:/home/mythtv/Episodes- USING SHOWNAME AS FOLDER:Enabled-
FAILSAFE MODE:Enabled- FAILSAFE DIR:/home/mythtv/FailSafe- ALTERNATE MOVE DIR:/home/mythtv/Videos-
USE ORIGINAL DIR:Disabled NOTIFICATIONS:Enabled DEBUG MODE:Enabled-
INPUT SHOW NAME:The Vampire Diaries- LOCAL SHOW NAME TRANSLATION:- ShowName:The Vampire Diaries
SENT TVDB SHOW NAME:The%20Vampire%20Diaries-
RESOLVED SERIES ID:95491- RESOVED SHOW NAME:The Vampire Diaries-
INPUT EPISODE NAME:Unpleasantville- ABSOLOUTE EPISODE NUMBER:- RESOLVED EPISODE NAME:Unpleasantville-
SEASON:- EPISODE:- SYMLINK MODE:MOVE- FILESIZE: 1113257'kB'
CREATE AND DELETE FLAGS: ORIGINALDIR:1- FREE:326115712kB- WORKINGDIR:1 Free:326115712kB-
MOVEDIR:1- FREE:326115856kB- ALTERNATEMOVEDIR:1- FREE:326115780kB-
PRIMARYMOVIEDIRWRITABLE:1- FREE:326115780kB- ALTERNATEMOVIEDIR:1- FREE:326115780kB-
DATABASE INFORMATION
RECSTART:2010-01-28 18:56:00- MOVIE YEAR:- ORIGINAL SERIES DATE:2010-01-28-
PROGRAMID:EP011587520012- CHANNEL ID:1062- CATEGORY:Drama-
EXTRAPOLATED DATA DETERMINED THIS RECORDING AS A:Series With Episode Data- STARS:0 RATING:0
ZAP2IT SERIES ID:EP01158752- MATCHED TVDB SERIES ID:-
####################END OF DEBUG LOG#####################
%%%%%%%%%%www.TheTvDB.com information is incomplete The Vampire Diaries, Unpleasantville
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%Please consider helping out and adding to thetvdb%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%OPERATION FAILED Thu Jan 28 20:36:25 CST 2010 %%%%%%%%%%%%%%%%%

Any suggestions?

Thanks


- outleradam - 2010-01-29

Did you upgrade bash, agrep, curl and the gnu core-utils?

What files do you have in ~mythicalLibrarian/The Vampire Diaries? Do the files contain anything? Can you post a terminal output from when you run the command from the terminal?

Did you upgrade sed and AWK?


- okiekyle - 2010-01-29

bash = 4.0-5ubuntu2 (latest)
agrep = 4.17-7 (latest)
curl = 7.19.5-1ubuntu2 (latest)
coreutils = 7.4-2ubuntu1 (latest)
sed = 4.2.1-1 (latest)
I do not have "original-awk" installed.
I have the latest version of gawk (GNU awk) which is 1:3.1.6.dfsg-0ubuntu2
I also have the latest version of mawk (the interpreter) which is 1.3.3-15ubuntu1

In ~mythicalLibrarian/The Vampire Diaries there is one file called current.time. It is empty.

Here's the output from terminal:
Code:
$ /home/mythtv/mythicalLibrarian/mythicalLibrarian.sh "The Vampire Diaries" "Unpleasantville" "/home/mythtv/Episodes/1062_20100128185600.mpg"
/home/mythtv/mythicalLibrarian/mythicalLibrarian.sh: line 495: /home/kyle/mythicalLibrarian/dir.tracking: No such file or directory
rm: cannot remove `/home/kyle/mythicalLibrarian/dir.tracking': No such file or directory
mv: cannot stat `/home/kyle/mythicalLibrarian/dir.tracking2': No such file or directory
Accessing MythTV DataBase:
0
COMMERCIAL DATA START:0 STOP:1714
COMMERCIAL DATA START:5910 STOP:12688
COMMERCIAL DATA START:43816 STOP:51079
COMMERCIAL DATA START:83866 STOP:87596
RECSTART:2010-01-28 18:56:00 MOVIEYEAR: SERIESDATE:2010-01-28
PROGRAMID:EP011587520012 ShowCategory:Drama STARS:0 RATING:0
PLOT: Stefan and Damon try to identify the new vampire in town; Stefan gives Elena protection for her family and friends; Matt takes a job with a former football star, who comes to Bonnie's aid; Damon and Stefan accompany Elena to a school dance.
TESTING FOR ZAP2IT SERIES ID MATCH:The Vampire Diaries
No direct Zap2it match found. Please update TheTvDb.com
USING FUZZY LOGIC FOR EPISODE RECOGNITION
The Vampire Diaries
FUZZY LOGIC SHOW NAME: The Vampire Diaries ID: 95491
/home/mythtv/mythicalLibrarian/mythicalLibrarian.sh: line 402: [: : integer expression expected
/home/mythtv/mythicalLibrarian/mythicalLibrarian.sh: line 435: [: : integer expression expected
FUZZY Exx NUMBER:16
EPISODE:Unpleasantville ABSOLUTE NUMBER:16 S01E12
FILE SIZE:1113257kB
MOVEDIR FREE SPACE: 320221628kB- WRITABLE:1
ALTMOVEDIR FREE SPACE: 320221628kB- WRITABLE:1
MOVIEDIR FREE SPACE: 320221628kB- WRITABLE:1
ALTMOVIEDIR FREE SPACE: 320221628kB- WRITABLE:1
PLOT: Stefan and Damon try to identify the new vampire in town; Stefan gives Elena protection for her family and friends; Matt takes a job with a former football star, who comes to Bonnie's aid; Damon and Stefan accompany Elena to a school dance.
SET TARGET DIR AS: /home/mythtv/Episodes
CREATING SYMLINK IN MOVE MODE

After running manually it appears to have worked. There's a new sub-directory ~/Episodes/The Vampire Diaries and it has a .mpg and a .txt both named "The Vampire Diaries.S01E12 (Unpleasentville)"

Any idea why it failed when running automatically? Was it running as mythtv then (instead of me)?


- outleradam - 2010-01-29

Great! It's working, now it should synch up with xbmc.

hrm... what lines are those, 432 and 435? Ive been documenting so my line numbers are different then yours now.

It would have to be a permission error if it failed for mythtv. again, try deleting your libraries and make sure you run the script I posted earlier to set permissions. It may be different on gentoo, but I think your core commands should be the same in bash.

I'd need to see the log for that. The log contains great amounts of information and can tell me why mythicalLibrarian made any decision, but flat out errors require the console output. It could be that mythicalLibrarian did not have permission and caught it, then logged it and exited. I'd need to see the SINGLE debug entry in the /home/mythtv/mythicalLibrarian/output.log file to see why mythtv isn't able to do it's thing from mythtv user.

Also, if you would be kind enough to post up a list of the gentoo commands you used so that they can be logged on the wiki and useful for others? I'm going to start a troubleshooting section on there soon.


- watson540 - 2010-01-29

outleradam Wrote:Ok, looks like you're up-to-date now. Did you get the dependencies, "apt-get install curl agrep"? I have the two repositories, one for current and one for stable. That's all.

Tell me if there is a file called "~/mythicalLibrarian/Family Guy/Family Guy.E.txt" if not, find the user setting "Timeout" and increase it to 120

also try running it from the command line and tell me what you see, "/home/mythtv/mythicalLibrarian/mythicalLibrarian.sh" "Family Guy" "the" "null"

Code:
Accessing MythTV DataBase:

RECSTART: MOVIEYEAR: SERIESDATE:
PROGRAMID: ShowCategory: STARS: RATING:0
PLOT:
family guy
agrep: 1 word matches within 2 errors
FUZZY LOGIC SHOW NAME: Family Guy ID: 75978
DATABASE IS MAINTAINED. TIME IS:1264687920 NEXT UPDATE IS:1264771118
FUZZY Exx NUMBER:12
EPISODE:Fox  Behind the scenes of Family Guy ABSOLUTE NUMBER:12 S00E14
stat: cannot stat `null': No such file or directory
FILE SIZE:0kB
MOVEDIR FREE SPACE: 3053056kB- WRITABLE:1
ALTMOVEDIR FREE SPACE: 263701968kB- WRITABLE:1
MOVIEDIR FREE SPACE: 3053056kB- WRITABLE:1
ALTMOVIEDIR FREE SPACE: 263701968kB- WRITABLE:1
DATABASE INFORMATION
PLOT:
INPUT FILE NAME NON EXISTANT -CHECK FILE NAME AND READ PERMISSIONS

hey i just tried this..my output looks different than yours..
Code:
myth mythicalLibrarian # /home/mythtv/mythicalLibrarian/mythicalLibrarian.sh "Family Guy" "the" "null"
Accessing MythTV DataBase:

RECSTART: MOVIEYEAR: SERIESDATE:
PROGRAMID: ShowCategory: STARS: RATING:0
PLOT:
Family Guy
sed: -e expression #1, char 1: unknown command: `F'
sed: -e expression #1, char 1: unknown command: `F'
FUZZY LOGIC SHOW NAME:  ID:
sed: -e expression #1, char 1: unknown command: `F'
sed: -e expression #1, char 1: unknown command: `F'
stat: cannot stat `null': No such file or directory
FILE SIZE:0kB
MOVEDIR FREE SPACE: 2146756kB- WRITABLE:1
ALTMOVEDIR FREE SPACE: 68356272kB- WRITABLE:1
MOVIEDIR FREE SPACE: 24984456kB- WRITABLE:1
ALTMOVIEDIR FREE SPACE: 68356272kB- WRITABLE:1
PLOT:
INPUT FILE NAME NON EXISTANT -CHECK FILE NAME AND READ PERMISSIONS



- watson540 - 2010-01-29

here is a more proper output with me logged in as mythtv

Code:
mythtv@myth ~ $ ./mythicalLibrarian/mythicalLibrarian.sh "Judge Judy" "null" "/mnt/ntfs/mythtv/1006_20100127160300.mpg"
Accessing MythTV DataBase:
0
COMMERCIAL DATA START:10285 STOP:12090
COMMERCIAL DATA START:22938 STOP:27325
COMMERCIAL DATA START:36262 STOP:44715
RECSTART:2010-01-27 16:03:00 MOVIEYEAR:2010 SERIESDATE:
PROGRAMID:EP001887103887 ShowCategory:Episodic STARS:0 RATING:0
PLOT: An uninvited partygoer says another guest punched him in the face during a brawl.
TESTING FOR ZAP2IT SERIES ID MATCH:Judge Judy
./mythicalLibrarian/mythicalLibrarian.sh: line 402: [: : integer expression expected
./mythicalLibrarian/mythicalLibrarian.sh: line 435: [: : integer expression expected
cat: /home/mythtv/mythicalLibrarian/Judge Judy/Judge Judy.zap2it.txt: No such file or directory
No direct Zap2it match found. Please update TheTvDb.com
USING FUZZY LOGIC FOR EPISODE RECOGNITION
Judge Judy
sed: -e expression #1, char 1: unknown command: `J'
sed: -e expression #1, char 1: unknown command: `J'
FUZZY LOGIC SHOW NAME:  ID:
sed: -e expression #1, char 1: unknown command: `J'
sed: -e expression #1, char 1: unknown command: `J'
agrep: /home/mythtv/mythicalLibrarian/Judge Judy/Judge Judy.Ename.txt: no such file or directory
FUZZY Exx NUMBER:
EPISODE:null ABSOLUTE NUMBER:
FILE SIZE:495666kB
MOVEDIR FREE SPACE: 68356272kB- WRITABLE:1
ALTMOVEDIR FREE SPACE: 68356272kB- WRITABLE:1
MOVIEDIR FREE SPACE: 24984456kB- WRITABLE:1
ALTMOVIEDIR FREE SPACE: 68356272kB- WRITABLE:1
PLOT: An uninvited partygoer says another guest punched him in the face during a brawl.
SET TARGET DIR AS: /mnt/extra/episodes
CREATING LINK IN LINK MODE



- watson540 - 2010-01-29

downgraded sed..no luck..found this online while googling this particular error..

"The problem is that you're using the slash(/) as the delimiter for sed's 's' command and there's a slash in the text which sed sees as a delimiter. Try using a different delimiter like '|'."

is this the problem?


- watson540 - 2010-01-29

another re download and re-setup..got a different error set this time..weird..also i noticed it did send an update notification to xbmc this time though.
Code:
Accessing MythTV DataBase:
0
COMMERCIAL DATA START:10285 STOP:12090
COMMERCIAL DATA START:22938 STOP:27325
COMMERCIAL DATA START:36262 STOP:44715
RECSTART:2010-01-27 16:03:00 MOVIEYEAR:2010 SERIESDATE:
PROGRAMID:EP001887103887 ShowCategory:Episodic STARS:0 RATING:0
PLOT: An uninvited partygoer says another guest punched him in the face during a brawl.
TESTING FOR ZAP2IT SERIES ID MATCH:Judge Judy
DATABASE IS MAINTAINED. TIME IS:1264755315 NEXT UPDATE IS:1264838874
No direct Zap2it match found. Please update TheTvDb.com
USING FUZZY LOGIC FOR EPISODE RECOGNITION
Judge Judy
sed: -e expression #1, char 1: unknown command: `J'
sed: -e expression #1, char 1: unknown command: `J'
FUZZY LOGIC SHOW NAME:  ID:
sed: -e expression #1, char 1: unknown command: `J'
sed: -e expression #1, char 1: unknown command: `J'
best match has 3 errors, there are 3 matches, output them? (y/n)y
FUZZY Exx NUMBER:Pilot
sed: -e expression #1, char 2: extra characters after command
sed: -e expression #1, char 2: extra characters after command
sed: -e expression #1, char 2: extra characters after command
./mythicalLibrarian/mythicalLibrarian.sh: line 607: test: -lt: unary operator expected
./mythicalLibrarian/mythicalLibrarian.sh: line 608: test: -lt: unary operator expected
EPISODE: ABSOLUTE NUMBER:Pilot SE
FILE SIZE:495666kB
MOVEDIR FREE SPACE: 24984428kB- WRITABLE:1
ALTMOVEDIR FREE SPACE: 68356272kB- WRITABLE:1
MOVIEDIR FREE SPACE: 24984428kB- WRITABLE:1
ALTMOVIEDIR FREE SPACE: 68356272kB- WRITABLE:1
PLOT: An uninvited partygoer says another guest punched him in the face during a brawl.
SET TARGET DIR AS: /mnt/extra/episodes
CREATING LINK IN LINK MODE
Code:
@@@@@@@@@@@NEW SEARCH INITIATED AT Fri Jan 29 03:49:46 EST 2010@@@@@@@@@@@@@
PERFORMING MAINTENANCE ROUTINE
SEARCHING: www.TheTvDb.com SHOW NAME: Judge Judy EPISODE: null
FILE NAME: /mnt/ntfs/mythtv/1006_20100127160300.mpg
SEARCH FOUND:Judge Judy ID#: 71221
SEARCH FOUND: ID#:
DEFINED ABSOLOUTE EPISODE NUMBER: Pilot
###################DEBUG MODE ENABLED####################
LISTING INTERNAL VARIABLES USED BY mythicalLibrarian.
INTERNET TIMEOUT:50- TVDB API KEY:6DF511BB2A64E0E9- mythicalLibrarian WORKING DIR:/home/mythtv/mythicalLibrarian-
MOVE DIR:/mnt/extra/episodes- USING SHOWNAME AS FOLDER:Enabled-
FAILSAFE MODE:Disabled- FAILSAFE DIR:/home/mythtv/FailSafe- ALTERNATE MOVE DIR:/mnt/ntfs/episodes-
USE ORIGINAL DIR:Disabled NOTIFICATIONS:Enabled DEBUG MODE:Enabled-
INPUT SHOW NAME:Judge Judy- LOCAL SHOW NAME TRANSLATION:- ShowName:Judge Judy
SENT TVDB SHOW NAME:Judge%20Judy-
RESOLVED SERIES ID:- RESOVED SHOW NAME:Judge Judy-
INPUT EPISODE NAME:null- ABSOLOUTE EPISODE NUMBER:Pilot- RESOLVED EPISODE NAME:-
SEASON:S- EPISODE:E- SYMLINK MODE:LINK- FILESIZE: 495666'kB'
CREATE AND DELETE FLAGS: ORIGINALDIR:1- FREE:68356272kB- WORKINGDIR:1 Free:2155276kB-
MOVEDIR:1- FREE:24984428kB- ALTERNATEMOVEDIR:1- FREE:68356272kB-
PRIMARYMOVIEDIRWRITABLE:1- FREE:24984428kB- ALTERNATEMOVIEDIR:1- FREE:68356272kB-
DATABASE INFORMATION
RECSTART:2010-01-27 16:03:00- MOVIE YEAR:2010- ORIGINAL SERIES DATE:-
PROGRAMID:EP001887103887- CHANNEL ID:1006- CATEGORY:Episodic-
EXTRAPOLATED DATA DETERMINED THIS RECORDING AS A:Series With Episode Data- STARS:0 RATING:0
ZAP2IT SERIES ID:225574937- MATCHED TVDB SERIES ID:-
####################END OF DEBUG LOG#####################


Symlink created /mnt/extra/episodes/Judge Judy/Judge Judy.SE ().mpg
@@@@@@@@@@@@@OPERATION COMPLETE Fri Jan 29 03:49:53 EST 2010 @@@@@@@@@@@@@@@@


that error is for the first letter of Judge in Judge judy..confirmed by changing it to "kludge judy" Smile
and it does now send update notification to xbox and i see the library scanning too..but still nothing in the library..should it show up in tv shows..or movies..or videos?


- outleradam - 2010-01-29

try messing around in the terminal with the sed command.

sed -n 3p "your file" should read the third line of your file
|grep -m1 ^ should not change the output


agrep -Byn "search words" "your file here"
will return the best match from your file with a number in front
|sed 's/:.*//'` should just leave you with a number

This is where I'd say the problem most likely lies.


Got it working - okiekyle - 2010-01-29

OK - not sure what I did. The only thing I remember is that I disabled desktop notification. After that, it started working automatically, not just manually. If that change couldn't have made the difference, then I must have changed something in the configuration that I don't remember.

In any case, I'm now slowly, step-by-step, changing the configurations from the most simple (all in one dir tree just to get it going) to what I really want it to do (adding my NAS, etc.).

I have a question about updating the XBMC library. Can you help me understand what you're doing?

Do you update the XBMC library with the data you got from TheTVDB.com or do you just go tell XBMC to update his library (using the scrapers configured in XMBC)?

Thanks,


- barney_1 - 2010-01-29

I'm working with the script from sourceforge: #Wed, 28Jan2010 21:55

I'm having trouble getting the Symlink to work. From looking at my log it seems I have the folders and permissions set up correctly but perhaps the filename that the script is trying to link to doesn't exist?
Code:
@@@@@@@@@@@NEW SEARCH INITIATED AT Fri Jan 29 08:50:18 CST 2010@@@@@@@@@@@@@
%%%NO DATABASE INFORMATION. CHECK LOGIN/PASS OR FILE %%%%%
SEARCHING: www.TheTvDb.com SHOW NAME: South Park EPISODE: Canada on Strike
FILE NAME: /Lenny/mythtv/1053_20100119213000.mpg
SEARCH FOUND:South Park ID#: 75897
DEFINED ABSOLOUTE EPISODE NUMBER: 194
###################DEBUG MODE ENABLED####################
LISTING INTERNAL VARIABLES USED BY mythicalLibrarian.
INTERNET TIMEOUT:50- TVDB API KEY:6DF511BB2A64E0E9- mythicalLibrarian WORKING DIR:/home/mythtv/mythicalLibrarian-
MOVE DIR:/Flanders/mythtv/TV- USING SHOWNAME AS FOLDER:Enabled-
FAILSAFE MODE:Enabled- FAILSAFE DIR:/home/mythtv/FailSafe- ALTERNATE MOVE DIR:/home/mythtv/Episodes-
USE ORIGINAL DIR:Disabled NOTIFICATIONS:Disabled DEBUG MODE:Enabled-
INPUT SHOW NAME:South Park- LOCAL SHOW NAME TRANSLATION:- ShowName:South Park
SENT TVDB SHOW NAME:South%20Park-
RESOLVED SERIES ID:75897- RESOVED SHOW NAME:South Park-
INPUT EPISODE NAME:Canada on Strike!- ABSOLOUTE EPISODE NUMBER:194- RESOLVED EPISODE NAME:Canada On Strike-
SEASON:S12- EPISODE:E04- SYMLINK MODE:LINK- FILESIZE: 0'kB'
CREATE AND DELETE FLAGS: ORIGINALDIR:1- FREE:77015004kB- WORKINGDIR:1 Free:2092604kB-
MOVEDIR:1- FREE:37747804kB- ALTERNATEMOVEDIR:0- FREE:kB-
PRIMARYMOVIEDIRWRITABLE:1- FREE:37747804kB- ALTERNATEMOVIEDIR:0- FREE:kB-
DATABASE INFORMATION
RECSTART:- MOVIE YEAR:- ORIGINAL SERIES DATE:-
PROGRAMID:- CHANNEL ID:- CATEGORY:-
EXTRAPOLATED DATA DETERMINED THIS RECORDING AS A:- STARS: RATING:0
ZAP2IT SERIES ID:- MATCHED TVDB SERIES ID:-
####################END OF DEBUG LOG#####################
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%INPUT FILE NAME NON EXISTANT CHECK FILE NAME AND PERMISSIONS%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%OPERATION FAILED Fri Jan 29 08:50:19 CST 2010 %%%%%%%%%%%%%%%%%

It looks like my mythbackend.log has '\r' appended to the filename:
Code:
2010-01-29 08:50:18.899 JobQueue: Started "Mythical Librarian" for "South Park" recorded from channel 1053 at Tue Jan 19 21:30:00 2010
/home/mike/mythicalLibrarian/mythicalLibrarian.sh: line 526: /home/mythtv/mythicalLibrarian/dir.tracking: No such file or directory
mv: cannot stat `/home/mythtv/mythicalLibrarian/dir.tracking2': No such file or directory
Accessing MythTV DataBase:

RECSTART: MOVIEYEAR: SERIESDATE:
PROGRAMID: ShowCategory: STARS: RATING:0
PLOT:
South Park
FUZZY LOGIC SHOW NAME: South Park ID: 75897
DATABASE IS MAINTAINED. TIME IS:1264776947 NEXT UPDATE IS:1264859795
agrep: 1 word matches within 1 error
FUZZY Exx NUMBER:194
EPISODE:Canada On Strike ABSOLUTE NUMBER:194 S12E04
stat: cannot stat `/Lenny/mythtv/1053_20100119213000.mpg\r': No such file or directory
df: `/home/mythtv/Episodes': No such file or directory
df: no file systems processed
df: `/home/mythtv/Movies': No such file or directory
df: no file systems processed
UNUSABLE SPACE-CHECK:/home/mythtv/Episodes
UNUSABLE SPACE-CHECK:/home/mythtv/Movies
FILE SIZE:0kB
MOVEDIR FREE SPACE: 37747804kB- WRITABLE:1
ALTMOVEDIR FREE SPACE: kB- WRITABLE:0
MOVIEDIR FREE SPACE: 37747804kB- WRITABLE:1
ALTMOVIEDIR FREE SPACE: kB- WRITABLE:0
PLOT:
INPUT FILE NAME NON EXISTANT -CHECK FILE NAME AND READ PERMISSIONS
2010-01-29 08:50:19.862 JobQueue: Finished "Mythical Librarian" for "South Park" recorded from channel 1053 at Tue Jan 19 21:30:00 2010.

I poked around for a bit but didn't find where they '\r' is coming from. Any thoughts?


- outleradam - 2010-01-29

best match has 3 errors, there are 3 matches, output them? (y/n)y

agrep -Byn should not display this. The grep -m1 should pick the first match and the sed should return only the line number this is where the problem lies


- tim- - 2010-01-29

I still havent quit gotten this working. I havent had a whole lot of time to spend on it, but now I do.

I just upgraded to the newest version and deleted everything, started from scratch... Things seems to be working except everything is moving into my alternate move directory. A pastebin of the log is at

http://pastebin.com/m561c1b11