* update scripts

This commit is contained in:
Reinhard Pointner 2012-03-10 10:47:39 +00:00
parent 64f93c991b
commit 0b171db10d
7 changed files with 55 additions and 33 deletions

View File

@ -8,6 +8,7 @@
# look for native libs here # look for native libs here
-Djna.library.path="%EXEDIR%" -Djna.library.path="%EXEDIR%"
-Djava.library.path="%EXEDIR%"
# store preferences to text file # store preferences to text file
-Djava.util.prefs.PreferencesFactory=net.sourceforge.tuned.prefs.FilePreferencesFactory -Djava.util.prefs.PreferencesFactory=net.sourceforge.tuned.prefs.FilePreferencesFactory

View File

@ -6,8 +6,9 @@
^(TV.)?(Show|Serie)[s]? ^(TV.)?(Show|Serie)[s]?
^[0-9]{1,2}[.] ^[0-9]{1,2}[.]
^Cover ^Cover
^Film[s]?
^Info ^Info
^Movie ^Movie[s]?
^SAMPLE ^SAMPLE
^Season.[0-9]+ ^Season.[0-9]+
^Tracker ^Tracker

View File

@ -30,7 +30,9 @@ BaSS
BAUM BAUM
BDiSC BDiSC
BiA BiA
blueF
BlueTV BlueTV
blueZilla
BMB BMB
BrG BrG
BRZONE BRZONE
@ -44,6 +46,7 @@ CHD
CHDSUBS CHDSUBS
Chel Chel
CHGRP CHGRP
Chotab
CHRONiCLES CHRONiCLES
CHUPPI CHUPPI
CiA CiA
@ -91,19 +94,24 @@ DivXNL-Team
DMT DMT
DnB DnB
DNL DNL
DNR
DOT DOT
DOWN DOWN
DUQA DUQA
DutchReleaseTeam DutchReleaseTeam
EbP
ECI
Ekolb Ekolb
Electri4ka Electri4ka
ELECTRiC ELECTRiC
Electrichka Electrichka
EMPiREHD EMPiREHD
EnDoR EnDoR
EPiK
ESiR ESiR
ETM ETM
ETRG ETRG
EuchHD
EUHD EUHD
EuReKA EuReKA
ExtraTorrentRG ExtraTorrentRG
@ -126,16 +134,20 @@ FXG
FxM FxM
GB GB
GEHENNA GEHENNA
GFY
GiNJi GiNJi
GMoRK GMoRK
Goblin10 Goblin10
GoLDSToNE GoLDSToNE
GOTHiC GOTHiC
H2 H2
Haggis
HALCYON HALCYON
HANGOVER HANGOVER
HD-UNiT3D HD-UNiT3D
HD1080 HD1080
HDC
HDChina
HDFiRE HDFiRE
HDFL HDFL
HDi HDi
@ -149,9 +161,13 @@ HHH
HiDt HiDt
HiGHTIMES HiGHTIMES
HiNT HiNT
HOWL
HqDTS HqDTS
hV hV
HWD
HWE
HyDe HyDe
Hype
iaK iaK
iGNHD iGNHD
IGUANA IGUANA
@ -161,6 +177,7 @@ IMF
IMMERSE IMMERSE
imNaKeD imNaKeD
iNFAMOUS iNFAMOUS
iNGOT
InSaNiTy InSaNiTy
iNSECTS iNSECTS
iNSPiRED iNSPiRED
@ -173,6 +190,7 @@ JAVLiU
k2 k2
KaKa KaKa
keltz keltz
KiNGS
KLAXXON KLAXXON
KOENiG KOENiG
KRaLiMaRKo KRaLiMaRKo
@ -199,6 +217,7 @@ MMI
MOMENTUM MOMENTUM
MONK MONK
MOREHD MOREHD
MOTU
MOViESTARS MOViESTARS
MsR MsR
MuSt MuSt
@ -207,6 +226,7 @@ mVmHD
NBS NBS
NEW.SOURCE NEW.SOURCE
NewArtRiot NewArtRiot
NFHD
NGR NGR
NGXHD NGXHD
NhaNc3 NhaNc3
@ -220,6 +240,8 @@ NOsegmenT
NoTV NoTV
NOVO NOVO
NSUBS NSUBS
NT
NTb
NWO NWO
NyTT NyTT
OAS OAS
@ -228,13 +250,19 @@ ONYX
ORC ORC
ORENJi ORENJi
ORPHEUS ORPHEUS
OSiTV
OUTDATED OUTDATED
P0W4
papi papi
PaYxXx PaYxXx
PerfectionHD PerfectionHD
PFa
PhoenixRG
piepHD piepHD
PiLAF
PiNER PiNER
PiX PiX
POD
PoRNDoCtOR PoRNDoCtOR
PORNOHOLiCS PORNOHOLiCS
PoTuS PoTuS
@ -246,12 +274,15 @@ PROGRESS
PROPHETS PROPHETS
ProPL ProPL
PRXHD PRXHD
psig
PtS PtS
Pukka Pukka
PURE PURE
PxHD
QDP QDP
QXE QXE
rabomil rabomil
RANDi
RAP RAP
Razor1911 Razor1911
REAVERS REAVERS
@ -262,11 +293,13 @@ RELOADED
Republic Republic
REPULSiON REPULSiON
REVEiLLE REVEiLLE
REWARD
RiVER RiVER
RMT RMT
RoCKRioT RoCKRioT
RSG RSG
S26 S26
SAiNTS
SAiVERT SAiVERT
SAMFD SAMFD
SANTI SANTI
@ -277,6 +310,7 @@ SEPTiC
SexSh0p SexSh0p
SFM SFM
SHAMNBOYZ SHAMNBOYZ
shortbrehd
SiGHTHD SiGHTHD
SiNNERS SiNNERS
SiTV SiTV
@ -287,9 +321,12 @@ SoCkS
SoW SoW
STV STV
SUNSPOT SUNSPOT
SURFER
SVD SVD
Swesub Swesub
SYS SYS
t00ng0d
TB
TELEFLiX TELEFLiX
TERRA TERRA
THOR THOR
@ -299,6 +336,7 @@ TLF
TM TM
TN TN
TOKUS TOKUS
TOPAZ
trentalent trentalent
TruCK TruCK
TRUEFRENCH TRUEFRENCH

