clinton-hall / nzbToMedia

Provides NZB and Torrent postprocessing To CouchPotatoServer, SickBeard/SickRage, HeadPhones, Mylar and Gamez
GNU General Public License v3.0
672 stars 176 forks source link

[DEV, transmission and Headphones] Torrent not removed #210

Closed Jorman closed 10 years ago

Jorman commented 10 years ago

Hi man!

Is not a big deal, just to tell you, I configured nzbtomedia script do hardlink and under torrent delete original is 1

But after the download complete and the successfully download the torrent still remain in transmission.

J

clinton-hall commented 10 years ago

Can you provide a log? As far as I am aware, this should be deleting, but really the logs will tell me just what is and isn't being executed.

Jorman commented 10 years ago

18:57:49|INFO ==================== 18:57:49|INFO TorrentToMedia V8.6 18:57:49|INFO MAIN: Loading config from /home/xbmc/scripts/nzbToMedia/autoProcessMedia.cfg 18:57:49|DEBUG arg 0 is: /home/xbmc/scripts/nzbToMedia/TorrentToMedia.py 18:57:49|DEBUG MAIN: Received Directory: /media/TwoTera/Download/torrent/musica | Name: Green Day - 39Smooth | Category: 18:57:49|INFO SEARCH: Found torrent directory Green Day - 39Smooth in input directory directory /media/TwoTera/Download/torrent/musica 18:57:49|INFO SEARCH: Setting inputDirectory to /media/TwoTera/Download/torrent/musica/Green Day - 39Smooth 18:57:49|INFO SEARCH: Files appear to be in their own directory 18:57:49|DEBUG SEARCH: Continuing scan to determin category. 18:57:49|DEBUG SEARCH: Found Category: musica in directory structure 18:57:49|INFO SEARCH: Determined Category to be: musica 18:57:49|DEBUG MAIN: Scanning files in directory: /media/TwoTera/Download/torrent/musica/Green Day - 39Smooth

Hope this helps

clinton-hall commented 10 years ago

That's it? The log ends there? I think there might be an error in my headphones script!

Jorman commented 10 years ago

Yep! That all, for this. Il 27/nov/2013 22:25 "Clinton Hall" notifications@github.com ha scritto:

That's it? The log ends there? I think there might be an error in my headphones script!

— Reply to this email directly or view it on GitHubhttps://github.com/clinton-hall/nzbToMedia/issues/210#issuecomment-29421397 .

clinton-hall commented 10 years ago

can you confirm if /media/TwoTera/Download/torrent/musica/Green Day - 39Smooth actually exists... also confirm the user/group and file permissions...

I just did a test here and the script runs past this point...

Jorman commented 10 years ago

Yep, another try....

17:17:21|INFO TorrentToMedia V8.6 17:17:21|INFO MAIN: Loading config from /home/xbmc/scripts/nzbToMedia/autoProcessMedia.cfg 17:17:21|DEBUG arg 0 is: /home/xbmc/scripts/nzbToMedia/TorrentToMedia.py 17:17:21|DEBUG MAIN: Received Directory: /media/TwoTera/Download/torrent/musica | Name: Birdy - Fire Within [Limited Edition] [Box Set] [2CD] [2013]-JUST-V3nom [GLT] | Category: 17:17:21|INFO SEARCH: Found torrent directory Birdy - Fire Within [Limited Edition] [Box Set] [2CD] [2013]-JUST-V3nom [GLT] in input directory directory /media/TwoTera/Download/torrent/musica 17:17:21|INFO SEARCH: Setting inputDirectory to /media/TwoTera/Download/torrent/musica/Birdy - Fire Within [Limited Edition] [Box Set] [2CD] [2013]-JUST-V3nom [GLT] 17:17:21|INFO SEARCH: Files appear to be in their own directory 17:17:21|DEBUG SEARCH: Continuing scan to determin category. 17:17:21|DEBUG SEARCH: Found Category: musica in directory structure 17:17:21|INFO SEARCH: Determined Category to be: musica 17:17:21|DEBUG MAIN: Scanning files in directory: /media/TwoTera/Download/torrent/musica/Birdy - Fire Within [Limited Edition] [Box Set] [2CD] [2013]-JUST-V3nom [GLT]

I only upgraded the dev version :)

Jorman commented 10 years ago

Tried with the last dev and clean installation, the log stop at the same point and the file on transmission is still in place

