mdhiggins / sickbeard_mp4_automator

Automatically convert video files to a standardized format with metadata tagging to create a beautiful and uniform media library
MIT License
1.52k stars 202 forks source link

qbittorrent "Run external program" syntax question. #1075

Closed acosmichippo closed 4 years ago

acosmichippo commented 4 years ago

Hello,

I'm trying to setup qbt, but it doesn't seem to be calling the script. is this the correct syntax to be using in the "Run external program" setting?

C:\Users\user\Documents\Programs\mp4_automator\qBittorrentPostProcess.py "%L" "%T" "%R" "%F" "%N" "%I"

Annotation 2019-10-25 091532

I can run manual.py fine and had everything working with deluge and utorrent previously, but I'd prefer to stick with qbt. There are no entries in index.log, i guess it never gets that far.

The qbt logs say:

(N) 2019-10-25T09:06:09 - 'The.Good.Place.S04E05.1080p.WEB.X264-METCON[rartv]' added to download list.
(N) 2019-10-25T09:06:11 - Successfully moved torrent: The.Good.Place.S04E05.1080p.WEB.X264-METCON[rarbg]. New path: F:\Downloads\Torrents\qbittorrent\Incomplete\
(N) 2019-10-25T09:09:49 - Successfully moved torrent: The.Good.Place.S04E05.1080p.WEB.X264-METCON[rarbg]. New path: F:\Downloads\Torrents\qbittorrent\sonarr\
(N) 2019-10-25T09:09:49 - Torrent: The.Good.Place.S04E05.1080p.WEB.X264-METCON[rarbg], running external program, command: C:\Users\user\Documents\Programs\mp4_automator\qBittorrentPostProcess.py "sonarr" "" "F:\Downloads\Torrents\qbittorrent\sonarr\The.Good.Place.S04E05.1080p.WEB.X264-METCON[rarbg]" "F:\Downloads\Torrents\qbittorrent\sonarr\The.Good.Place.S04E05.1080p.WEB.X264-METCON[rarbg]" "The.Good.Place.S04E05.1080p.WEB.X264-METCON[rarbg]" "86fe9836d2da2ce2bbe4f44e654a03a2b40d7e1e"
(N) 2019-10-25T09:09:56 - 'The.Good.Place.S04E05.1080p.WEB.X264-METCON[rarbg]' reached the maximum ratio you set. Paused.

so qbt is at least trying to call the script. Are the " parts instead of actual quotes the issue?

autoprocess.ini in case you need it: (I have double checked the qbt webUI credentials, they should be fine)

[Sonarr]
host = localhost
port = 8989
web_root = 
ssl = 
apikey = ...

[Radarr]
host = localhost
port = 7878
web_root = 
ssl = 
apikey = ...

[MP4]
ffmpeg = C:\Users\user\Documents\Programs\ffmpeg\bin\ffmpeg.exe
ffprobe = C:\Users\user\Documents\Programs\ffmpeg\bin\ffprobe.exe
threads = auto
output_directory = 
copy_to = 
move_to = 
output_extension = mp4
output_format = mp4
delete_original = True
relocate_moov = True
video-codec = h264,x264,h265,x265,h.265,hevc,HEVC,mpeg4,MPEG-4,MPEG-H,h.264
video-bitrate = 
video-crf = 
video-max-width = 
h264-max-level = 
use-qsv-decoder-with-encoder = True
use-hevc-qsv-decoder = False
enable_dxva2_gpu_decode = False
ios-audio = True
ios-first-track-only = True
ios-audio-filter = 
ios-move-last = True
max-audio-channels = 6
audio-codec = eac3,e-ac-3,ac3,aac,heacc,he-acc,dts,dts-hd,libfdk_aac
ignore-trudhd = true
audio-language = 
audio-default-language = 
audio-channel-bitrate = 
audio-filter = 
audio-copy-original = True
subtitle-codec = mov_text
subtitle-language = eng
subtitle-default-language = eng
subtitle-encoding = 
fullpathguess = True
convert-mp4 = False
tagfile = False
tag-language = en
download-artwork = False
download-subs = false
embed-subs = True
embed-only-internal-subs = false
sub-providers = 
permissions = 0777
post-process = False
pix-fmt = 
aac_adtstoasc = False
postopts = 
preopts = 
audio-first-track-of-language = False
video-profile = 

[qBittorrent]
convert = True
sonarr-label = sonarr
bypass-label = bypass
action_before = pause
action_after = 
host = http://localhost:8080/
username = ...
password = ...
output_directory = 
radarr-label = radarr
sickbeard-label = sickbeard
couchpotato-label = couchpotato
sickrage-label = sickrage

[Plex]
host = 10.0.1.24
port = 32400
refresh = True
token = ...

Thanks!

edit:

also, the python qbittorrent is installed:

C:\Users\user>pip install python-qbittorrent
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Requirement already satisfied: python-qbittorrent in c:\python27\lib\site-packages (0.3.1)
Requirement already satisfied: requests in c:\python27\lib\site-packages (from python-qbittorrent) (2.21.0)
Requirement already satisfied: urllib3<1.25,>=1.21.1 in c:\python27\lib\site-packages (from requests->python-qbittorrent) (1.23)
Requirement already satisfied: idna<2.9,>=2.5 in c:\python27\lib\site-packages (from requests->python-qbittorrent) (2.7)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\python27\lib\site-packages (from requests->python-qbittorrent) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in c:\python27\lib\site-packages (from requests->python-qbittorrent) (2018.8.24)
mdhiggins commented 4 years ago

Windows might not have proper python execution. You can try googling this or maybe wrap the script in a bat file that calls your python executable

Sent from my iPhone

On Oct 25, 2019, at 9:16 AM, acosmichippo notifications@github.com wrote:

 Hello,

I'm trying to setup qbt, but it doesn't seem to be calling the script. is this the correct syntax to be using in the "Run external program" setting?

C:\Users\user\Documents\Programs\mp4_automator\qBittorrentPostProcess.py "%L" "%T" "%R" "%F" "%N" "%I"

Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.