|
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 |
#1
|
|||
|
|||
Making list of all recordings?
Hi all,
I am hoping someone can explain to me how I can get a list of all recordings in my sagetv database. I just want the filename property to be in my exported list. Is there anyway to do this with a script or from Studio? Files: \\vader\video4\NFLFootball-ChicagoBearsatStLouisRams-5492147-0.mpg \\vader\video4\NFLFootball-ChicagoBearsatStLouisRams-5492147-0.mpg \\vader\video4\NFLFootball-ChicagoBearsatDetroit-12234543-0.mpg ... \\deathstar1\video1\Someshowname.mpg \\deathstar1\video1\SomeOtherShowname.mpg ... If I had a list like that, it will help me in my quest. Im just hoping there is an easy way to make this list without digging into the API's and writing my own code. Maybe someone has already done this before? Im about to embark on a mission to clean up a lot of problems (due to faulty hard drives or other hardware issues that are plauging my network) and it would be nice if I could just have a list in xls format that I can print off and see where all my files are listed at in sagetv. I have been reading the FAQ's and such, to start moving files from one recording directory to other directories. I think I am ready to do it. I have installed new larger hard drives in my NasLite server...and now I just would like this list/printout so I can see where they are all at and check them off my list as I go along. Thanks once again, for any advice. Last edited by steingra; 11-14-2007 at 08:16 PM. |
#2
|
||||
|
||||
how about using external applications like directory lister? I use it to make a list of stuff on my HD from time to time....but yes-its not automatic...still relatively quick all the same....
__________________
Sage Server: Antec Solo, Seasonic S12 430W, AM2 3800, Gigabyte GA-M61P-S3 Mobo, XFX 7600GS 512MB, 2GB DDR2 800, 3 TB SATA, Hauppauge HVR1600, HDHR, indoor antenna, Win 7 Ultimate, MCE05 remote. Sage Client: Foxconn NT330i Intel Atom Dual Core, 1 GB DDR2 667 RAM, Windows 7 Ultimate. |
#3
|
|||
|
|||
Quote:
I wanted to get the information from sagetv and export it from there. |
#4
|
||||
|
||||
FilterByBoolMethod(GetMediaFiles(),"IsTVFile") should (if my syntax is correct) return a list of all recordings.
GetFileForSegment(MediaFile,int) will return the file ( filename/path string) for the "int"th segement of each MediaFile returned by the above. |
#5
|
|||
|
|||
Quote:
Quote:
Thank you. |
#6
|
||||
|
||||
Quote:
Quote:
|
#7
|
|||
|
|||
steingra ,
If you use the Nielm webbroswer you can create a XMl file with all the recordings then you can use a vbscript or something else to get the file names. If you use the web browser here is a simple script that will do what you want. Just change recordingsxml to your path. It will create a recordings.txt in c:\temp Code:
recordingsxml="C:\wget\Movefiles\recordings.xml" Const ForReading = 1, ForWriting = 2, ForAppending = 8 set fso = CreateObject("Scripting.FileSystemObject") Set objFSO = CreateObject("Scripting.FileSystemObject") If objFSO.FolderExists("C:\temp") Then Else ParentFolder = "C:\" set objShell = CreateObject("Shell.Application") set objFolder = objShell.NameSpace(ParentFolder) objFolder.NewFolder "temp" End If Set fso = CreateObject("Scripting.FileSystemObject") Set filesys = CreateObject("Scripting.FileSystemObject") filesys.CreateTextFile "c:\temp\recordings.txt", true Set fs = CreateObject("Scripting.FileSystemObject") Set f = fs.OpenTextFile("c:\temp\recordings.txt", ForAppending,TristateFalse) Dim Fso : Set Fso = CreateObject("Scripting.FileSystemObject") Dim TextFile : TextFile = recordingsxml Dim StrLine, Ts Set Ts = Fso.OpenTextFile(TextFile,ForReading) Do Until Ts.AtEndOfStream StrLine = Ts.ReadLine strSearchThis=StrLine if instr(strSearchThis, "filePath") > 0 then arr=split(StrLine,"filePath=") StrLine=arr(0) dim arr2 arr2=split(arr(1),"startTime") StrLine=arr2(0) f.write StrLine f.Write VbCrLf else end if Loop f.close
__________________
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; 11-15-2007 at 01:21 PM. |
#8
|
|||
|
|||
Quote:
Last edited by steingra; 11-15-2007 at 03:38 PM. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SageTV V6.2.6 Release Candidate is Ready! | Narflex | SageTV Beta Test Software | 3 | 08-25-2007 11:00 PM |
Show in Recordings list but have actually been deleted. | GollyJer | SageTV Software | 2 | 05-30-2007 11:08 PM |
Is there a minimum time before manual recordings will delete? | popechild | SageTV Software | 24 | 12-06-2006 06:18 PM |
Sage Recordings list sometimes causes a 'freeze' | pscs | SageTV Beta Test Software | 0 | 05-10-2003 04:59 PM |