13:05:54|INFO TorrentToMedia V8.6 13:05:54|INFO MAIN: Loading config from /home/xbmc/scripts/nzbToMedia/autoProcessMedia.cfg 13:05:54|DEBUG arg 0 is: /home/xbmc/scripts/nzbToMedia/TorrentToMedia.py 13:05:54|DEBUG MAIN: Received Directory: /media/TwoTera/Download/torrent/musica | Name: Patrice-The_Rising_Of_The_Son-CD-2013-k4 | Category: 13:05:54|INFO SEARCH: Found torrent directory Patrice-The_Rising_Of_The_Son-CD-2013-k4 in input directory directory /media/TwoTera/Download/torrent/musica 13:05:54|INFO SEARCH: Setting inputDirectory to /media/TwoTera/Download/torrent/musica/Patrice-The_Rising_Of_The_Son-CD-2013-k4 13:05:54|INFO SEARCH: Files appear to be in their own directory 13:05:54|DEBUG SEARCH: Continuing scan to determin category. 13:05:54|DEBUG SEARCH: Found Category: musica in directory structure 13:05:54|INFO SEARCH: Determined Category to be: musica 13:05:54|DEBUG MAIN: Scanning files in directory: /media/TwoTera/Download/torrent/musica/Patrice-The_Rising_Of_The_Son-CD-2013-k4

clinton-hall commented 10 years ago

Someone else reported an issue with another category... I finally tracked down a simple name mismatch that was stopping the script... turns out this would also cause the failure you have experienced...

https://github.com/clinton-hall/nzbToMedia/commit/c3d50661570528729a025d4945c809c485f4f28b

I believe this should now be fixed.

Pleas try updating to latest dev and try again.

Jorman commented 10 years ago

Tried, but not working, torrent from HP to transmission is not removed

clinton-hall commented 10 years ago

New logs?

Jorman commented 10 years ago

yepppp....

