Hey
zal je even helpen
Het probleem is bij transmission dat hij niet echt weet waar je python staat, zodat hij het TorrentToMedia.py bestand niet kan uitvoeren.
Je kan dit oplossen door:
Installeer winscp op je pc. Hiermee kan je dan via ssh inloggen op je nas.
Dus ssh moet aan staan op je nas (configuratiescherm - Terminal en SMNP). Zet hier een vinkje bij 'SSH-service inschakelen"
Nu start je winscp op, en verbind je via ssh met het ip adres van je nas. Je login is root, en het wachtwoord is hetgene wat je gebruikt voor admin.
Als je gaat kijken wat er in torrenttomedia.py staat in eerste lijn: #!/usr/bin/env python
Dit verwijst naar je busybox in je nas.
Ik heb dit opgelost door de eerste regel aan te passen naar #!/usr/bin/python
Nu navigeer je naar /usr/bin direcotory.
Hier maak je dan een symlinke naar python aan
Meestal staat python in deze dir: /usr/local/python/bin/python
Dus eenmaal je in /usr/bin directory bent in winscp, rechts klikken, en dan Nieuw - Koppeling aanklikken.
Naam koppeling doe je : python
Koppeling verwijst naar: /usr/local/python/bin/python
en na enkele tellen zal je in /usr/bin een nieuwe koppeling python zien staan.
Nu kan je rap eens testen of het lukt door volgende cmd in te voeren:
/usr/bin/python /usr/local/nzbToMedia/TorrentToMedia.py
Dit zal dan een manuele run geven van TorrentTomedia, en de log zal ervan zal je dan terug vinden in /usr/local/nzbToMedia
En nog iets:
in je autorprocessmedia.cfg onder torrent sectie heb je dit staan: outputDirectory = /volume1/downloads/torrents-complete/
Output directory moet eigenlijk een tijdelijke directory zijn. Het script gebruikt dit om de originele torrent hier naar te copieren, en van daaruit verder te werken.
Want je kan het zo instellen dat je torrent ook blijft seeden, dus het originele bestand moet blijven staan.
Neem als outputdirectory iets van: /volume1/downloads/torrents-temp
C@SP schreef op dinsdag 08 april 2014 @ 13:14:
Heeft er iemand een goede guide om postprocessing middels nzbToMedia scripts in Transmission aan de praat te krijgen?
Ik heb in mijn settings.json de volgende regels opgenomen:
code:
1
2
| "script-torrent-done-enabled": true,
"script-torrent-done-filename": "/usr/local/nzbToMedia/TorrentToMedia.py" |
Ik draai Transmission onder user root, dus rechten zou het probleem niet moeten zijn.
Als een torrent gereed is gebeurd er echter niets, geen postprocess.log te vinden in deze directory.
Relevante data uit autoProcessMedia.cfg:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
| [SickBeard]
#### autoProcessing for TV Series
#### sbCategory - category that gets called for post-processing with SB
sbCategory = series
host = localhost
port = 8082
username =
password =
###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######
web_root =
ssl = 0
delay = 0
wait_for = 5
watch_dir =
fork = default
delete_failed = 0
nzbExtractionBy = Downloader
Torrent_ForceLink = 1
[Torrent]
###### clientAgent - Supported clients: utorrent, transmission, deluge, rtorrent, other
clientAgent = transmission
###### useLink - Set to hard for physical links, sym for symbolic links, move to move, and no to not use links (copy)
useLink = hard
###### outputDirectory - Default output directory (categories will be appended as sub directory to outputDirectory)
outputDirectory = /volume1/downloads/torrents-complete/
###### Other categories/labels defined for your downloader. Does not include CouchPotato, SickBeard, HeadPhones, Mylar categories.
categories = series
###### A list of categories that you don't want to be flattened (i.e preserve the directory structure when copying/linking.
noFlatten = pictures,manual
###### uTorrent Hardlink solution (You must edit this if your using TorrentToMedia.py with uTorrent)
uTorrentWEBui = http://localhost:8090/gui/
uTorrentUSR = your username
uTorrentPWD = your password
###### Transmission (You must edit this if your using TorrentToMedia.py with uTorrent)
TransmissionHost = localhost
TransmissionPort = 9091
TransmissionUSR = xxxxxx
TransmissionPWD = xxxxxx
#### Deluge (You must edit this if your using TorrentToMedia.py with deluge. Note that the host/port is for the deluge daemon, not the webui)
DelugeHost = localhost
DelugePort = 58846
DelugeUSR = your username
DelugePWD = your password
###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######
deleteOriginal = 0 |