|
SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#21
|
|||
|
|||
Here is a sample
c:\wget\wget.exe --tries=2 --delete-after "http://server:8080/sage/SageCommand?context=SAGETV_PROCESS_LOCAL_UI&command=Stop"
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. |
#22
|
|||
|
|||
related "command line" question
Neilm,
Thank you for your great Web interface. I use it ALL the time! I have a question related this thread... I'm trying to send a command to delete a file, and using this format: wget http://user:password@url:8080/sage/M...ame=myfile.mpg It returns "Invalid command passed" What am I doing wrong? Thanks Jeff |
#23
|
|||
|
|||
Quote:
Code:
http://user:password@url:8080/sage/MediaFileCommand?command=Delete&context=SAGETV_PROCESS_LOCAL_UI&Filename=E:\TV\Recordings\EverybodyHatesChris-EverybodyHatesLiar-1102124-0.mpg |
#24
|
|||
|
|||
Hi.
Thanks for the reply. I did figure out that the "Delete" command should actually be "DeleteFile" but now it is simply telling me that it has applied it to 0 files in the output. Here is the code presently: Code:
wget --output-document=test.htm http://username:password@192.168.8.120:8080/sage/MediaFileCommand?command=DeleteFile&context=SAGETV_PROCESS_LOCAL_UI&Filename=E:\Journal-5548794-0.mpg --output-document=test.htm is to keep the output filename from being really long. Any ideas? |
#25
|
|||
|
|||
Try FileName instead of Filename, otherwise I think it should work.
|
#26
|
|||
|
|||
Yes! That did it!
All except... now it says that Delete needs to be confirmed... Any way around THAT? |
#27
|
|||
|
|||
CollinR,
*NEVER MIND* I just found it... I have to add "confirm=yes" It worked great! Thank you SO MUCH. What I am doing is writing a script that will detect certain shows and copy them to specific hard drive locations. The process I've found that works (manually) is 1. Copy the show file from the drive where it recorded to the destination drive 2. Delete the show file (using Sage UI... or Neilm's web interface) 3. Refresh media files (via Neilm's web interface) I found the way to do the refresh using wget right off. Now that I can delete, I can write a program that will work with the "Dragon Global" "DirMon2" to detect when new shows appear and move them automatically. Thanks again! Jeff |
#28
|
||||
|
||||
If you are java programmer (or if you are willing to learn), then I just released a sage api that allows you full access to the sage api from an external java process. In order words, you could write a java command line utility that uses the sage api, as if it were embedded within sage. If you are not a java programmer, then nevermind
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|