16:06:32|INFO TorrentToMedia V8.6 16:06:32|INFO MAIN: Loading config from /home/xbmc/scripts/nzbToMedia/autoProcessMedia.cfg 16:06:32|DEBUG arg 0 is: /home/xbmc/scripts/nzbToMedia/TorrentToMedia.py 16:06:32|DEBUG MAIN: Received Directory: /media/TwoTera/Download/torrent/musica | Name: Earth,Wind & Fire - Open Our Eyes [1974 - MP3 - 320 kbps] [vigoni] | Category: 16:06:32|INFO SEARCH: Found torrent directory Earth,Wind & Fire - Open Our Eyes [1974 - MP3 - 320 kbps] [vigoni] in input directory directory /media/TwoTera/Download/torrent/musica 16:06:32|INFO SEARCH: Setting inputDirectory to /media/TwoTera/Download/torrent/musica/Earth,Wind & Fire - Open Our Eyes [1974 - MP3 - 320 kbps] [vigoni] 16:06:32|INFO SEARCH: Files appear to be in their own directory 16:06:32|DEBUG SEARCH: Continuing scan to determin category. 16:06:32|DEBUG SEARCH: Found Category: musica in directory structure 16:06:32|INFO SEARCH: Determined Category to be: musica 16:06:32|DEBUG MAIN: Scanning files in directory: /media/TwoTera/Download/torrent/musica/Earth,Wind & Fire - Open Our Eyes [1974 - MP3 - 320 kbps] [vigoni] 16:06:32|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Earth,Wind & Fire - Open Our Eyes [1974 - MP3 - 320 kbps] [vigoni]/14 Step's Tune.mp3 is not a media file 16:06:32|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Earth,Wind & Fire - Open Our Eyes [1974 - MP3 - 320 kbps] [vigoni]/03 Fair But So Uncool.mp3 is not a media file 16:06:32|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Earth,Wind & Fire - Open Our Eyes [1974 - MP3 - 320 kbps] [vigoni]/12 Ain't No Harm To Moan (Slave Song).mp3 is not a media file 16:06:32|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Earth,Wind & Fire - Open Our Eyes [1974 - MP3 - 320 kbps] [vigoni]/15 Dreams.mp3 is not a media file 16:06:32|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Earth,Wind & Fire - Open Our Eyes [1974 - MP3 - 320 kbps] [vigoni]/06 Drum Song.mp3 is not a media file 16:06:32|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Earth,Wind & Fire - Open Our Eyes [1974 - MP3 - 320 kbps] [vigoni]/13 Fair But So Uncool.mp3 is not a media file 16:06:32|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Earth,Wind & Fire - Open Our Eyes [1974 - MP3 - 320 kbps] [vigoni]/05 Kalimba Story.mp3 is not a media file 16:06:32|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Earth,Wind & Fire - Open Our Eyes [1974 - MP3 - 320 kbps] [vigoni]/04 Feelin' Blue.mp3 is not a media file 16:06:32|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Earth,Wind & Fire - Open Our Eyes [1974 - MP3 - 320 kbps] [vigoni]/11 Open Our Eyes.mp3 is not a media file 16:06:32|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Earth,Wind & Fire - Open Our Eyes [1974 - MP3 - 320 kbps] [vigoni]/10 Caribou.mp3 is not a media file 16:06:32|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Earth,Wind & Fire - Open Our Eyes [1974 - MP3 - 320 kbps] [vigoni]/02 Devotion.mp3 is not a media file 16:06:32|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Earth,Wind & Fire - Open Our Eyes [1974 - MP3 - 320 kbps] [vigoni]/09 Rabbit Seed.mp3 is not a media file 16:06:32|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Earth,Wind & Fire - Open Our Eyes [1974 - MP3 - 320 kbps] [vigoni]/08 Spasmodic Movements.mp3 is not a media file 16:06:32|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Earth,Wind & Fire - Open Our Eyes [1974 - MP3 - 320 kbps] [vigoni]/01 Mighty Mighty.mp3 is not a media file 16:06:32|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Earth,Wind & Fire - Open Our Eyes [1974 - MP3 - 320 kbps] [vigoni]/Pix2Links txt.txt is not a media file 16:06:32|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Earth,Wind & Fire - Open Our Eyes [1974 - MP3 - 320 kbps] [vigoni]/Earth,Wind & Fire - Open Our Eyes.jpg is not a media file 16:06:32|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Earth,Wind & Fire - Open Our Eyes [1974 - MP3 - 320 kbps] [vigoni]/Torrent downloaded from puretorrents.cc.txt is not a media file 16:06:32|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Earth,Wind & Fire - Open Our Eyes [1974 - MP3 - 320 kbps] [vigoni]/07 Tee Nine Chee Bit.mp3 is not a media file 16:06:32|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Earth,Wind & Fire - Open Our Eyes [1974 - MP3 - 320 kbps] [vigoni]/Earth,Wind & Fire - Open Our Eyes.txt is not a media file 16:06:32|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Earth,Wind & Fire - Open Our Eyes [1974 - MP3 - 320 kbps] [vigoni]/Torrent downloaded from Demonoid.me.txt is not a media file 16:06:32|DEBUG MAIN: Found 0 media files in output. 0 were found in input 16:06:32|DEBUG MAIN: Connecting to transmission: http://localhost:9091 16:06:32|DEBUG MAIN: Stoping torrent Earth,Wind & Fire - Open Our Eyes [1974 - MP3 - 320 kbps] [vigoni] in transmission while processing 16:06:37|DEBUG MAIN: Calling autoProcess script for successful download. 16:06:37|INFO MAIN: Calling HeadPhones to post-process: Earth,Wind & Fire - Open Our Eyes [1974 - MP3 - 320 kbps] [vigoni] 16:06:37|INFO Loading config from /home/xbmc/scripts/nzbToMedia/autoProcessMedia.cfg 16:06:37|INFO Waiting for 65.0 seconds to allow HeadPhones to process newly extracted files 16:07:42|DEBUG Opening URL: http://localhost:8181/api?apikey=26acff2128eb5a839f8efd58b73ea040&cmd=forceProcess 16:07:42|INFO HeaPhones returned ['OK'] 16:07:42|INFO forceProcess started on HeadPhones for Earth,Wind & Fire - Open Our Eyes [1974 - MP3 - 320 kbps] [vigoni] 16:08:42|INFO This album should have completed processing. Please check HeadPhones Logs 16:08:42|DEBUG MAIN: Deleting torrent Earth,Wind & Fire - Open Our Eyes [1974 - MP3 - 320 kbps] [vigoni] from transmission 16:08:47|INFO MAIN: All done.

but torrent not removed

clinton-hall commented 10 years ago

Are the files still present or is the torrent just sitting in Transmission with no files? What logging do you have in Transmission?

Jorman commented 10 years ago

File is gone, but torrent on trasmission is not removed

