Dear visitor, welcome to VDR Portal. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
Quoted
Original von MegaV0lt
Ich hab mir erst mal so weiter geholfen, dass ich das epg-file vor dem Import in den VDR mit sed bearbeite und den langen "-" durch den normalen ersetze. Das dauert kaum ne Sekunde pro Datei...
This post has been edited 1 times, last edit by "MegaV0lt" (Jan 16th 2010, 9:07am)
Quoted
Original von steffen_b
Dürfte im epgdata2vdr Multibyte sein, da die interne Repräsentierung der libxml UTF-8 ist. Das Suchen und ersetzen von letztens arbeitet byteweise nicht Buchstabenweise. Müsste wenn man die libxml2 typen benutzt eigentlich genauso gehen.
|
|
PHP Source code |
1 2 3 4 |
size_t size = xmlStrlen(value);
for (size_t i = 0; i < size; ++i) {
if (value[i] == '|') value[i] = '/';
}
|
Quoted
Original von MegaV0lt
@dad401
Wie hast Du das gemacht? Im Sourcecode? Ich bekomme das nicht hin. Das einfache Zeichen ersetzen will nicht. Ich hab es momentan im Skript per sed gelöst.
|
|
Source code |
1 2 3 4 |
xmlChar *replacechar ;
while( (replacechar = xmlStrchr(value,(xmlChar *)'–')) != NULL ) {
*replacechar = '-' ;
}
|
Quoted
Original von HTPC-Schrauber
Den PUTE-Patch wirst Du brauchen, wenn er nicht schon im VDR drin ist (ich kenne den eTobi-VDR nicht)
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
--- svdrp.c.org 2009-02-05 09:16:12.000000000 +0100
+++ svdrp.c 2009-02-05 10:00:28.000000000 +0100
@@ -288,11 +288,13 @@
" If 'help' is followed by a command, the detailed help for that command is\n"
" given. The keyword 'main' initiates a call to the main menu function of the\n"
" given plugin.\n",
- "PUTE\n"
+ "PUTE [@file]\n"
" Put data into the EPG list. The data entered has to strictly follow the\n"
" format defined in vdr(5) for the 'epg.data' file. A '.' on a line\n"
" by itself terminates the input and starts processing of the data (all\n"
- " entered data is buffered until the terminating '.' is seen).",
+ " entered data is buffered until the terminating '.' is seen).\n",
+ " If a file is given as parameter (with starting '@') epg data will\n"
+ " be read from this file.\n",
"REMO [ on | off ]\n"
" Turns the remote control on or off. Without a parameter, the current\n"
" status of the remote control is reported.",
@@ -1445,11 +1447,29 @@
void cSVDRP::CmdPUTE(const char *Option)
{
- delete PUTEhandler;
- PUTEhandler = new cPUTEhandler;
- Reply(PUTEhandler->Status(), "%s", PUTEhandler->Message());
- if (PUTEhandler->Status() != 354)
- DELETENULL(PUTEhandler);
+ if (*Option && Option[0] == '@') {
+ FILE *fhdl;
+
+ if ((fhdl = fopen(Option + 1, "r")) != NULL) {
+ if (cSchedules::Read(fhdl)) {
+ cSchedules::Cleanup(true);
+ Reply(250, "EPG data processed from \"%s\"", Option + 1);
+ }
+ else
+ Reply(451, "Error while processing EPG from \"%s\"", Option + 1);
+
+ fclose(fhdl);
+ }
+ else
+ Reply(501, "Cannot read file \"%s\"", Option + 1);
+ }
+ else {
+ delete PUTEhandler;
+ PUTEhandler = new cPUTEhandler;
+ Reply(PUTEhandler->Status(), "%s", PUTEhandler->Message());
+ if (PUTEhandler->Status() != 354)
+ DELETENULL(PUTEhandler);
+ }
}
void cSVDRP::CmdREMO(const char *Option)
|
|
|
Source code |
1 |
svdrpsend.pl help pute |
|
|
Source code |
1 2 3 4 5 6 7 8 9 |
vdr01 ~ # 220 vdr01 SVDRP VideoDiskRecorder 1.6.0-2; Thu Feb 11 14:15:57 2010; ISO-8859-1 214-PUTE [@file] 214- Put data into the EPG list. The data entered has to strictly follow the 214- format defined in vdr(5) for the 'epg.data' file. A '.' on a line 214- by itself terminates the input and starts processing of the data (all 214- entered data is buffered until the terminating '.' is seen). 214 End of HELP info 221 vdr01 closing connection |
This post has been edited 1 times, last edit by "schubsi" (Feb 12th 2010, 9:12am)
Quoted
Original von steffen_b
Die Bilder werden nach png umgewandelt und verkleinert. IIRC brauch das irgendein Part damit er die Bilder darstellen kann. Geht zumindest hier in Live. wenn vdradmin das anders braucht ... :/