Comments (6)
I would just use a different filename to not interfere with the routine process. just name is something like customPostSonarr.sh and point Sonarr to that file instead
from sonarr-sma.
Additionally when you do make your new file you need to give it execute permissions, that's where your error is coming from
from sonarr-sma.
Thats works great im nearly there:)
Would it be possible to make a copy of the source file sent from sonarr to a fixed location?
Maybe editing the postsonarr.sh?
So copy sourcefile to /720import/ folder, before your encoding starts?
from sonarr-sma.
Yeah you could easily just add a line to postSonarr.sh to copy a file using usual operating system commands
from sonarr-sma.
https://github.com/Sonarr/Sonarr/wiki/Custom-Post-Processing-Scripts
Those are all the environment variables sonarr passes so you can use them too
from sonarr-sma.
Thanks bro, Im no coder, but I try:)
so if i change contents my_postsonarr.sh file too:
`#!/usr/bin/env bash
$replace = array(
'1280 Series' => '720 Series',
'test1' => 'test2'
'testa' => 'testb'
);
function strReplaceAssoc(array $replace, $filePath) {
return str_replace(array_keys($replace), array_values($replace), $filePath);
}
cp "$filePath" "str_replace_assoc($replace,$filePath);"
$SMA_PATH/venv/bin/python3 $SMA_PATH/postSonarr.py`
Will this work??
orginal path: /tv/1280 Series/Mandalorian, The/Season 1/testing.mkv
copy "/tv/1280 Series/Mandalorian, The/Season 1/testing.mkv" "/tv/720 Series/Mandalorian, The/Season 1/testing.mkv"
When completed. then execute your : $SMA_PATH/postSonarr.py
from sonarr-sma.
Related Issues (20)
- Error caused by log file ownership HOT 4
- QSV not working on 620slim HOT 10
- Sonarr V3 and Radarr V3 Connect/PostProcess Exit1 Using Script
- NVENC capable FFMPEG build for alpine HOT 27
- Enabling vaapi HOT 8
- Error in "/usr/local/sma/resources/mediaprocessor.py", line 261, in videoStreamTitle HOT 4
- Unable to Perform Local Rename & Conversion Prior to Moving/Sorting on NAS HOT 1
- ffmpeg vaapi error HOT 3
- kubernetes HOT 1
- Script exited with error code: 1 HOT 4
- Latest stable version of sonaar v3.0.9.1549 HOT 3
- vaapi hardware encode not working HOT 1
- postSonarr.sh doesn't have executable permission HOT 9
- Question: Using videotoolbox for Hardware Acceleration Encoding w/Docker on MacOS HOT 2
- SMA Config not abiding by environmental variables HOT 2
- Perform conversion prior to transferring file to NAS HOT 7
- Support linuxserver/ffmpeg for building HOT 38
- Enhancement Request: Vaapi support HOT 2
- ffmpeg and ffprobe don't work since update to Sonarr 4 HOT 5
- Post Processing Not Working HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sonarr-sma.