Here on log, and one question, why this message? MAIN: File /media/TwoTera/Download/torrent/musica/Illumination/01. Earth, Wind & Fire - Lovely People (feat. Will. I. Am).mp3 is not a media file

Seems that there is a "contamination" about user scripts, is possible?

18:32:34|INFO TorrentToMedia V8.6 18:32:34|INFO MAIN: Loading config from /home/xbmc/scripts/nzbToMedia/autoProcessMedia.cfg 18:32:34|DEBUG arg 0 is: /home/xbmc/scripts/nzbToMedia/TorrentToMedia.py 18:32:34|DEBUG MAIN: Received Directory: /media/TwoTera/Download/torrent/musica | Name: Illumination | Category: 18:32:34|INFO SEARCH: Found torrent directory Illumination in input directory directory /media/TwoTera/Download/torrent/musica 18:32:34|INFO SEARCH: Setting inputDirectory to /media/TwoTera/Download/torrent/musica/Illumination 18:32:34|INFO SEARCH: Files appear to be in their own directory 18:32:34|DEBUG SEARCH: Continuing scan to determin category. 18:32:34|DEBUG SEARCH: Found Category: musica in directory structure 18:32:34|INFO SEARCH: Determined Category to be: musica 18:32:34|DEBUG MAIN: Scanning files in directory: /media/TwoTera/Download/torrent/musica/Illumination 18:32:34|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Illumination/07. Earth, Wind & Fire - Work It Out.mp3 is not a media file 18:32:34|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Illumination/Earth, Wind & Fire - Illumination.nfo is not a media file 18:32:34|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Illumination/05. Earth, Wind & Fire - Show Me the Way (feat. Raphael Saadiq).mp3 is not a media file 18:32:34|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Illumination/13. Earth, Wind & Fire - The Way You Move (feat. Kenny G).mp3 is not a media file 18:32:34|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Illumination/09. Earth, Wind & Fire - The One.mp3 is not a media file 18:32:34|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Illumination/01. Earth, Wind & Fire - Illumination.SFV is not a media file 18:32:34|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Illumination/04. Earth, Wind & Fire - Love's Dance.mp3 is not a media file 18:32:34|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Illumination/06. Earth, Wind & Fire - This Is How I Feel (feat. Big Boi, Kelly Rowland & Sleepy Brown).mp3 is not a media file 18:32:34|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Illumination/03. Earth, Wind & Fire - A Talking Voice (interlude).mp3 is not a media file 18:32:34|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Illumination/11. Earth, Wind & Fire - Liberation.mp3 is not a media file 18:32:34|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Illumination/08. Earth, Wind & Fire - Pass You By.mp3 is not a media file 18:32:34|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Illumination/02. Earth, Wind & Fire - Pure Gold.mp3 is not a media file 18:32:34|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Illumination/10. Earth, Wind & Fire - Elevated (feat. Floetry).mp3 is not a media file 18:32:34|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Illumination/01. Earth, Wind & Fire - Lovely People (feat. Will. I. Am).mp3 is not a media file 18:32:34|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Illumination/Earth, Wind & Fire - Illumination.m3u is not a media file 18:32:34|DEBUG MAIN: File /media/TwoTera/Download/torrent/musica/Illumination/12. Earth, Wind & Fire - To You (feat. Brian McKnight).mp3 is not a media file 18:32:34|DEBUG MAIN: Found 0 media files in output. 0 were found in input 18:32:34|DEBUG MAIN: Connecting to transmission: http://localhost:9091 18:32:35|DEBUG MAIN: Stoping torrent Illumination in transmission while processing 18:32:40|DEBUG MAIN: Calling autoProcess script for successful download. 18:32:40|INFO MAIN: Calling HeadPhones to post-process: Illumination 18:32:40|INFO Loading config from /home/xbmc/scripts/nzbToMedia/autoProcessMedia.cfg 18:32:40|INFO Waiting for 65.0 seconds to allow HeadPhones to process newly extracted files 18:33:45|DEBUG Opening URL: http://localhost:8181/api?apikey=26acff2128eb5a839f8efd58b73ea040&cmd=forceProcess 18:33:45|INFO HeaPhones returned ['OK'] 18:33:45|INFO forceProcess started on HeadPhones for Illumination 18:34:45|INFO This album should have completed processing. Please check HeadPhones Logs 18:34:45|DEBUG MAIN: Deleting torrent Illumination from transmission 18:34:50|INFO MAIN: All done.

