Hello,
I use vdr-1.3.44, Debian Etch, Kernel 2.6.15.5.
I programmed with epgsearch a timer which results in this path on harddisk:
/video1.0/Information/Gesellschaft/Ripleys_unglaubliche_Welt/Der_Fallschirm-S tunt_^B_Mode_aus_Luftpolster-Folie_^B_Der_verbotene_Maden-Käse_^B_Die_Selfmad e-Insel_^B_Die_Kürbis-Kombo_^B_Pfeil_im_Kopf_^B_Die_längs+ten_Fingernägel_der _Welt_^B_Der_Mann_ohne_Gesicht/2006-03-24.18.20.40.99.rec
Because the first disk is full, the 001.vdr goes to video1.1.
VDR creates this link:
lrwxrwxrwx 1 vdr1 vdr 288 2006-03-24 18:39 001.vdr -> /video1.1/Information/Gesellschaft/Ripleys_unglaubliche_Welt/Der_Fallschirm-St unt_?_Mode_aus_Luftpolster-Folie_?_Der_verbotene_Maden-Käse_?_Die_Selfmade-Ins el_?_Die_Kürbis-Kombo_?_Pfeil_im_Kopf_?_Die_längsten_Fingernägel_der_Welt_?_De r_Mann_ohne_Gesicht/20
As you can see, the link is broken, the target is truncated to 256 Bytes.
An other recording, the same problem.
/video1.0/Information/Wissen/W_wie_Wissen/Themen:_Sommerzeit_-_Die_gestohlene_ Stunde_Weltraum-Wetterfrösche_haben_bald_3-D-Blick_auf_die_Sonne_Die_schwarze_ Sonne_Sonnenstürme_und_Polarlichter_Wissen_des_Alltags:+_Wie_drehen_sich_Schli ngpflanzen?/2006-03-26.16.58.25.99.rec
The link:
lrwxrwxrwx 1 vdr1 vdr 279 2006-03-26 16:58 001.vdr -> /video1.1/Information/Wissen/W_wie_Wissen/Themen:_Sommerzeit_-_Die_gestohlene_ Stunde_Weltraum-Wetterfrösche_haben_bald_3-D-Blick_auf_die_Sonne_Die_schwarze_ Sonne_Sonnenstürme_und_Polarlichter_Wissen_des_Alltags:_Wie_drehen_sich_Schlin gpflanzen?/2006-03-26.
Even on shell I cannot create links longer than 256 Bytes.
I think:
PATH_MAX is here 4096, but SYMLINK_MAX is not defined and so:
{SYMLINK_MAX} Maximum number of bytes in a symbolic link. Minimum Acceptable Value: {_POSIX_SYMLINK_MAX}
{_POSIX_SYMLINK_MAX} The number of bytes in a symbolic link. Value: 255
VDR should not create pathes longer 254 Byte, or what do you think?
/video<...>.rec/???.vdr <--- max 255 ---------->
cu, Mike
Mike Constabel wrote:
I programmed with epgsearch a timer which results in this path on harddisk:
/video1.0/Information/Gesellschaft/Ripleys_unglaubliche_Welt/Der_Fallschirm-S tunt_^B_Mode_aus_Luftpolster-Folie_^B_Der_verbotene_Maden-Käse_^B_Die_Selfmad e-Insel_^B_Die_Kürbis-Kombo_^B_Pfeil_im_Kopf_^B_Die_längs+ten_Fingernägel_der _Welt_^B_Der_Mann_ohne_Gesicht/2006-03-24.18.20.40.99.rec [...] As you can see, the link is broken, the target is truncated to 256 Bytes. Even on shell I cannot create links longer than 256 Bytes. VDR should not create pathes longer 254 Byte, or what do you think?
VDR limits the subtitle part to max 40 characters (see recording.c, MAX_SUBTITLE_LENGTH), so my guess is that epgsearch doesn't handle this correctly.
Cheers,
Udo
Hi,
Udo Richter schrieb:
VDR limits the subtitle part to max 40 characters (see recording.c, MAX_SUBTITLE_LENGTH), so my guess is that epgsearch doesn't handle this correctly.
ok, I can fix this. BTW: epgsearch programs timers via SVDRP. So IMHO this fix should also be done in VDRs SVDRP interface.
cu,
Christian
Christian Wieninger wrote:
ok, I can fix this. BTW: epgsearch programs timers via SVDRP. So IMHO this fix should also be done in VDRs SVDRP interface.
On SVDRP the episode title is a simple folder name, so thats not exactly the same situation.
VDR doesn't enforce any recording name length, at least not yet. And since the maximum length depends on the recording path(s), there's not even a common limit. (And if TITLE or EPISODE is part of the name, things get even more complicated)
Just cutting the path may confuse SVDRP scripts, so VDR probably has to fail completely on setting such a timer.
Cheers,
Udo
Udo Richter wrote:
Christian Wieninger wrote:
ok, I can fix this. BTW: epgsearch programs timers via SVDRP. So IMHO this fix should also be done in VDRs SVDRP interface.
On SVDRP the episode title is a simple folder name, so thats not exactly the same situation.
VDR doesn't enforce any recording name length, at least not yet. And since the maximum length depends on the recording path(s), there's not even a common limit. (And if TITLE or EPISODE is part of the name, things get even more complicated)
Just cutting the path may confuse SVDRP scripts, so VDR probably has to fail completely on setting such a timer.
The file name in cTimer is limited to 256 characters. Since this is apparently already too much for symbolic links, and an episode name might add up to 40 more characters, how about we we change the maximum filename length in cTimer to, say, 200?
Klaus