|
SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI. |
|
Thread Tools | Search this Thread | Display Modes |
#1261
|
|||
|
|||
How did you move the archives? Are you moving them to an import folder if you just move them..... did you do a refresh? If moving them to an import folder all you have to do is a refresh..... if moving them to another folder other than an import or recording directory you have to relink them if you want to see them in recordings.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. Last edited by nyplayer; 08-27-2011 at 12:58 PM. |
#1262
|
|||
|
|||
I manually moved them to an import folder (from my recording drive to my "archive" drive)
What exactly do you mean by "refresh"? They do show up in my Video Library section, and I can play them fine, I just don't see any of the show information. And what's entailed with "relinking"? Sorry - that sounds like a noob-kind of question. |
#1263
|
|||
|
|||
I went to the Web GUI and selected to rescan - we'll see what happens.
I'm also re-visiting /BMT page - pretty cool - but not sure if that provides a solution or not. So, in the scanning process, does it find media files, and if a .my file is found, read it and import that into Sage's database so that it shows in the Sage (SageMC) client? |
#1264
|
|||
|
|||
The "library import scan" finished and I now have mixed results. Some Shows directories have the information, others - or at least my "example" directory, AmericasGotTalent shows the *number* of shows correctly (22), but when I navigate to the folder (showing 22 items), there is only one media file.
How do I "relink" a certain folder? |
#1265
|
|||
|
|||
Quote:
In the Relink, you have: "C://_TVShows/$.GetShowTitle{}/%p%.mpg" why is only the first directory delimeter "//", the others are single, "/". I thought I understood I can either: "C:\\_TVShows\\$.GetShowTitle{}\\%p%.mpg" or: "C:/_TVShows/$.GetShowTitle{}/%p%.mpg" ASIDE: Did you customize this for me using my "_TVShows" or is this a case of "great minds think alike"? Last edited by BKeadle; 08-28-2011 at 08:12 AM. |
#1266
|
|||
|
|||
Very interesting script. I see your command:
Code:
move "%~f1" "%~dp1" set checkuse=%ERRORLEVEL% if %checkuse% NEQ 0 exit 1 is trying to move a file to itself. This actually works as a test for a file being in use? Very cool if so. Code:
set outdir=%3 for /f "useback tokens=*" %%a in ('%outdir%') do set outdir=%%~a set MediaTitle=%2 for /f "useback tokens=*" %%a in ('%MediaTitle%') do set MediaTitle=%%~a It's a good day when we learn something new! Assuming the video being moved is on the same volume, wouldn't it be better to just move it instead of xcopy? Is there a reason you're copying instead of moving? Last edited by BKeadle; 08-28-2011 at 12:06 PM. |
#1267
|
|||
|
|||
I use xcopy instead of move because in my case the destination folder is not in SageTV... It is neither an Import or a recording directory in SageTV. SJQ needs to see the original file in order to do a relink. If your destination folder is a Sagetv import then you can use a move.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. |
#1268
|
|||
|
|||
Quote:
|
#1269
|
|||
|
|||
What I would do is move a few back to a recording folder to see if it finds the info from the guide... that is if you did not rename them. Just move a few and do a video refresh.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. |
#1270
|
|||
|
|||
Now I'm really confused...
1) After having moved only a few of the shows back to the Recordings folder, *All* the recordings (for America's Got Talent) is back in the TV Recordings page, with many of them with Archive enabled and all the show information is intact. Are the ones showing as "Archived" by virtue of them being in an Import folder, not the recording folder? Is there a way to show the full filename of the show in the Sage Client (like I can see in the Sage Web interface?) I also realized - working on your SJQMoveTitle script - that the filename AmericasGotTalent-* does *not* indicate the show title; the show title is "America's Got Talent". So my current directory structure is "invalid", and I need to change all the directories to reference the *Show Title*, not the filename prefix: Code:
.\AmericasGotTalent\AmericasGotTalent*.mp4 Code:
.\America's Got Talent\AmericasGotTalent*.mp4 Code:
if [IsObjMediaFile == true && $.IsFileCurrentlyRecording{} == "false" && Filename =* "_TVShows" && Filename =* "AmericasGotTalent-" && $.GetNumberOfSegments{} == "1"] { :PRIORITY 1500 :RELINKOPTS "$.GetAiringID{}" "V:\\Videos\Drobo2\\Recordings\\_TVShows\\$.GetShowTitle{}\\%p%.mpg" _RELINK } Code:
java.lang.IllegalArgumentException: File argument must exist and be readable! Code:
2011-08-28 16:50:43,980 WARN [MediaFileQueueLoader]: Processing 'America's Got Talent'... 2011-08-28 16:50:43,980 WARN [RulesParser]: Line 5: Evaluating 'IsObjMediaFile == "true"' == true 2011-08-28 16:50:43,980 WARN [RulesParser]: Line 5: Evaluating '$.IsFileCurrentlyRecording{} == "false"' == true 2011-08-28 16:50:43,980 WARN [MediaVariables]: MediaVar '%c%' == 'V:\Videos\Drobo2\Recordings\_TVShows\America's Got Talent\AmericasGotTalent-1390208-0.mpg' 2011-08-28 16:50:43,980 WARN [MediaVariables]: MediaVar '%d%' == 'V:\Videos\Drobo2\Recordings\_TVShows\America's Got Talent' 2011-08-28 16:50:43,980 WARN [MediaVariables]: MediaVar '%f%' == 'AmericasGotTalent-1390208-0.mpg' 2011-08-28 16:50:43,980 WARN [MediaVariables]: MediaVar '%e%' == 'mpg' 2011-08-28 16:50:43,980 WARN [MediaVariables]: MediaVar '%p%' == 'AmericasGotTalent-1390208-0' 2011-08-28 16:50:43,980 WARN [RulesParser]: Line 5: Evaluating 'Filename =* "_TVShows"' == true 2011-08-28 16:50:43,980 WARN [MediaVariables]: MediaVar '%c%' == 'V:\Videos\Drobo2\Recordings\_TVShows\America's Got Talent\AmericasGotTalent-1390208-0.mpg' 2011-08-28 16:50:43,980 WARN [MediaVariables]: MediaVar '%d%' == 'V:\Videos\Drobo2\Recordings\_TVShows\America's Got Talent' 2011-08-28 16:50:43,996 WARN [MediaVariables]: MediaVar '%f%' == 'AmericasGotTalent-1390208-0.mpg' 2011-08-28 16:50:43,996 WARN [MediaVariables]: MediaVar '%e%' == 'mpg' 2011-08-28 16:50:43,996 WARN [MediaVariables]: MediaVar '%p%' == 'AmericasGotTalent-1390208-0' 2011-08-28 16:50:43,996 WARN [RulesParser]: Line 5: Evaluating 'Filename =* "AmericasGotTalent-"' == true 2011-08-28 16:50:43,996 WARN [RulesParser]: Line 5: Evaluating '$.GetNumberOfSegments{} == "1"' == true 2011-08-28 16:50:43,996 INFO [MediaFileQueueLoader]: Run completed [16ms] 2 |
#1271
|
|||
|
|||
In the Ruleset editor, what's the "Reload" button for? If I "Save" my ruleset, is it not active until I hit "Reload"?
Last edited by BKeadle; 08-29-2011 at 06:34 AM. |
#1272
|
||||
|
||||
Reload puts back into the editor what you last saved.
Say you make a bunch of changes and realize you goofed BEFORE hitting SAVE. You hit RELOAD and you are back (in the editor) where you began. |
#1273
|
|||
|
|||
Ah - good to know. Thanks.
|
#1274
|
|||
|
|||
I must have a syntax problem here, but can't figure it out. My ruleset is trying to filter against filenames. Here's the Media Debugger output.
Code:
2011-09-01 05:38:14,972 WARN [RulesParser]: Line 61: Evaluating 'Filename =$ ".mpg"' == true 2011-09-01 05:38:14,972 WARN [MediaVariables]: MediaVar '%c%' == 'V:\Videos\Drobo2\Recordings\_TVShows\America's Got Talent\AmericasGotTalent-1390208-0.mpg' 2011-09-01 05:38:14,972 WARN [MediaVariables]: MediaVar '%d%' == 'V:\Videos\Drobo2\Recordings\_TVShows\America's Got Talent' 2011-09-01 05:38:14,972 WARN [MediaVariables]: MediaVar '%f%' == 'AmericasGotTalent-1390208-0.mpg' 2011-09-01 05:38:14,972 WARN [MediaVariables]: MediaVar '%e%' == 'mpg' 2011-09-01 05:38:14,972 WARN [MediaVariables]: MediaVar '%p%' == 'AmericasGotTalent-1390208-0' 2011-09-01 05:38:14,972 WARN [RulesParser]: Line 61: Evaluating 'Filename =* "(Fringe|AmericasGotTalent)"' == false 2011-09-01 05:38:14,972 WARN [RulesParser]: Line 66: Evaluating 'IsObjMediaFile == "true"' == true |
#1275
|
|||
|
|||
Since I couldn't get this to resolve to true with media file:
V:\Videos\Drobo2\Recordings\_TVShows\America's Got Talent\AmericasGotTalent-1390208-0.mpg Code:
MediaVar '%c%' == 'V:\Videos\Drobo2\Recordings\_TVShows\America's Got Talent\AmericasGotTalent-1390208-0.mpg' [MediaVariables]: MediaVar '%d%' == 'V:\Videos\Drobo2\Recordings\_TVShows\America's Got Talent' [MediaVariables]: MediaVar '%f%' == 'AmericasGotTalent-1390208-0.mpg' [MediaVariables]: MediaVar '%e%' == 'mpg' [MediaVariables]: MediaVar '%p%' == 'AmericasGotTalent-1390208-0' [RulesParser]: Line 61: Evaluating 'Filename =* "Fringe|AmericasGotTalent)"' == false Code:
Filename =% ".*Fringe.*|.*AmericasGotTalent.*" ...TIME PASSES... Well, OK, I suppose this will suffice: (Filename =* "Fringe-" || Filename =* "AmericasGotTalent-") Last edited by BKeadle; 09-01-2011 at 08:57 PM. |
#1276
|
|||
|
|||
Quote:
|
#1277
|
||||
|
||||
Perl Logical Operators For Strings and Numbers
Quote:
It shouldn't matter though. I wonder if (Filename =* ("Fringe-" || "AmericasGotTalent-")) would work. Last edited by doncote0; 09-02-2011 at 01:54 PM. |
#1278
|
|||
|
|||
You simply use the SJQ built in file cleaning option. No relink does not rely on the relink file ..... I create the relink file in order to only relink if the copy completes with a zero condition code... you do not want to relink a partially copied file!!!!!!. That is why this is coded if %checkxcopy% EQU 0 echo "xcopy complete" >> "%~d1%~p1%~n1.relink"
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. Last edited by nyplayer; 09-02-2011 at 03:33 PM. |
#1279
|
|||
|
|||
Ah, I see. Clever. Thanks.
|
#1280
|
|||
|
|||
Quote:
Thanks for your reply. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sage Job Queue (SJQ) new release notifications | Slugger | Customization Announcements | 3 | 12-17-2009 09:59 AM |
Plugin: Sage Job Queue (SJQ) | Slugger | SageTV Customizations | 991 | 12-11-2009 03:52 PM |
Sage Job Queue Completed tasks problem | raffmanlt | SageTV Customizations | 2 | 08-18-2009 07:34 PM |
Comskip Monitor VS Sage Job Queue SJQ | personalt | SageTV Customizations | 6 | 03-02-2009 10:27 AM |
Plugin: SJQ v1.1.0RC1 Available - Testers Needed | Slugger | SageTV Customizations | 35 | 04-21-2008 08:12 AM |