clinton-hall commented 10 years ago

Ok.. this now links/moves all files to temp location and then after processing (original files are removed) it will move these (temporary) files back so that seeding can resume. In your case, it moves them back and then tells transmission to delete them.

The issues was when we told Transmission to delete them, because they had already gone, it failed... Also, I previously resumed seeding AND THEN, deleted... now I only resume seeding if NOT deleting... So this should be resolved.

Madseason41 commented 10 years ago

I am on the latest dev build I believe.... Updated this morning. I am experiencing the same behavior. Below is the latest log.

15:15:42|INFO TorrentToMedia V8.6 15:15:42|INFO MAIN: Loading config from /share/HDA_DATA/.qpkg/nzbToMedia/autoProcessMedia.cfg 15:15:42|DEBUG arg 0 is: /share/HDA_DATA/.qpkg/nzbToMedia/TorrentToMedia.py 15:15:42|DEBUG MAIN: Received Directory: /share/Download/transmission/completed/music | Name: Hail to the King (Deluxe Version) | Category: 15:15:42|INFO SEARCH: Found torrent directory Hail to the King (Deluxe Version) in input directory directory /share/Download/transmission/completed/music 15:15:42|INFO SEARCH: Setting inputDirectory to /share/Download/transmission/completed/music/Hail to the King (Deluxe Version) 15:15:42|INFO SEARCH: Files appear to be in their own directory 15:15:42|DEBUG SEARCH: Continuing scan to determin category. 15:15:42|DEBUG SEARCH: Found Category: music in directory structure 15:15:42|INFO SEARCH: Determined Category to be: music 15:15:42|INFO MAIN: Download is a directory 15:15:42|INFO MAIN: Output directory set to: /share/HDA_DATA/Download/transmission/completed/music/Hail to the King (Deluxe Version) 15:15:42|DEBUG MAIN: Connecting to transmission: http://localhost:9091 15:15:42|DEBUG MAIN: Stoping torrent Hail to the King (Deluxe Version) in transmission while processing 15:15:47|DEBUG MAIN: Scanning files in directory: /share/Download/transmission/completed/music/Hail to the King (Deluxe Version) 15:15:47|INFO MAIN: Found file /share/Download/transmission/completed/music/Hail to the King (Deluxe Version)/7 - Heretic - Avenged Sevenfold.mp3 for category music 15:15:47|INFO COPYLINK: target file already exists. Nothing to be done 15:15:47|INFO MAIN: Found file /share/Download/transmission/completed/music/Hail to the King (Deluxe Version)/10 - Acid Rain - Avenged Sevenfold.mp3 for category music 15:15:47|INFO COPYLINK: target file already exists. Nothing to be done 15:15:47|INFO MAIN: Found file /share/Download/transmission/completed/music/Hail to the King (Deluxe Version)/8 - Coming Home - Avenged Sevenfold.mp3 for category music 15:15:47|INFO COPYLINK: target file already exists. Nothing to be done 15:15:47|INFO MAIN: Found file /share/Download/transmission/completed/music/Hail to the King (Deluxe Version)/Digital Booklet - Hail to the King (.pdf for category music 15:15:47|INFO COPYLINK: target file already exists. Nothing to be done 15:15:47|INFO MAIN: Found file /share/Download/transmission/completed/music/Hail to the King (Deluxe Version)/11 - St. James (Bonus Track) - Avenged Sevenfold.mp3 for category music 15:15:47|INFO COPYLINK: target file already exists. Nothing to be done 15:15:47|INFO MAIN: Found video file .m4v in /share/Download/transmission/completed/music/Hail to the King (Deluxe Version)/Hail to the King.m4v 15:15:47|INFO COPYLINK: target file already exists. Nothing to be done 15:15:47|INFO MAIN: Found file /share/Download/transmission/completed/music/Hail to the King (Deluxe Version)/4 - This Means War - Avenged Sevenfold.mp3 for category music 15:15:47|INFO COPYLINK: target file already exists. Nothing to be done 15:15:47|INFO MAIN: Found file /share/Download/transmission/completed/music/Hail to the King (Deluxe Version)/6 - Crimson Day - Avenged Sevenfold.mp3 for category music 15:15:47|INFO COPYLINK: target file already exists. Nothing to be done 15:15:47|INFO MAIN: Found file /share/Download/transmission/completed/music/Hail to the King (Deluxe Version)/9 - Planets - Avenged Sevenfold.mp3 for category music 15:15:47|INFO COPYLINK: target file already exists. Nothing to be done 15:15:47|INFO MAIN: Found file /share/Download/transmission/completed/music/Hail to the King (Deluxe Version)/3 - Doing Time - Avenged Sevenfold.mp3 for category music 15:15:47|INFO COPYLINK: target file already exists. Nothing to be done 15:15:47|INFO MAIN: Found file /share/Download/transmission/completed/music/Hail to the King (Deluxe Version)/1 - Shepherd Of Fire - Avenged Sevenfold.mp3 for category music 15:15:47|INFO COPYLINK: target file already exists. Nothing to be done 15:15:47|INFO MAIN: Found file /share/Download/transmission/completed/music/Hail to the King (Deluxe Version)/5 - Requiem - Avenged Sevenfold.mp3 for category music 15:15:47|INFO COPYLINK: target file already exists. Nothing to be done 15:15:47|INFO MAIN: Found file /share/Download/transmission/completed/music/Hail to the King (Deluxe Version)/2 - Hail To The King - Avenged Sevenfold.mp3 for category music 15:15:47|INFO COPYLINK: target file already exists. Nothing to be done 15:15:47|DEBUG MAIN: Calling autoProcess script for successful download. 15:15:47|INFO MAIN: Calling HeadPhones to post-process: Hail to the King (Deluxe Version) 15:15:47|INFO Loading config from /share/HDA_DATA/.qpkg/nzbToMedia/autoProcessMedia.cfg

