HDR Snippet with UTorrent
Posted: 02 Jul 2021, 13:57
I'm trying to use the HDR/Dobly Vision detection snippet that devster wrote in the run program of uTorrent. It's bombing out on all the double quotes.
Here is the code being executed
Here is the error in the log file
or convert them to single quotes
Thanks!!
Any help is greatly appreciated!!
Here is the code being executed
Code: Select all
"C:\Program Files\FileBot\filebot.launcher.exe" -script fn:amc --output "P:" --action move --conflict auto -non-strict --log-file "p:\amc6.log" --def clean=y deleteafterextract=y emby=embyserver:05ef5cd09bf54b2ea00e8756be8389a2 movieFormat="p:\movies\{n.sortName('$2, $1')} ({y} {certification})\{n}.{vf}.{audio[0].Channels}ch.{vc}.{ac}.{{def _HDRMap = ["HDR10": "HDR10","SMPTE ST 2086": "HDR10","SMPTE ST 2094 App 3": "Advanced HDR","SMPTE ST 2094 App 4": "HDR10+","Dolby Vision / SMPTE ST 2086": "Dolby Vision","Dolby Vision / HDR10": "Dolby Vision","ETSI TS 103 433": "SL-HDR1","SL-HDR1": "SL-HDR1","SL-HDR2": "SL-HDR2","SL-HDR3": "SL-HDR3","Technicolor Advanced HDR": "Technicolor Advanced HDR",]def vid = video.first()if (bitdepth > 8) {switch (vid) {case { vid =~ /\bHDR_Format_Commercial/ }:vid["HDR_Format_Commercial"]breakcase { vid =~ /\bHDR_/ }:_HDR = any{ vid["HDR_Format"] }{ vid["HDR_Format/String"] }hdr_out = _HDRMap.get(_HDR, _HDR)if ( hdr_out.findMatch(/vision/) ) {dv_info = allOf{ "P" }{ vid["HDR_Format_Profile"].match(/[dh][ve][hvca][e13v]\.\d(\d)/) }{ "." + vid["HDR_Format_Compatibility"].match(/HDR10|SDR/).replace("HDR10", "1").replace("SDR", "2") }.join()hdr_out = "$hdr_out $dv_info"}hdr_outbreakcase { it["transfer_characteristics"].findMatch(/HLG/) && it["colour_primaries"] == "BT.2020" }:"HLG10"breakcase { it["transfer_characteristics"] == "PQ" && it["colour_primaries"] == "BT.2020" }:"HDR10"breakdefault:"$bitdepth-bit"break}}}" seriesFormat="P:\TV Shows\{n}\{'Season '+s}\{n} - {s00e00} - {t}.{vf}.{af}.{vc}.{ac}.{def _HDRMap = ["HDR10": "HDR10","SMPTE ST 2086": "HDR10","SMPTE ST 2094 App 3": "Advanced HDR","SMPTE ST 2094 App 4": "HDR10+","Dolby Vision / SMPTE ST 2086": "Dolby Vision","Dolby Vision / HDR10": "Dolby Vision","ETSI TS 103 433": "SL-HDR1","SL-HDR1": "SL-HDR1","SL-HDR2": "SL-HDR2","SL-HDR3": "SL-HDR3","Technicolor Advanced HDR": "Technicolor Advanced HDR",]def vid = video.first()if (bitdepth > 8) {switch (vid) {case { vid =~ /\bHDR_Format_Commercial/ }:vid["HDR_Format_Commercial"]breakcase { vid =~ /\bHDR_/ }:_HDR = any{ vid["HDR_Format"] }{ vid["HDR_Format/String"] }hdr_out = _HDRMap.get(_HDR, _HDR)if ( hdr_out.findMatch(/vision/) ) {dv_info = allOf{ "P" }{ vid["HDR_Format_Profile"].match(/[dh][ve][hvca][e13v]\.\d(\d)/) }{ "." + vid["HDR_Format_Compatibility"].match(/HDR10|SDR/).replace("HDR10", "1").replace("SDR", "2") }.join()hdr_out = "$hdr_out $dv_info"}hdr_outbreakcase { it["transfer_characteristics"].findMatch(/HLG/) && it["colour_primaries"] == "BT.2020" }:"HLG10"breakcase { it["transfer_characteristics"] == "PQ" && it["colour_primaries"] == "BT.2020" }:"HDR10"breakdefault:"$bitdepth-bit"break}}}" "ut_label=Movies-R" "ut_state=5" "ut_title=Mortal.Kombat.2021.WEB-DL.2160p.Dolby_Vision.P5.by.DVT.mp4" "ut_kind=single" "ut_file=Mortal.Kombat.2021.WEB-DL.2160p.Dolby_Vision.P5.by.DVT.mp4" "ut_dir=P:\TBOT"
Do I need to wrap the double quotes in double quotes likeParameter: movieFormat = p:\movies\{n.sortName('$2, $1')} ({y} {certification})\{n}.{vf}.{audio[0].Channels}ch.{vc}.{ac}.{{def _HDRMap = [HDR10: HDR10,SMPTE
Argument[0]: C:\
Argument[1]: C:\
Argument[2]: C:\
Argument[3]: C:\
Invalid usage: input [C:\, C:\, C:\, C:\] must not include a filesystem root
Abort (×_×)
File does not exist: ST
File does not exist: 2086: HDR10,SMPTE
File does not exist: ST
File does not exist: 2094
File does not exist: App
File does not exist: 3: Advanced
File does not exist: HDR,SMPTE
File does not exist: ST
File does not exist: 2094
File does not exist: App
File does not exist: 4: HDR10+,Dolby
File does not exist: Vision
File does not exist: SMPTE
File does not exist: ST
File does not exist: 2086: Dolby
File does not exist: Vision,Dolby
File does not exist: Vision
File does not exist: HDR10: Dolby
File does not exist: Vision,ETSI
File does not exist: TS
File does not exist: 103
File does not exist: 433: SL-HDR1,SL-HDR1: SL-HDR1,SL-HDR2: SL-HDR2,SL-HDR3: SL-HDR3,Technicolor
File does not exist: Advanced
File does not exist: HDR: Technicolor
File does not exist: Advanced
File does not exist: HDR,]def vid = video.first()if (bitdepth > 8) {switch (vid) {case { vid =~ /\bHDR_Format_Commercial/ }:vid[HDR_Format_Commercial]breakcase { vid =~ /\bHDR_/ }:_HDR = any{ vid[HDR_Format] }{ vid[HDR_Format/String] }hdr_out = _HDRMap.get(_HDR, _HDR)if ( hdr_out.findMatch(/vision/) ) {dv_info = allOf{ P }{ vid[HDR_Format_Profile].match(/[dh][ve][hvca][e13v]\.\d(\d)/) }{ . + vid[HDR_Format_Compatibility].match(/HDR10|SDR/).replace(HDR10, 1).replace(SDR, 2) }.join()hdr_out = $hdr_out
File does not exist: $dv_info}hdr_outbreakcase { it[transfer_characteristics].findMatch(/HLG/) && it[colour_primaries] == BT.2020 }:HLG10breakcase { it[transfer_characteristics] == PQ && it[colour_primaries] == BT.2020 }:HDR10breakdefault:$bitdepth-bitbreak}}}
File does not exist: seriesFormat=P:\TV Shows\{n}\{'Season '+s}\{n} - {s00e00} - {t}.{vf}.{af}.{vc}.{ac}.{def _HDRMap = [HDR10: HDR10,SMPTE
File does not exist: ST
File does not exist: 2086: HDR10,SMPTE
File does not exist: ST
File does not exist: 2094
File does not exist: App
File does not exist: 3: Advanced
File does not exist: HDR,SMPTE
File does not exist: ST
File does not exist: 2094
File does not exist: App
File does not exist: 4: HDR10+,Dolby
File does not exist: Vision
File does not exist: SMPTE
File does not exist: ST
File does not exist: 2086: Dolby
File does not exist: Vision,Dolby
File does not exist: Vision
File does not exist: HDR10: Dolby
File does not exist: Vision,ETSI
File does not exist: TS
File does not exist: 103
File does not exist: 433: SL-HDR1,SL-HDR1: SL-HDR1,SL-HDR2: SL-HDR2,SL-HDR3: SL-HDR3,Technicolor
File does not exist: Advanced
File does not exist: HDR: Technicolor
File does not exist: Advanced
File does not exist: HDR,]def vid = video.first()if (bitdepth > 8) {switch (vid) {case { vid =~ /\bHDR_Format_Commercial/ }:vid[HDR_Format_Commercial]breakcase { vid =~ /\bHDR_/ }:_HDR = any{ vid[HDR_Format] }{ vid[HDR_Format/String] }hdr_out = _HDRMap.get(_HDR, _HDR)if ( hdr_out.findMatch(/vision/) ) {dv_info = allOf{ P }{ vid[HDR_Format_Profile].match(/[dh][ve][hvca][e13v]\.\d(\d)/) }{ . + vid[HDR_Format_Compatibility].match(/HDR10|SDR/).replace(HDR10, 1).replace(SDR, 2) }.join()hdr_out = $hdr_out
File does not exist: $dv_info}hdr_outbreakcase { it[transfer_characteristics].findMatch(/HLG/) && it[colour_primaries] == BT.2020 }:HLG10breakcase { it[transfer_characteristics] == PQ && it[colour_primaries] == BT.2020 }:HDR10breakdefault:$bitdepth-bitbreak}}}
Code: Select all
"""HDR10""""
Code: Select all
'HDR10'
Any help is greatly appreciated!!