|
SageTV Software Discussion related to the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV software application should be posted here. (Check the descriptions of the other forums; all hardware related questions go in the Hardware Support forum, etc. And, post in the customizations forum instead if any customizations are active.) |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
Customising Filenames
Is it possible to get Sage to include channel names or numbers in the filename of a recording? I need to process C5 (UK) recordings differently to other recordings on my overnight jobs, so it would be really helpful to be able to identify them...
I'm not really expecting that we can, but maybe someone is doing something similar? Thanks! |
#2
|
||||
|
||||
nope...
But you can use the Airing ID from the file name to get the show info from the webserver, which will include the channel info (And very very soon, the webserver will be able to produce show info in easy-to-parse XML format) (of course this depends on what your overnight jobs are)
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki Last edited by nielm; 03-17-2006 at 05:37 AM. |
#3
|
||||
|
||||
I'm guessing that getting the channel from the webserver in a DOS script is going to be, uh, challenging.
Is there a DOS API for the webserver? |
#4
|
||||
|
||||
ah... uh... ok...
well, probably with wget or lynx for win32 Code:
C:\> lynx -dump -auth=User:Pass http://localhost:800/sage/DetailedInfo?AiringId=123456 | find "Channel" Channel: 3-BBC TWO London and South East or C:\> lynx -dump -auth=User:Pass http://localhost:800/sage/DetailedInfo?FileName='\\mediaserver\Sage\Sage-Video\ShowName-123456-0.mpg' | find "Channel" Channel: 3-BBC TWO London and South East
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki |
#5
|
||||
|
||||
Wow, I'll download Lynx and try it out. Thanks!
|
#6
|
||||
|
||||
Thanks for the advice nielm, it's all working great. I had a problem with my overnight batch, which takes all new MPG files and uses mencoder to process them to XviD files (for burning to DVD for when I'm away from home). However, Channel 5 DVB captures almost always crashed mencoder, so this way I've been able to change the script to check if it's Channel 5 and if so run AutoGK for that file, otherwise run mencoder.
Cheers! Anyone wants to see my scripts let me know, I'd probably need to tidy them up first... |
#7
|
|||
|
|||
I would love to see the scripts, I would like to see the whole process, do u use dirmon?
do u replace the files, I know that works, since I tested on my macine and if I bring the avi file, to the same directory, and then delete the mpeg one it will still show the data on the avi file. There is no need to restart sagetv for this to work. So I would love to see the script, and be able to use both mencoder and AutoGK automaticly....
__________________
Server SageTv 6.3.5, Core2Duo 6300 ,2Gigs ,Saphire x1650, PVR250, 2*320GB + 160GB, java 1.6.1 Client SageTV Client 6.3.5 , AMD 3000, 1024Mb, Saphire x1600Pro256HDMI, java 1.6.1 Using Nielm's Web server 2.22 |
#8
|
||||
|
||||
Quote:
nielm, both lynx and wget work, but lynx was a bit unreliable. wget and the webserver provide the information I needed, thanks! |
#9
|
||||
|
||||
Okay, I've put up all my scripts here.
Would have just posted on this thread but it turned into a bit of an essay...
__________________
unRAID Server: Intel Core i5 7600K, 48GB DDR4, 2x512GB PCIe M.2 Cache Pool, 2x10TB SATA3 Parity Drive, 3x8TB SATA Array, 1x hdHomeRun DVB-T2 Quattro, IPTV via xTeVe, unRAID 6.8.3, tvHeadEnd for recording back end, Emby Clients: 3 Nvidia Shields, 3 FireTV, 3 Win10 Pro PC Clients |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|