clinton-hall commented 10 years ago

This will only work when you set autoProcessMedia [Torrent] outputDirectory = something different to /share/Download/transmission/completed

Try /share/Download /transmission/processed or similar.

Madseason41 commented 10 years ago

So how do you set that in headphones or is it handled by a call from the script?

The only setting I have in headphones is music download directory and post processing final destination folder. There is no setting for post processing input folder.

Thus the processing fodder is the download folder correct?

In SB and CP I have a setting for download directly which in my case equals "transmission/download/(categories)"

Post processing folder which is "transmission/completed/(categories)"

Then Final folder which SB or CP moves to once processing is complete which is multimedia/(categories).

Thus to get the behavior I think I want I must set download directory in headphones to /transmission/completed/music.

Then the script tries to move the files which in realty they are all ready in completed directory.

Am I way off on this?

clinton-hall commented 10 years ago

You are not way off... In fact that is how you should set it... Then, what the script does is create a link of all the original files to the outputDirectory (as specified in autoProcessMedia.cfg [Torrent]. It also extracts any archived files back to /transmission/completed/music and calls HeadPhones to process these files.

At the end of all this, once your music is in the final music library location, my script will clean up /transmission/completed/music, and then move back all original files from outputDirectory to transmission/completed/music so that seeding can be resumed (of course if DeleteOriginal is used, these are all just deleted)

This probably sounds a little convoluted, but as HeadPhones will only scan the folder that it sends the torrents to, this is the only method I could come up with....

Madseason41 commented 10 years ago

Thanks just trying to make sure I had it set up right as I keep getting the following in the logs and it was throwing me off. Thanks for the help all is working fine.

13:46:45|INFO MAIN: Found file /share/Download/transmission/completed/music/Led Zeppelin - [1970] Led Zeppelin III/06 Gallows Pole.m4a for category music 13:46:45|INFO COPYLINK: target file already exists. Nothing to be done

clinton-hall commented 10 years ago

that is where I would set autoProcessMedia.cfg [Torrent] outputDirectory = /share/Download/transmission/processed

this will avoid the "target file already exists" comment and will allow you to seed the files afterwards. If you don't want to seed afterwards, then just leave it as is.

Madseason41 commented 10 years ago

Ok got it. Just out of curiosity....any plans on adding a Web UI to change config of the scripts? Thanks for the help.

clinton-hall commented 10 years ago

No "real" plans at this time... I kinda fell into doing Python work... my web-scripting skills are essentially zero at this time.

It is something I would like to offer. I was really happy to modify my scripts to work with NZBGet when I say how these scripts just added fields into the NZBGet webUI and therefore all configuration could be done this way... but that only works with NZBGet and isn't available for other Downloaders...

These were only ever post-process "scripts"...

https://github.com/clinton-hall/nzbToMedia/issues/260