add bfolder token

This commit is contained in:
hummypkg 2017-05-27 09:26:16 +00:00
parent ee36fed9dc
commit 2cb9e076a6
3 changed files with 9 additions and 8 deletions

View File

@ -1,9 +1,9 @@
Package: sweeper
Priority: optional
Section: misc
Version: 2.1.5-5
Version: 2.1.5-6
Architecture: mipsel
Maintainer: af123@hummypkg.org.uk
Depends: webif(>=1.4.0)
Description: Sweeper is a package for managing recordings in a variety of ways using custom rules [See forum for details]
Description: Sweeper is a package for managing recordings in a variety of ways using custom rules [Add %bfolder token]
Tags: http://hummy.tv/forum/threads/5138/

View File

@ -230,6 +230,7 @@ proc ::sweeper::expand {ts str {orig ""}} {
"%filename" [$ts get file] \
"%basename" [$ts bfile] \
"%folder" [$ts dir] \
"%bfolder" [string map [list "$::auto::root/" ""] [$ts dir]] \
\
%epname [$ts episode_name] \
%series [$ts get seriesnum] \

View File

@ -134,9 +134,9 @@ var schema = {
select: {
Locked: 'Locked',
New: 'New',
Encrypted: 'Encrypted',
Encrypted: 'Protected (Enc)',
Guidance: 'Guidance',
ODEncrypted: 'Encrypted On-Disk',
ODEncrypted: 'Encrypted',
Shrunk: 'Shrunk',
Deduped: 'De-duplicated',
Radio: 'Radio Programme'
@ -346,9 +346,9 @@ var schema = {
select: {
lock: 'Locked',
new: 'New',
protect: 'Encrypted',
protect: 'Protected (Enc)',
guidance: 'Guidance',
encrypted: 'Encrypted On-Disk',
encrypted: 'Encrypted',
shrunk: 'Shrunk',
dedup: 'De-duplicated'
},
@ -361,9 +361,9 @@ var schema = {
select: {
Locked: 'Locked',
New: 'New',
Encrypted: 'Encrypted',
Encrypted: 'Protected (Enc)',
Guidance: 'Guidance',
ODEncrypted: 'Encrypted On-Disk',
ODEncrypted: 'Encrypted',
Shrunk: 'Shrunk',
Deduped: 'De-duplicated',
Radio: 'Radio Programme'