View File

@ -1,9 +0,0 @@
// filebot -script "http://filebot.sf.net/scripts/cpmv.groovy" -trust-script <folder>
// copy files
def temp = args*.copyTo("E:/filebot-temp")
// sort copies into the given file structure
temp.eachMediaFolder {
rename(folder:it, format:'E:/TV Shows/{n}/{n} - {s00e00} - {t}', db:'thetvdb', strict:false)
}

View File

@ -1,20 +0,0 @@
// filebot -script "http://filebot.sf.net/scripts/rsam.groovy" <options> <folder>
def isMatch(a, b) { similarity(a, b) > 0.9 }
/*
* Rename anime, tv shows or movies (assuming each folder represents one item)
*/
args.eachMediaFolder { dir ->
def n = dir.name
[ [db:anidb, query:{ anidb.search(n, _args.locale).find{ isMatch(it, n) } }],
[db:thetvdb, query:{ thetvdb.search(n, _args.locale).find{ isMatch(it, n) } }],
[db:themoviedb, query:{ themoviedb.searchMovie(n, _args.locale).find{ isMatch(it, n) } }]
].find {
def match = it.query()
if (match) { rename(folder:dir, db:it.db.name, query:match.name) }
return match
}
}

View File

@ -0,0 +1,12 @@
def dir = 'E:/Downloads'
// extract files from archives and delete archives afterwards
extract(folder:dir, output:dir) && dir.listFiles{ it =~ /rar$/ }*.delete()
getMissingSubtitles(folder:dir, lang:'de', strict:false)
getMissingSubtitles(folder:dir, lang:'en', strict:false)
// rename each file individually in strict mode
dir.listFiles().each {
rename(file:it, format:"E:/Series/{n}/{n.space('.')}.{s00e00}.{t.space('.')}", strict:true)
}

View File

@ -11,11 +11,10 @@ args.getFiles{ it.isVideo() }.each{
// DECIDE EPISODE VS MOVIE (IF NOT CLEAR) // DECIDE EPISODE VS MOVIE (IF NOT CLEAR)
if (tvs && mov) { if (tvs && mov) {
if (it.name =~ "(?i:$tvs - .+)") { if (it.name =~ "(?i:$tvs - .+)" || parseEpisodeNumber(it) || parseDate(it)) {
println "Exclude Movie: $mov" println "Exclude Movie: $mov"
mov = null mov = null
} } else if (detectMovie(it, true)) {
if (detectMovie(it, true)) {
println "Exclude Series: $tvs" println "Exclude Series: $tvs"
tvs = null tvs = null
} }