Bug #2667
autorec file naming concats two paths
100%
Description
Hi,
the forum elders told me, I shall create this as a bug here. It is this [[https://tvheadend.org/boards/4/topics/15207]] topic.
With HTS Tvheadend 3.9.2407~gabea248, I have a very strange file naming issue. While with the "record program" recording of one single movie all is fine, the problem only occurs when I use the auto recording feature. (3.9.2407~gabea248 was not self compiled, but installed via apt-get on xubuntu 14.04.1 LTS)
issue:
I would expect f.i. to get the File 'Kommissar-Beck---Die-neuen-Fälle.E05.Das-Monster.mkv' in the Folder '/media/usb220black/DVBT/Krimis/Komissar_Beck/', as defined in the DVR autorec Entry (see details below).
The Help Button text says: "Directory: When specified, this setting overrides the subdirectory rules specified by the DVR configuration and puts all recordings done by this entry into the specified subdirectory. Useful for e.g. recording multiple different news broadcasts into one common subdirectory called "News". "
But it is not there:
ls -la /media/usb220black/DVBT/Krimis/Komissar_Beck/ drwxrwxrwx 2 pi pi 4096 Jan 30 23:12 . drwxrwxrwx 21 pi pi 4096 Jan 31 21:52 ..
instead, I found a new, crazy named subfolder with a lot of minus signs, one level up:
ls -l /media/usb220black/DVBT/Krimis/-media-usb220black-DVBT-Krimis-Komissar_Beck/ returns: drwxrwxrwx 2 hts video 4096 Jan 30 23:33 . drwxrwxrwx 21 pi pi 4096 Jan 31 21:52 .. -rw-rw-rw- 1 hts video 1786205085 Jan 31 00:47 Kommissar-Beck---Die-neuen-Fälle.E05.Das-Monster.mkvSo for my eyes, it looks like the filename was creates with the Rule:
- take the global path from assigned profile
- if another directory is specified in the autorec definition, take this + convert all slashes to '-', then append it to the global path
- finally, append the file name
- take the global path from assigned profile
- if another directory is specified in the autorec definition, throw away the global path, take the override path instead
- finally, append the file name
Here are my global recording profiles, for your reference:
Configuration | Recording | Digital Video Recorder Profiles:
Profile 1: *(Default Profile)* Recording File Options: /var/tvrecord2/DVBT 0666 UTF-8 [x] Tag Files [x] Skip Commercials Subdirectory Options: 0777 [ ] per day [ ] per channel [ ] per title Filename Options: [ ] Channel in Filename [X] Date in Filename [X] Time in Filename [ ] Episode in Filename [X] Episode before Date & Time [X] Subtitle in Filename [ ] Do not include Title [ ] Remove unsafe chars [x] replace whitespace with '-' [ ] Windoze compatible
and
Profile 2: *Krimi-named* Recording File Options: /media/usb220black/DVBT/Krimis <-- this is different from default 0666 UTF-8 [x] Tag Files [x] Skip Commercials Subdirectory Options: 0777 [ ] per day [ ] per channel [ ] per title Filename Options: [ ] Channel in Filename [ ] Date in Filename <-- this is different from default [ ] Time in Filename <-- this is different from default [ ] Episode in Filename [X] Episode before Date & Time [X] Subtitle in Filename [ ] Do not include Title [ ] Remove unsafe chars [x] replace whitespace with '-' [ ] Windoze compatible
DVR Autorec Entries
Directory: /media/usb220black/DVBT/Krimis/Komissar_Beck <-- this is different from assigned Profile Title (Regexp): (kommissar beck) .. DVR Configuration: Krimi-named
Files
History
Updated by Jaroslav Kysela almost 10 years ago
Added this text to doc:
When specified, this setting overrides the subdirectory rules (except the base directory) specified by the DVR configuration
and puts all recordings done by this entry into the specified subdirectory. Useful for e.g. recording multiple different news
broadcasts into one common subdirectory called "News". The backshlash and other special characters are escaped, so it is possible
to create only one sublevel subdirectories (the base path for the target directory is always taken from the DVR configuration).
Updated by Jaroslav Kysela almost 10 years ago
- Status changed from New to Fixed
- % Done changed from 0 to 100
Applied in changeset commit:tvheadend|9fc758f946a0ba02bdb3b90443b9be30dbc41f3b.
Updated by Daisy Reiss almost 10 years ago
Jaroslav Kysela wrote:
Applied in changeset commit:tvheadend|9fc758f946a0ba02bdb3b90443b9be30dbc41f3b.
This is a reasonable fix and will work for me. I'll only have to edit my autorec profiles to regard this new knowledge, it's okay for me.
thx a lot!
Daisy