Move from heroku to my personal server
This commit is contained in:
parent
6283ebe003
commit
ef70a2df02
|
@ -1,5 +1,6 @@
|
|||
#ifndef CONFIG_TYTD_H
|
||||
#define CONFIG_TYTD_H
|
||||
|
||||
int filetimetype=0; //0= Name(%Y%m%d_%H%M%S).mp4 1=Name(n).mp4 2= Name.mp4 dont overwrite 3= Name.mp4 overwrite
|
||||
char mypcpath[1000]; //ip address and path for remote pltxt
|
||||
void LoadConfigSettings();
|
||||
|
|
|
@ -692,7 +692,7 @@ return;
|
|||
|
||||
sprintf(filename,"%s(%s)",title,timein);
|
||||
char idTool[500];
|
||||
sprintf(idTool,"https://stark-shelf-08981.herokuapp.com/Grabber/VideoHigh/%s",id);
|
||||
sprintf(idTool,"SERVER_ENDPOINT/Grabber/VideoHigh/%s",id);
|
||||
char* filenm = OpenVideoFile(filename);
|
||||
Download(idTool,filenm);
|
||||
free(filenm);
|
||||
|
@ -794,7 +794,7 @@ return;
|
|||
|
||||
sprintf(filename,"%s(%s)",title,timein);
|
||||
char idTool[500];
|
||||
sprintf(idTool,"https://stark-shelf-08981.herokuapp.com/Grabber/Video/%s",id);
|
||||
sprintf(idTool,"SERVER_ENDPOINT/Grabber/Video/%s",id);
|
||||
char* filer2 =OpenVideoFile(filename);
|
||||
Download(idTool,filer2);
|
||||
free(filer2);
|
||||
|
@ -840,7 +840,7 @@ if(listtype==1){
|
|||
|
||||
sprintf(filename,"%s(%s)",title,timein);
|
||||
char idTool[500];
|
||||
sprintf(idTool,"https://stark-shelf-08981.herokuapp.com/Grabber/Video/%s",id);
|
||||
sprintf(idTool,"SERVER_ENDPOINT/Grabber/Video/%s",id);
|
||||
char* filer11 =OpenVideoFile(filename);
|
||||
Download(idTool,filer11);
|
||||
free(filer11);
|
||||
|
@ -1079,7 +1079,7 @@ void LoadQuery(char *file){
|
|||
sprintf(filenamez,"%s(%s)",data,timein);
|
||||
|
||||
char idTool[500];
|
||||
sprintf(idTool,"https://stark-shelf-08981.herokuapp.com/Grabber/VideoHigh/%s",url2);
|
||||
sprintf(idTool,"SERVER_ENDPOINT/Grabber/VideoHigh/%s",url2);
|
||||
char* far =OpenVideoFile(filenamez);
|
||||
Download2(idTool,far,filesr);
|
||||
free(far);
|
||||
|
@ -1098,7 +1098,7 @@ void LoadQuery(char *file){
|
|||
sprintf(filenamez,"%s(%s)",data,timein);
|
||||
|
||||
char idTool[500];
|
||||
sprintf(idTool,"https://stark-shelf-08981.herokuapp.com/Grabber/Video/%s",url2);
|
||||
sprintf(idTool,"SERVER_ENDPOINT/Grabber/Video/%s",url2);
|
||||
char* filer2= OpenVideoFile(filenamez);
|
||||
Download2(idTool,filer2,filesr);
|
||||
free(filer2);
|
||||
|
@ -1229,7 +1229,7 @@ if(channelsetting==-1){
|
|||
char title[300];
|
||||
|
||||
char idTool2[500];
|
||||
sprintf(idTool2,"https://stark-shelf-08981.herokuapp.com/Grabber/info/%s",url);
|
||||
sprintf(idTool2,"SERVER_ENDPOINT/Grabber/info/%s",url);
|
||||
|
||||
sprintf(title,"NOTITLE");
|
||||
|
||||
|
@ -1237,7 +1237,7 @@ if(channelsetting==-1){
|
|||
sprintf(filenamez,"%s(%s)",title,timein);
|
||||
|
||||
char idTool[500];
|
||||
sprintf(idTool,"https://stark-shelf-08981.herokuapp.com/Grabber/Video/%s",url);
|
||||
sprintf(idTool,"SERVER_ENDPOINT/Grabber/Video/%s",url);
|
||||
char* fname = OpenVideoFile(filenamez);
|
||||
Download(idTool,fname);
|
||||
}
|
||||
|
@ -1273,7 +1273,7 @@ addtopltxt=1;
|
|||
sprintf(filename, "%s_Desc(%s)", url, timein);
|
||||
|
||||
char idTool[500];
|
||||
sprintf(idTool, "https://stark-shelf-08981.herokuapp.com/Grabber/Descript/%s", url);
|
||||
sprintf(idTool, "SERVER_ENDPOINT/Grabber/Descript/%s", url);
|
||||
char* viname = OpenDescFile( filename);
|
||||
|
||||
Download2(idTool, viname, 1);
|
||||
|
@ -1443,7 +1443,7 @@ keyboard=0;
|
|||
sprintf(filenamez,"%s(%s)",title,timein);
|
||||
|
||||
char idTool[500];
|
||||
sprintf(idTool,"https://stark-shelf-08981.herokuapp.com/Grabber/Video/%s",url);
|
||||
sprintf(idTool,"SERVER_ENDPOINT/Grabber/Video/%s",url);
|
||||
char* filenm = OpenVideoFile(filenamez);
|
||||
Download(idTool,filenm);
|
||||
free(filenm);
|
||||
|
@ -1584,7 +1584,7 @@ void Search(char* search) {
|
|||
|
||||
char* output = ConvertString(search);
|
||||
if (output) {
|
||||
sprintf(output2,"https://stark-shelf-08981.herokuapp.com/Grabber/searchinfo/%s",output);
|
||||
sprintf(output2,"SERVER_ENDPOINT/Grabber/searchinfo/%s",output);
|
||||
|
||||
if(Download(output2,TempVal)){
|
||||
FILE *f = fopen(TempVal,"r");
|
||||
|
@ -1615,7 +1615,7 @@ listtype=1;
|
|||
|
||||
char* output = ConvertString(search);
|
||||
if (output) {
|
||||
sprintf(output2,"https://stark-shelf-08981.herokuapp.com/Grabber/playlistinfo/%s",output);
|
||||
sprintf(output2,"SERVER_ENDPOINT/Grabber/playlistinfo/%s",output);
|
||||
|
||||
if(Download(output2,TempVal)){
|
||||
FILE *f = fopen(TempVal,"r");
|
||||
|
@ -1652,7 +1652,7 @@ char timeins[20];
|
|||
char* output = ConvertString(search);
|
||||
|
||||
if (output) {
|
||||
sprintf(output2,"https://stark-shelf-08981.herokuapp.com/Grabber/playlistinfo/%s",output);
|
||||
sprintf(output2,"SERVER_ENDPOINT/Grabber/playlistinfo/%s",output);
|
||||
free(output);
|
||||
|
||||
if(Download(output2,TempVal)){
|
||||
|
@ -1693,7 +1693,7 @@ char timeins[20];
|
|||
sprintf(filename, "%s(%s)", title, timein);
|
||||
|
||||
char idTool[500];
|
||||
sprintf(idTool, "https://stark-shelf-08981.herokuapp.com/Grabber/Video/%s", id);
|
||||
sprintf(idTool, "SERVER_ENDPOINT/Grabber/Video/%s", id);
|
||||
char* viname = OpenPlaylistVideoFile(ssname, filename);
|
||||
|
||||
Download2(idTool, viname, *ptrs);
|
||||
|
@ -1710,7 +1710,7 @@ char timeins[20];
|
|||
sprintf(filename, "%s_Audio(%s)", title, timein);
|
||||
|
||||
char idTool[500];
|
||||
sprintf(idTool, "https://stark-shelf-08981.herokuapp.com/Grabber/Audio/%s", id);
|
||||
sprintf(idTool, "SERVER_ENDPOINT/Grabber/Audio/%s", id);
|
||||
char* viname = OpenPlaylistVideoFile(ssname, filename);
|
||||
|
||||
Download2(idTool, viname, *ptrs);
|
||||
|
@ -1727,7 +1727,7 @@ char timeins[20];
|
|||
sprintf(filename, "%s_HD_VO(%s)", title, timein);
|
||||
|
||||
char idTool[500];
|
||||
sprintf(idTool, "https://stark-shelf-08981.herokuapp.com/Grabber/VideoHigh/%s", id);
|
||||
sprintf(idTool, "SERVER_ENDPOINT/Grabber/VideoHigh/%s", id);
|
||||
char* viname = OpenPlaylistVideoFile(ssname, filename);
|
||||
|
||||
Download2(idTool, viname, *ptrs);
|
||||
|
@ -1744,7 +1744,7 @@ char timeins[20];
|
|||
sprintf(filename, "%s_Desc(%s)", title, timein);
|
||||
|
||||
char idTool[500];
|
||||
sprintf(idTool, "https://stark-shelf-08981.herokuapp.com/Grabber/Descript/%s", id);
|
||||
sprintf(idTool, "SERVER_ENDPOINT/Grabber/Descript/%s", id);
|
||||
char* viname = OpenPlaylistDescFile(ssname, filename);
|
||||
|
||||
Download2(idTool, viname, *ptrs);
|
||||
|
@ -2050,9 +2050,9 @@ void Channel(char* channel,int isuser,int downlo){
|
|||
char output2[600];
|
||||
int idn =1;
|
||||
if(isuser){
|
||||
sprintf(output2,"https://stark-shelf-08981.herokuapp.com/Grabber/User/%s",channel);
|
||||
sprintf(output2,"SERVER_ENDPOINT/Grabber/User/%s",channel);
|
||||
}else{
|
||||
sprintf(output2,"https://stark-shelf-08981.herokuapp.com/Grabber/Channel/%s",channel);
|
||||
sprintf(output2,"SERVER_ENDPOINT/Grabber/Channel/%s",channel);
|
||||
|
||||
}
|
||||
|
||||
|
@ -2074,7 +2074,7 @@ if(downlo){
|
|||
sprintf(filename,"%s(%s)",title,timein);
|
||||
|
||||
char idTool[500];
|
||||
sprintf(idTool,"https://stark-shelf-08981.herokuapp.com/Grabber/Video/%s",id);
|
||||
sprintf(idTool,"SERVER_ENDPOINT/Grabber/Video/%s",id);
|
||||
char* finm = OpenVideoFile(filename);
|
||||
Download2(idTool,finm,idn);
|
||||
free(finm);
|
||||
|
@ -2100,9 +2100,9 @@ int idn=1;
|
|||
char output2[600];
|
||||
|
||||
if(isuser){
|
||||
sprintf(output2,"https://stark-shelf-08981.herokuapp.com/Grabber/UserNew/%s/%s",date,channel);
|
||||
sprintf(output2,"SERVER_ENDPOINT/Grabber/UserNew/%s/%s",date,channel);
|
||||
}else{
|
||||
sprintf(output2,"https://stark-shelf-08981.herokuapp.com/Grabber/ChannelNew/%s/%s",date,channel);
|
||||
sprintf(output2,"SERVER_ENDPOINT/Grabber/ChannelNew/%s/%s",date,channel);
|
||||
|
||||
}
|
||||
|
||||
|
@ -2125,7 +2125,7 @@ if(downlo){
|
|||
sprintf(filename,"%s(%s)",title,timein);
|
||||
|
||||
char idTool[500];
|
||||
sprintf(idTool,"https://stark-shelf-08981.herokuapp.com/Grabber/Video/%s",id);
|
||||
sprintf(idTool,"SERVER_ENDPOINT/Grabber/Video/%s",id);
|
||||
char* fnma =OpenVideoFile(filename);
|
||||
Download2(idTool,fnma,idn);
|
||||
free(fnma);
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#ifndef SETTINGS_H
|
||||
#define SETTINGS_H
|
||||
#define SERVER_ENDPOINT "http://184.105.49.49:5069"
|
||||
|
||||
#include <gccore.h>
|
||||
#include <dirent.h>
|
||||
|
|
Loading…
Reference in New Issue