Advertisement
Guest User

Untitled

a guest
Jan 24th, 2021
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. $FILME "/volume1/Multimedia/Movies/{n.space('.')}.{y}.{source}.{audio.size() > 2 ? 'Multi.' : audio.size() > 1 ? 'DL.' : audio.language[0].replace('en', 'English.').replace('de', 'German.')}{channels}.{ac}.{vf}@{vc}.[{rating}]/{n.replaceAll('M-CM-$', 'ae').replaceAll('M-CM-6', 'oe').replaceAll('M-CM-<', 'ue').space('.')}.{y}.{source}.{audio.size() > 2 ? 'Multi.' : audio.size() > 1 ? 'DL.' : audio.language[0].replace('en', 'English.').replace('de', 'German.')}{channels}.{ac}.{vf}@{vc}.[{rating}]"
  2.  
  3. $SERIEN "/volume1/Multimedia/Series/{n.space('.')}/{n.replaceAll('M-CM-$', 'ae').replaceAll('M-CM-6', 'oe').replaceAll('M-CM-<', 'ue').space('.')}.{s00e00}.{t.replaceAll('M-CM-$', 'ae').replaceAll('M-CM-6', 'oe').replaceAll('M-CM-<', 'ue').space('.')}.{audio.size() > 2 ? 'Multi.' : audio.size() > 1 ? 'DL.' : audio.language[0].replace('en', 'English.').replace('de', 'German.')}{channels}.{ac}.{vf}"
  4.  
  5. $UNSORTIERT "/volume1/Multimedia/Downloads/unsorted/{file.structurePathTail}"
  6.  
  7. Since this does not fit in the CMD section without escaping like hell, I would like to use the variables in the CMD. However, it only prints the variables and does not replace them. This is the line in my synology docker json:
  8. "cmd" : "/volume1/Multimedia/Downloads/extracted -get-subtitles --lang de --log-file '/data/log' --action move --def 'seriesFormat=$SERIEN' 'movieFormat=$FILME' 'unsortedFormat=$UNSORTIERT' -non-strict --def unsorted\\=y artwork\\=n --def clean\\=n",
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement