clinton-hall / nzbToMedia

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

Latest Dev | Sickbeard Torrent Hard Link #314

Closed ghost closed 10 years ago

ghost commented 10 years ago

Previously, prior to all the latest code changes; TorrentToMedia would hardlink from the seeding directory to a process directory; from which SickBeard would then process, unrar, move, etc.

With latest updates, TorrentToMedia ignores any hard linking and sends the seed directory, original, to SickBeard.

Is this by design? I have SickBeard performing unrar (I've found it more capable), so I need it to perform in a processing directory and leave seeding alone. The original working order, TorrentToMedia doing a hardlink, then SickBeard set to move, was working perfectly.

Any advice?

        fork = auto
        delete_failed = 1
        nzbExtractionBy = Destination
        Torrent_NoLink = 0
        process_method = 
echel0n commented 10 years ago

I'm currently recoding that area right now and hope to have this 100% resolved, Ill post a new dev shortly for you to test.

echel0n commented 10 years ago

Ok new DEV release, please try and report back if it fixed the issue... THanks!

ghost commented 10 years ago

Same issue.. not understanding nzbExtractionBy = Destination...

media@download:~/.scripts/nzbToMedia$ ./TorrentToMedia.py /cache/torrent/download/sickbeard/TV.Show.mkv 
[10:55:28] [INFO]::MAIN:: Loading config from [/home/media/.scripts/nzbToMedia/autoProcessMedia.cfg]
[10:55:28] [INFO]::MAIN:: Version checking is disabled, not checking for the newest version
[10:55:28] [INFO]::MAIN:: nzbToMedia Version:9.3 Branch:dev (Linux 3.11.0-19-generic)
[10:55:28] [INFO]::MAIN:: #########################################################
[10:55:28] [INFO]::MAIN:: ## ..::[./TorrentToMedia.py]::.. CLIENT:rtorrent ## STARTING
[10:55:28] [INFO]::MAIN:: #########################################################
[10:55:28] [WARNING]::MAIN:: Invalid number of arguments received from client, Switching to manual run mode ...
[10:55:28] [WARNING]::MAIN:: NzbDrone:tv is DISABLED, you can enable this in autoProcessMedia.cfg ...
[10:55:28] [WARNING]::MAIN:: CouchPotato:movie is DISABLED, you can enable this in autoProcessMedia.cfg ...
[10:55:28] [WARNING]::MAIN:: CouchPotato:couchpotato has no directories identified for post-processing
[10:55:28] [WARNING]::MAIN:: SickBeard:tv is DISABLED, you can enable this in autoProcessMedia.cfg ...
[10:55:28] [INFO]::MAIN:: Running SickBeard:sickbeard as a manual run for folder /cache/process/sickbeard/TV.Show ...
[10:55:28] [INFO]::MAIN:: SEARCH: Found a unique directory TV.Show in the category directory
[10:55:28] [INFO]::MAIN:: Output directory set to: /cache/process/sickbeard/TV.Show
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[10:55:28] [INFO]::MAIN:: FLATTEN: Flattening directory: /cache/process/sickbeard/TV.Show
[10:55:28] [INFO]::REMOVER:: Removing empty folders in: /cache/process/sickbeard/TV.Show
[10:55:28] [WARNING]::MAIN:: Found no media files in /cache/process/sickbeard/TV.Show
[10:55:28] [ERROR]::MAIN:: Something failed! Please check logs. Exiting
[10:55:28] [ERROR]::MAIN:: A problem was reported when trying to manually run SickBeard:sickbeard.
[10:55:28] [WARNING]::MAIN:: HeadPhones:music is DISABLED, you can enable this in autoProcessMedia.cfg ...
[10:55:28] [WARNING]::MAIN:: Gamez:games is DISABLED, you can enable this in autoProcessMedia.cfg ...
[10:55:28] [WARNING]::MAIN:: Mylar:comics is DISABLED, you can enable this in autoProcessMedia.cfg ...
[10:55:28] [ERROR]::MAIN:: A problem was reported in the ./TorrentToMedia.py script.
ghost commented 10 years ago
    [[sickbeard]]
        enabled = 1
        host = 127.0.0.1
        port = 8081
        username = ""
        password = ""
        web_root = /sickbeard
        ssl = 0
        delay = 0
        TimePerGiB = 60
        watch_dir = ""
        fork = auto
        delete_failed = 1
        nzbExtractionBy = Destination
        Torrent_NoLink = 0
        process_method = ""
ghost commented 10 years ago
drwxrwxr-x 2 media media     4096 Apr 20 10:48 .
drwxrwxr-x 4 media media    12288 Apr 20 10:57 ..
-rw-rw-r-- 1 media media 52428800 Apr 20 10:43 174f80c64d5011d2188d553e35f9d228c62a7d3b.part01.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:43 174f80c64d5011d2188d553e35f9d228c62a7d3b.part02.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:43 174f80c64d5011d2188d553e35f9d228c62a7d3b.part03.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:44 174f80c64d5011d2188d553e35f9d228c62a7d3b.part04.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:44 174f80c64d5011d2188d553e35f9d228c62a7d3b.part05.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:44 174f80c64d5011d2188d553e35f9d228c62a7d3b.part06.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:44 174f80c64d5011d2188d553e35f9d228c62a7d3b.part07.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:44 174f80c64d5011d2188d553e35f9d228c62a7d3b.part08.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:44 174f80c64d5011d2188d553e35f9d228c62a7d3b.part09.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:44 174f80c64d5011d2188d553e35f9d228c62a7d3b.part10.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:44 174f80c64d5011d2188d553e35f9d228c62a7d3b.part11.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:45 174f80c64d5011d2188d553e35f9d228c62a7d3b.part12.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:45 174f80c64d5011d2188d553e35f9d228c62a7d3b.part13.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:45 174f80c64d5011d2188d553e35f9d228c62a7d3b.part14.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:45 174f80c64d5011d2188d553e35f9d228c62a7d3b.part15.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:45 174f80c64d5011d2188d553e35f9d228c62a7d3b.part16.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:45 174f80c64d5011d2188d553e35f9d228c62a7d3b.part17.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:45 174f80c64d5011d2188d553e35f9d228c62a7d3b.part18.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:45 174f80c64d5011d2188d553e35f9d228c62a7d3b.part19.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:46 174f80c64d5011d2188d553e35f9d228c62a7d3b.part20.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:46 174f80c64d5011d2188d553e35f9d228c62a7d3b.part21.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:46 174f80c64d5011d2188d553e35f9d228c62a7d3b.part22.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:46 174f80c64d5011d2188d553e35f9d228c62a7d3b.part23.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:46 174f80c64d5011d2188d553e35f9d228c62a7d3b.part24.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:46 174f80c64d5011d2188d553e35f9d228c62a7d3b.part25.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:46 174f80c64d5011d2188d553e35f9d228c62a7d3b.part26.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:46 174f80c64d5011d2188d553e35f9d228c62a7d3b.part27.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:47 174f80c64d5011d2188d553e35f9d228c62a7d3b.part28.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:47 174f80c64d5011d2188d553e35f9d228c62a7d3b.part29.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:47 174f80c64d5011d2188d553e35f9d228c62a7d3b.part30.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:47 174f80c64d5011d2188d553e35f9d228c62a7d3b.part31.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:47 174f80c64d5011d2188d553e35f9d228c62a7d3b.part32.rar
-rw-rw-r-- 1 media media 52428800 Apr 20 10:47 174f80c64d5011d2188d553e35f9d228c62a7d3b.part33.rar
-rw-rw-r-- 1 media media 42133401 Apr 20 10:47 174f80c64d5011d2188d553e35f9d228c62a7d3b.part34.rar
echel0n commented 10 years ago

I'm just in the middle of re-coding the extractor so I should have a test for you to run in the next few.

ghost commented 10 years ago

hard linking is successful, proper reading of category from autoProcessMedia.cfg is correct.

it's expecting to find a video file.. however, this isn't always the case, as I have nzbExtractionBy = Destination

I've found SB is better with encoded filenames; so I tend to let SB run it instead of downloader...

ghost commented 10 years ago

also, setting everything from SAB as failed... this one is confusing me. it's doing it to everything coming from SAB.

looks to be same thing; it is finding that nzbExtraction hasn't been performed, so it's marking failed. but with nzbExtraction = Destination, it shouldn't do that.

2014-04-20 10:57:58 INFO    ::MAIN:: Checking if /cache/process/sickbeard/TV.Show/s702720p2HD.part07.rar has any corruption, please stand by ...
2014-04-20 10:57:58 ERROR   ::MAIN:: Checking video /cache/process/sickbeard/TV.Show/s702720p2HD.part07.rar for corruption has failed
2014-04-20 10:57:58 INFO    ::MAIN:: Loading config from [/home/media/.scripts/nzbToMedia/autoProcessMedia.cfg]
2014-04-20 10:57:58 DEBUG   ::MAIN:: Checking if we can use git commands: git version
2014-04-20 10:57:58 DEBUG   ::MAIN:: Executing git version with your shell in /home/media/.scripts/nzbToMedia
2014-04-20 10:57:58 DEBUG   ::MAIN:: git output: git version 1.8.3.2
2014-04-20 10:57:58 DEBUG   ::MAIN:: git version : returned successful
2014-04-20 10:57:58 DEBUG   ::MAIN:: Using: git
2014-04-20 10:57:58 DEBUG   ::MAIN:: Executing git symbolic-ref -q HEAD with your shell in /home/media/.scripts/nzbToMedia
2014-04-20 10:57:58 DEBUG   ::MAIN:: git output: refs/heads/dev
2014-04-20 10:57:58 DEBUG   ::MAIN:: git symbolic-ref -q HEAD : returned successful
2014-04-20 10:57:58 INFO    ::MAIN:: Version checking is disabled, not checking for the newest version
2014-04-20 10:57:58 INFO    ::MAIN:: nzbToMedia Version:9.3 Branch:dev (Linux 3.11.0-19-generic)
2014-04-20 10:57:58 INFO    ::MAIN:: #########################################################
2014-04-20 10:57:58 INFO    ::MAIN:: ## ..::[nzbToMedia.pyc]::.. ##
2014-04-20 10:57:58 INFO    ::MAIN:: #########################################################
2014-04-20 10:57:58 DEBUG   ::MAIN:: Options passed into nzbToMedia: ['/home/media/.scripts/nzbToMedia/nzbToSickBeard.py', '/cache/process/sickbeard/TV.Show', 'TV.Show.nzb', 'TV.Show', '', 'sickbeard', 'alt.binaries.hdtv.x264', '0']
2014-04-20 10:57:58 INFO    ::MAIN:: Script triggered from SABnzbd
2014-04-20 10:57:58 INFO    ::MAIN:: Checking if /cache/process/sickbeard/TV.Show/s702720p2HD.part12.rar has any corruption, please stand by ...
2014-04-20 10:57:58 ERROR   ::MAIN:: Checking video /cache/process/sickbeard/TV.Show/s702720p2HD.part12.rar for corruption has failed
2014-04-20 10:57:58 INFO    ::MAIN:: Checking if /cache/process/sickbeard/TV.Show/s702720p2HD.part07.rar has any corruption, please stand by ...
2014-04-20 10:57:58 ERROR   ::MAIN:: Checking video /cache/process/sickbeard/TV.Show/s702720p2HD.part07.rar for corruption has failed
2014-04-20 10:57:58 INFO    ::MAIN:: Checking if /cache/process/sickbeard/TV.Show/s702720p2HD.part14.rar has any corruption, please stand by ...
2014-04-20 10:57:58 ERROR   ::MAIN:: Checking video /cache/process/sickbeard/TV.Show/s702720p2HD.part14.rar for corruption has failed
2014-04-20 10:57:58 INFO    ::MAIN:: Checking if /cache/process/sickbeard/TV.Show/s702720p2HD.part06.rar has any corruption, please stand by ...
2014-04-20 10:57:58 ERROR   ::MAIN:: Checking video /cache/process/sickbeard/TV.Show/s702720p2HD.part06.rar for corruption has failed
2014-04-20 10:57:58 INFO    ::MAIN:: Checking if /cache/process/sickbeard/TV.Show/s702720p2HD.part08.rar has any corruption, please stand by ...
2014-04-20 10:57:58 ERROR   ::MAIN:: Checking video /cache/process/sickbeard/TV.Show/s702720p2HD.part08.rar for corruption has failed
2014-04-20 10:57:58 INFO    ::MAIN:: Checking if /cache/process/sickbeard/TV.Show/s702720p2HD.part15.rar has any corruption, please stand by ...
2014-04-20 10:57:58 ERROR   ::MAIN:: Checking video /cache/process/sickbeard/TV.Show/s702720p2HD.part15.rar for corruption has failed
2014-04-20 10:57:58 INFO    ::MAIN:: Checking if /cache/process/sickbeard/TV.Show/s702720p2HD.part01.rar has any corruption, please stand by ...
2014-04-20 10:57:58 ERROR   ::MAIN:: Checking video /cache/process/sickbeard/TV.Show/s702720p2HD.part01.rar for corruption has failed
2014-04-20 10:57:58 INFO    ::MAIN:: Checking if /cache/process/sickbeard/TV.Show/s702720p2HD.part05.rar has any corruption, please stand by ...
2014-04-20 10:57:58 ERROR   ::MAIN:: Checking video /cache/process/sickbeard/TV.Show/s702720p2HD.part05.rar for corruption has failed
2014-04-20 10:57:58 INFO    ::MAIN:: Checking if /cache/process/sickbeard/TV.Show/s702720p2HD.part09.rar has any corruption, please stand by ...
2014-04-20 10:57:58 ERROR   ::MAIN:: Checking video /cache/process/sickbeard/TV.Show/s702720p2HD.part09.rar for corruption has failed
2014-04-20 10:57:58 INFO    ::MAIN:: Checking if /cache/process/sickbeard/TV.Show/s702720p2HD.part10.rar has any corruption, please stand by ...
2014-04-20 10:57:58 ERROR   ::MAIN:: Checking video /cache/process/sickbeard/TV.Show/s702720p2HD.part10.rar for corruption has failed
2014-04-20 10:57:58 INFO    ::MAIN:: Checking if /cache/process/sickbeard/TV.Show/s702720p2HD.part04.rar has any corruption, please stand by ...
2014-04-20 10:57:58 ERROR   ::MAIN:: Checking video /cache/process/sickbeard/TV.Show/s702720p2HD.part04.rar for corruption has failed
2014-04-20 10:57:58 INFO    ::MAIN:: Checking if /cache/process/sickbeard/TV.Show/s702720p2HD.part02.rar has any corruption, please stand by ...
2014-04-20 10:57:58 ERROR   ::MAIN:: Checking video /cache/process/sickbeard/TV.Show/s702720p2HD.part02.rar for corruption has failed
2014-04-20 10:57:58 INFO    ::MAIN:: Checking if /cache/process/sickbeard/TV.Show/s702720p2HD.part13.rar has any corruption, please stand by ...
2014-04-20 10:57:58 ERROR   ::MAIN:: Checking video /cache/process/sickbeard/TV.Show/s702720p2HD.part13.rar for corruption has failed
2014-04-20 10:57:58 INFO    ::MAIN:: Checking if /cache/process/sickbeard/TV.Show/s702720p2HD.part03.rar has any corruption, please stand by ...
2014-04-20 10:57:58 ERROR   ::MAIN:: Checking video /cache/process/sickbeard/TV.Show/s702720p2HD.part03.rar for corruption has failed
2014-04-20 10:57:58 INFO    ::MAIN:: Checking if /cache/process/sickbeard/TV.Show/s702720p2HD.part11.rar has any corruption, please stand by ...
2014-04-20 10:57:58 ERROR   ::MAIN:: Checking video /cache/process/sickbeard/TV.Show/s702720p2HD.part11.rar for corruption has failed
2014-04-20 10:57:58 INFO    ::MAIN:: Sending TV.Show.nzb to SICKBEARD for post-processing ...
2014-04-20 10:57:58 INFO    ::MAIN:: Attempting to auto-detect sickbeard fork
2014-04-20 10:57:58 INFO    ::MAIN:: SickBeard:sickbeard fork auto-detection successful ...
2014-04-20 10:57:58 INFO    ::MAIN:: SickBeard:sickbeard inputCategory fork set to failed-torrent
2014-04-20 10:57:58 POSTPROCESS::SICKBEARD:: FAILED: The download failed. Sending 'failed' process request to failed-torrent branch
2014-04-20 10:57:58 DEBUG   ::SICKBEARD:: Opening URL: http://127.0.0.1:8081/sickbeard/home/postprocess/processEpisode
2014-04-20 10:57:58 POSTPROCESS::SICKBEARD:: Processing folder /cache/process/sickbeard/TV.Show
2014-04-20 10:57:58 POSTPROCESS::SICKBEARD:: TV_DOWNLOAD_DIR: /cache/process/sickbeard
2014-04-20 10:57:58 POSTPROCESS::SICKBEARD:: PostProcessing Path: /cache/process/sickbeard
2014-04-20 10:57:58 POSTPROCESS::SICKBEARD:: PostProcessing Dirs: [u'TV.Show']
2014-04-20 10:57:58 POSTPROCESS::SICKBEARD:: PostProcessing Files: []
2014-04-20 10:57:58 POSTPROCESS::SICKBEARD:: PostProcessing VideoFiles: []
2014-04-20 10:57:58 POSTPROCESS::SICKBEARD:: PostProcessing RarContent: []
2014-04-20 10:57:58 POSTPROCESS::SICKBEARD:: PostProcessing VideoInRar: []
2014-04-20 10:57:58 POSTPROCESS::SICKBEARD:: Processing folder TV.Show
2014-04-20 10:57:58 POSTPROCESS::SICKBEARD:: Failed download detected: (TV.Show.nzb, /cache/process/sickbeard/TV.Show)
2014-04-20 10:57:58 POSTPROCESS::SICKBEARD:: Found show_id: 123456
2014-04-20 10:57:58 POSTPROCESS::SICKBEARD:: Skipping Deleting folder /cache/process/sickbeard/TV.Show because some files was not deleted/processed
2014-04-20 10:57:58 POSTPROCESS::SICKBEARD:: Failed Download Processing succeeded: (TV.Show.nzb, /cache/process/sickbeard/TV.Show)
2014-04-20 10:57:58 INFO    ::MAIN:: The /home/media/.scripts/nzbToMedia/nzbToSickBeard.py script completed successfully.
echel0n commented 10 years ago

Actually scratch that last comment, what I'm doing is adding in the ability to have ALL processors have the choice of either us doing the extraction or them doing the extraction, if we do the extraction then we can perform file corruption checks and if any found we simply fail that download so that a new download is tried, if the processor does the extract then you loose that feature of checking for corruption but it will process files as normal.

I'm 90% finished coding it so just a few more minutes and I'll be ready to release a test run for you.

echel0n commented 10 years ago

Ok new DEV release is out, please test and let me know if fixed. Also added in new option called 'extract', set to 1 to have us extract files first or 0 to have process extract after.

ghost commented 10 years ago

extract = 0 not working. it's trying to extract, and failing everything.

with manual run, it's actually processing through everything now.

still same issues, failing when not finding a video file.

echel0n commented 10 years ago

new update out right now, test as it fixes the video corruption errors that were causing failed downloads to be triggered

ghost commented 10 years ago

new update.. extract = 0

media@download:~/.scripts/nzbToMedia$ ./TorrentToMedia.py /cache/process/sickbeard/TV.Show.1
[20:45:17] [INFO]::MAIN:: Loading config from [/home/media/.scripts/nzbToMedia/autoProcessMedia.cfg]
[20:45:17] [INFO]::MAIN:: Version checking is disabled, not checking for the newest version
[20:45:17] [INFO]::MAIN:: nzbToMedia Version:9.3 Branch:dev (Linux 3.11.0-19-generic)
[20:45:17] [INFO]::CLEANDIRS:: Cleaning processing directories ...
[20:45:17] [INFO]::CLEANDIRS:: Directory /cache/process/sickbeard/TV.Show.2 still contains 1 unprocessed file(s), skipping ...
[20:45:17] [INFO]::CLEANDIRS:: Directory /cache/process/sickbeard/TV.Show.1 still contains 1 unprocessed file(s), skipping ...
[20:45:17] [INFO]::CLEANDIRS:: Directory /cache/process/sickbeard/TV.Show.3 still contains 1 unprocessed file(s), skipping ...
[20:45:17] [INFO]::CLEANDIRS:: Directory /cache/process/sickbeard/TV.Show.4 still contains 1 unprocessed file(s), skipping ...
[20:45:17] [INFO]::CLEANDIRS:: Directory /cache/process/sickbeard/TV.Show.5 still contains 1 unprocessed file(s), skipping ...
[20:45:17] [INFO]::MAIN:: #########################################################
[20:45:17] [INFO]::MAIN:: ## ..::[./TorrentToMedia.py]::.. CLIENT:rtorrent ## STARTING
[20:45:17] [INFO]::MAIN:: #########################################################
[20:45:17] [WARNING]::MAIN:: Invalid number of arguments received from client, Switching to manual run mode ...
[20:45:17] [WARNING]::MAIN:: NzbDrone:tv is DISABLED, you can enable this in autoProcessMedia.cfg ...
[20:45:17] [WARNING]::MAIN:: CouchPotato:movie is DISABLED, you can enable this in autoProcessMedia.cfg ...
[20:45:17] [WARNING]::MAIN:: SickBeard:tv is DISABLED, you can enable this in autoProcessMedia.cfg ...
[20:45:17] [INFO]::MAIN:: Running SickBeard:sickbeard as a manual run for folder /cache/process/sickbeard/TV.Show.2 ...
[20:45:17] [INFO]::MAIN:: SEARCH: Found a unique directory TV.Show.2 in the category directory
[20:45:17] [INFO]::MAIN:: Output directory set to: /cache/process/sickbeard/TV.Show.2
[20:45:17] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[20:45:17] [INFO]::MAIN:: FLATTEN: Flattening directory: /cache/process/sickbeard/TV.Show.2
[20:45:17] [INFO]::REMOVER:: Removing empty folders in: /cache/process/sickbeard/TV.Show.2
[20:45:17] [WARNING]::MAIN:: Found no media files in /cache/process/sickbeard/TV.Show.2
[20:45:17] [ERROR]::MAIN:: Something failed! Please check logs. Exiting
[20:45:17] [ERROR]::MAIN:: A problem was reported when trying to manually run SickBeard:sickbeard.
[20:45:17] [INFO]::MAIN:: Running SickBeard:sickbeard as a manual run for folder /cache/process/sickbeard/TV.Show.1 ...
[20:45:17] [INFO]::MAIN:: SEARCH: Found a unique directory TV.Show.1 in the category directory
[20:45:17] [INFO]::MAIN:: Output directory set to: /cache/process/sickbeard/TV.Show.1
[20:45:17] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[20:45:17] [INFO]::MAIN:: FLATTEN: Flattening directory: /cache/process/sickbeard/TV.Show.1
[20:45:17] [INFO]::REMOVER:: Removing empty folders in: /cache/process/sickbeard/TV.Show.1
[20:45:17] [WARNING]::MAIN:: Found no media files in /cache/process/sickbeard/TV.Show.1
[20:45:17] [ERROR]::MAIN:: Something failed! Please check logs. Exiting
[20:45:17] [ERROR]::MAIN:: A problem was reported when trying to manually run SickBeard:sickbeard.
[20:45:17] [INFO]::MAIN:: Running SickBeard:sickbeard as a manual run for folder /cache/process/sickbeard/TV.Show.3 ...
[20:45:17] [INFO]::MAIN:: SEARCH: Found a unique directory TV.Show.3 in the category directory
[20:45:17] [INFO]::MAIN:: Output directory set to: /cache/process/sickbeard/TV.Show.3
[20:45:17] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[20:45:17] [INFO]::MAIN:: FLATTEN: Flattening directory: /cache/process/sickbeard/TV.Show.3
[20:45:17] [INFO]::REMOVER:: Removing empty folders in: /cache/process/sickbeard/TV.Show.3
[20:45:17] [WARNING]::MAIN:: Found no media files in /cache/process/sickbeard/TV.Show.3
[20:45:17] [ERROR]::MAIN:: Something failed! Please check logs. Exiting
[20:45:17] [ERROR]::MAIN:: A problem was reported when trying to manually run SickBeard:sickbeard.
[20:45:17] [INFO]::MAIN:: Running SickBeard:sickbeard as a manual run for folder /cache/process/sickbeard/TV.Show.4 ...
[20:45:17] [INFO]::MAIN:: SEARCH: Found a unique directory TV.Show.4 in the category directory
[20:45:17] [INFO]::MAIN:: Output directory set to: /cache/process/sickbeard/TV.Show.4
[20:45:17] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[20:45:17] [INFO]::MAIN:: FLATTEN: Flattening directory: /cache/process/sickbeard/TV.Show.4
[20:45:17] [INFO]::REMOVER:: Removing empty folders in: /cache/process/sickbeard/TV.Show.4
[20:45:17] [WARNING]::MAIN:: Found no media files in /cache/process/sickbeard/TV.Show.4
[20:45:17] [ERROR]::MAIN:: Something failed! Please check logs. Exiting
[20:45:17] [ERROR]::MAIN:: A problem was reported when trying to manually run SickBeard:sickbeard.
[20:45:17] [INFO]::MAIN:: Running SickBeard:sickbeard as a manual run for folder /cache/process/sickbeard/TV.Show.5 ...
[20:45:17] [INFO]::MAIN:: SEARCH: Found a unique directory TV.Show.5 in the category directory
[20:45:17] [INFO]::MAIN:: Output directory set to: /cache/process/sickbeard/TV.Show.5
[20:45:17] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[20:45:17] [INFO]::MAIN:: FLATTEN: Flattening directory: /cache/process/sickbeard/TV.Show.5
[20:45:17] [INFO]::REMOVER:: Removing empty folders in: /cache/process/sickbeard/TV.Show.5
[20:45:17] [WARNING]::MAIN:: Found no media files in /cache/process/sickbeard/TV.Show.5
[20:45:17] [ERROR]::MAIN:: Something failed! Please check logs. Exiting
[20:45:17] [ERROR]::MAIN:: A problem was reported when trying to manually run SickBeard:sickbeard.
[20:45:17] [WARNING]::MAIN:: HeadPhones:music is DISABLED, you can enable this in autoProcessMedia.cfg ...
[20:45:17] [WARNING]::MAIN:: Gamez:games is DISABLED, you can enable this in autoProcessMedia.cfg ...
[20:45:17] [WARNING]::MAIN:: Mylar:comics is DISABLED, you can enable this in autoProcessMedia.cfg ...
[20:45:17] [ERROR]::MAIN:: A problem was reported in the ./TorrentToMedia.py script.
ghost commented 10 years ago

set extract = 1; made no difference.

echel0n commented 10 years ago

ok can you confirm that the directory has video files inside it extracted ?

ghost commented 10 years ago

ok.. with extract = 1; latest dev update

media@download:~/.scripts/nzbToMedia$ ./TorrentToMedia.py /cache/process/sickbeard/TV.Show/
[20:56:41] [INFO]::MAIN:: Loading config from [/home/media/.scripts/nzbToMedia/autoProcessMedia.cfg]
[20:56:41] [INFO]::MAIN:: Version checking is disabled, not checking for the newest version
[20:56:41] [INFO]::MAIN:: nzbToMedia Version:9.3 Branch:dev (Linux 3.11.0-19-generic)
[20:56:41] [INFO]::CLEANDIRS:: Cleaning processing directories ...
[20:56:41] [INFO]::CLEANDIRS:: Directory /cache/process/sickbeard/TV.Show still contains 1 unprocessed file(s), skipping ...
[20:56:41] [INFO]::MAIN:: #########################################################
[20:56:41] [INFO]::MAIN:: ## ..::[./TorrentToMedia.py]::.. CLIENT:rtorrent ## STARTING
[20:56:41] [INFO]::MAIN:: #########################################################
[20:56:41] [WARNING]::MAIN:: Invalid number of arguments received from client, Switching to manual run mode ...
[20:56:41] [WARNING]::MAIN:: NzbDrone:tv is DISABLED, you can enable this in autoProcessMedia.cfg ...
[20:56:41] [WARNING]::MAIN:: CouchPotato:movie is DISABLED, you can enable this in autoProcessMedia.cfg ...
[20:56:41] [WARNING]::MAIN:: SickBeard:tv is DISABLED, you can enable this in autoProcessMedia.cfg ...
[20:56:41] [INFO]::MAIN:: Running SickBeard:sickbeard as a manual run for folder /cache/process/sickbeard/TV.Show ...
[20:56:41] [INFO]::MAIN:: SEARCH: Found a unique directory TV.Show in the category directory
[20:56:41] [INFO]::MAIN:: Found compressed archive .rar for file tv.show.rar
/usr/bin/unrar
/usr/bin/unzip
/bin/tar
/usr/bin/unxz
/usr/bin/unlzma
/usr/bin/7zr
/bin/bunzip2
[20:56:41] [INFO]::MAIN:: Extracting /cache/process/sickbeard/TV.Show/tv.show.rar to /cache/process/sickbeard/TV.Show

UNRAR 4.20 freeware      Copyright (c) 1993-2012 Alexander Roshal

Extracting from /cache/process/sickbeard/TV.Show/tv.show.rar

Extracting  TV.Show.mkv  4% 

Extracting from /cache/process/sickbeard/TV.Show/tv.show.r00

...         TV.Show.mkv  8% 

Extracting from /cache/process/sickbeard/TV.Show/tv.show.r01

...         TV.Show.mkv 13% 

Extracting from /cache/process/sickbeard/TV.Show/tv.show.r02

...         TV.Show.mkv 17% 

Extracting from /cache/process/sickbeard/TV.Show/tv.show.r03

...         TV.Show.mkv 22% 

Extracting from /cache/process/sickbeard/TV.Show/tv.show.r04

...         TV.Show.mkv 26% 

Extracting from /cache/process/sickbeard/TV.Show/tv.show.r05

...         TV.Show.mkv 31% 

Extracting from /cache/process/sickbeard/TV.Show/tv.show.r06

...         TV.Show.mkv 35% 

Extracting from /cache/process/sickbeard/TV.Show/tv.show.r07

...         TV.Show.mkv 39% 

Extracting from /cache/process/sickbeard/TV.Show/tv.show.r08

...         TV.Show.mkv 44% 

Extracting from /cache/process/sickbeard/TV.Show/tv.show.r09

...         TV.Show.mkv 48% 

Extracting from /cache/process/sickbeard/TV.Show/tv.show.r10

...         TV.Show.mkv 53% 

Extracting from /cache/process/sickbeard/TV.Show/tv.show.r11

...         TV.Show.mkv 57% 

Extracting from /cache/process/sickbeard/TV.Show/tv.show.r12

...         TV.Show.mkv 62% 

Extracting from /cache/process/sickbeard/TV.Show/tv.show.r13

...         TV.Show.mkv 66% 

Extracting from /cache/process/sickbeard/TV.Show/tv.show.r14

...         TV.Show.mkv 71% 

Extracting from /cache/process/sickbeard/TV.Show/tv.show.r15

...         TV.Show.mkv 75% 

Extracting from /cache/process/sickbeard/TV.Show/tv.show.r16

...         TV.Show.mkv 79% 

Extracting from /cache/process/sickbeard/TV.Show/tv.show.r17

...         TV.Show.mkv 84% 

Extracting from /cache/process/sickbeard/TV.Show/tv.show.r18

...         TV.Show.mkv 88% 

Extracting from /cache/process/sickbeard/TV.Show/tv.show.r19

...         TV.Show.mkv 93% 

Extracting from /cache/process/sickbeard/TV.Show/tv.show.r20

...         TV.Show.mkv 97% 

Extracting from /cache/process/sickbeard/TV.Show/tv.show.r21

...         TV.Show.mk  OK  
All OK
[20:57:07] [INFO]::MAIN:: EXTRACTOR: Extraction was successful for /cache/process/sickbeard/TV.Show/tv.show.rar to /cache/process/sickbeard/TV.Show
[20:57:10] [INFO]::MAIN:: Removing extracted archive tv.show.rar from folder /cache/process/sickbeard/TV.Show ...
[20:57:11] [INFO]::MAIN:: Output directory set to: /cache/process/sickbeard/TV.Show
[20:57:11] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[20:57:11] [INFO]::COPYLINK:: Target file already exists. Nothing to be done
[20:57:11] [INFO]::MAIN:: FLATTEN: Flattening directory: /cache/process/sickbeard/TV.Show
[20:57:11] [INFO]::REMOVER:: Removing empty folders in: /cache/process/sickbeard/TV.Show
[20:57:11] [INFO]::MAIN:: Calling Sick-Beard:sickbeard to post-process: TV.Show
[20:57:11] [INFO]::MAIN:: Attempting to auto-detect sickbeard fork
[20:57:11] [INFO]::MAIN:: SickBeard:sickbeard fork auto-detection successful ...
[20:57:11] [INFO]::MAIN:: SickBeard:sickbeard inputCategory fork set to failed-torrent
[20:57:11] [INFO]::MAIN:: Checking if /cache/process/sickbeard/TV.Show/TV.Show.mkv has any corruption, please stand by ...
[20:57:11] [ERROR]::MAIN:: Checking video /cache/process/sickbeard/TV.Show/TV.Show.mkv for corruption has failed
[20:57:11] [POSTPROCESS]::SICKBEARD:: FAILED: The download failed. Sending 'failed' process request to failed-torrent branch
ghost commented 10 years ago

does that extract before linking? if so, that's not going to work; it will ruin seeding?

echel0n commented 10 years ago

Ok try new update, 100% sure video corruption issues are fixed so this should all work for you now

echel0n commented 10 years ago

and yes the extracting takes place before the linking, I can set it up to not remove the archive if linking is enabled ... would that be better ?

echel0n commented 10 years ago

Ok tell me if this sounds like it would work for you. If torrent download and file is archive have it extract but not delete the archive afterwards then link ?

ghost commented 10 years ago

it would work; as you describe. however, cause extra space usage, as how do I clean up the extracted file, which would still be in the seeding location?

would delete original only delete the extracted file? or all archives? i believe all archives?

ideally, link the archive to the processing directory. then you can define extract; which would occur in a processing directory, not messing with the seeding location. if you happen to blow that away, screw up the files, it won't ruin seeding. then we can choose to extract with the script or the destination.

echel0n commented 10 years ago

extracting to the output destination would be easy, just gotta move the code to after the linking :) I'll give it a test and then throw up a new release for yeah

ghost commented 10 years ago

sounds good. thanks. this would act as it did previously. it's the safest I have found. it looks like your extract is working well, so I may switch to that; however, I ran into a bunch of issues before that SB was catching and others were not (wasn't sure why).. hence why I asked for the additions.

echel0n commented 10 years ago

Ok new release is up for you to test, yeah I'm fast I know :)

ghost commented 10 years ago

impressive. :-)

ok.. with extract = 1; looking good. properly extracted and sent. about to test linking first.

here's a side note.. it was a file already processed, so sickbeard cleaned the rar files, but you're script is leaving it in place; even though SB reported it already processed. is there an option i can define to clean up that response only?

echel0n commented 10 years ago

clean up the response how so ? need more details

ghost commented 10 years ago

ok.. extract = 1; original location. doesn't do anything.

media@download:~/.scripts/nzbToMedia$ ./TorrentToMedia.py /cache/torrent/download/sickbeard/TV.Show
[21:18:29] [INFO]::MAIN: Loading config from [/home/media/.scripts/nzbToMedia/autoProcessMedia.cfg]
[21:18:29] [INFO]::MAIN: Version checking is disabled, not checking for the newest version
[21:18:29] [INFO]::MAIN: nzbToMedia Version:9.3 Branch:dev (Linux 3.11.0-19-generic)
[21:18:29] [INFO]::CLEANDIRS: Cleaning processing directories ...
[21:18:29] [INFO]::MAIN: #########################################################
[21:18:29] [INFO]::MAIN: ## ..::[./TorrentToMedia.py]::.. CLIENT:rtorrent ## STARTING
[21:18:29] [INFO]::MAIN: #########################################################
[21:18:29] [WARNING]::MAIN: Invalid number of arguments received from client, Switching to manual run mode ...
[21:18:29] [WARNING]::MAIN: NzbDrone:tv is DISABLED, you can enable this in autoProcessMedia.cfg ...
[21:18:29] [WARNING]::MAIN: CouchPotato:movie is DISABLED, you can enable this in autoProcessMedia.cfg ...
[21:18:29] [WARNING]::MAIN: SickBeard:tv is DISABLED, you can enable this in autoProcessMedia.cfg ...
[21:18:29] [WARNING]::MAIN: HeadPhones:music is DISABLED, you can enable this in autoProcessMedia.cfg ...
[21:18:29] [WARNING]::MAIN: Gamez:games is DISABLED, you can enable this in autoProcessMedia.cfg ...
[21:18:29] [WARNING]::MAIN: Mylar:comics is DISABLED, you can enable this in autoProcessMedia.cfg ...
[21:18:29] [INFO]::MAIN: The ./TorrentToMedia.py script completed successfully.
[SickBeard]
    #### autoProcessing for TV Series
    #### tv - category that gets called for post-processing with SB
    [[tv]]
        enabled = 0
        host = localhost
        port = 8081
        username = ""
        password = ""
        ###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######
        web_root = ""
        ssl = 0
        fork = auto
        delete_failed = 0
        # Enable/Disable linking for Torrents
        Torrent_NoLink = 0
        process_method = ""
        extract = 1
        ##### Set to path where completed downloads are found on remote server for this category
        remote_path = ""
        ##### Set to path where download client places completed downloads locally for this category
        watch_dir = ""
        delay = 0
    [[sickbeard]]
        enabled = 1
        host = 127.0.0.1
        port = 8081
        username = ""
        password = ""
        web_root = /sickbeard
        ssl = 0
        delay = 0
        watch_dir = ""
        fork = auto
        delete_failed = 1
        Torrent_NoLink = 0
        process_method = ""
        extract = 1
echel0n commented 10 years ago

hmmm is there any files for it to extract ?

ghost commented 10 years ago

yeah, bunch of rar files; just tried a second directory, same thing

have to call it a night. will follow up more tomorrow.

ghost commented 10 years ago

back to testing..

first issue; how do I get this new dev to do a manual run, with linking?

If I manually link before, then it runs successfully. If I do manual run to original directory (where it is seeding), it doesn't perform the link and then look for proper directory.

also, extract = 0 does not hold on a manual run. it does extraction.

media@download:~/.scripts/nzbToMedia$ ./TorrentToMedia.py /cache/torrent/download/sickbeard/TV.Show/
[10:19:40] [INFO]::MAIN: Loading config from [/home/media/.scripts/nzbToMedia/autoProcessMedia.cfg]
[10:19:40] [INFO]::MAIN: Checking database structure...
[10:19:40] [DEBUG]::MAIN: Checking Initial Schema database upgrade
[10:19:40] [DB]::MAIN: nzbtomedia.db: SELECT 1 FROM sqlite_master WHERE name = ?; with args ('db_version',)
[10:19:40] [DEBUG]::MAIN: InitialSchema upgrade not required
[10:19:40] [DEBUG]::MAIN: Checking if we can use git commands: git version
[10:19:40] [DEBUG]::MAIN: Executing git version with your shell in /home/media/.scripts/nzbToMedia
[10:19:40] [DEBUG]::MAIN: git output: git version 1.8.3.2
[10:19:40] [DEBUG]::MAIN: git version : returned successful
[10:19:40] [DEBUG]::MAIN: Using: git
[10:19:40] [DEBUG]::MAIN: Executing git symbolic-ref -q HEAD with your shell in /home/media/.scripts/nzbToMedia
[10:19:40] [DEBUG]::MAIN: git output: refs/heads/dev
[10:19:40] [DEBUG]::MAIN: git symbolic-ref -q HEAD : returned successful
[10:19:40] [INFO]::MAIN: Version checking is disabled, not checking for the newest version
[10:19:40] [INFO]::MAIN: nzbToMedia Version:9.3 Branch:dev (Linux 3.11.0-19-generic)
[10:19:40] [INFO]::MAIN: #########################################################
[10:19:40] [INFO]::MAIN: ## ..::[./TorrentToMedia.py]::.. CLIENT:rtorrent ## STARTING
[10:19:40] [INFO]::MAIN: #########################################################
[10:19:40] [DEBUG]::MAIN: Options passed into TorrentToMedia: ['./TorrentToMedia.py', '/cache/torrent/download/sickbeard/TV.Show/']
[10:19:40] [WARNING]::MAIN: Invalid number of arguments received from client, Switching to manual run mode ...
[10:19:40] [WARNING]::MAIN: NzbDrone:tv is DISABLED, you can enable this in autoProcessMedia.cfg ...
[10:19:40] [WARNING]::MAIN: CouchPotato:movie is DISABLED, you can enable this in autoProcessMedia.cfg ...
[10:19:40] [DEBUG]::COUCHPOTATO: No directories identified in couchpotato for post-processing
[10:19:40] [INFO]::COUCHPOTATO: [COUCHPOTATO] - No directories found to post-process ...
[10:19:40] [WARNING]::MAIN: SickBeard:tv is DISABLED, you can enable this in autoProcessMedia.cfg ...
[10:19:40] [DEBUG]::SICKBEARD: No directories identified in sickbeard for post-processing
[10:19:40] [INFO]::SICKBEARD: [SICKBEARD] - No directories found to post-process ...
[10:19:40] [WARNING]::MAIN: HeadPhones:music is DISABLED, you can enable this in autoProcessMedia.cfg ...
[10:19:40] [WARNING]::MAIN: Gamez:games is DISABLED, you can enable this in autoProcessMedia.cfg ...
[10:19:40] [WARNING]::MAIN: Mylar:comics is DISABLED, you can enable this in autoProcessMedia.cfg ...
[10:19:40] [INFO]::MAIN: The ./TorrentToMedia.py script completed successfully.
[SickBeard]
    #### autoProcessing for TV Series
    #### tv - category that gets called for post-processing with SB
    [[tv]]
        enabled = 0
        host = localhost
        port = 8081
        username = ""
        password = ""
        ###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######
        web_root = ""
        ssl = 0
        fork = auto
        delete_failed = 0
        # Enable/Disable linking for Torrents
        Torrent_NoLink = 0
        process_method = ""
        extract = 1
        # Set this to minimum required size to consider a media file valid (in MB)
        minSize = 0
        # Enable/Disable deleteing ignored files (samples and invalid media files)
        delete_ignored = 0
        ##### Set to path where completed downloads are found on remote server for this category
        remote_path = ""
        ##### Set to path where download client places completed downloads locally for this category
        watch_dir = ""
        delay = 0
    [[sickbeard]]
        enabled = 1
        host = 127.0.0.1
        port = 8081
        username = ""
        password = ""
        web_root = /sickbeard
        ssl = 0
        delay = 0
        watch_dir = /cache/process/sickbeard
        fork = auto
        delete_failed = 1
        Torrent_NoLink = 0
        process_method = ""
        extract = 0
echel0n commented 10 years ago

nothing holds on a manual run as manual runs are ment to act just like auto-runs do except its there to save you if something failed and needed your attention to fix first before being able to proceed.

with that being said extract = 0 should stop extract all together so I'll look into that.

ghost commented 10 years ago

here is an example, hard link first manually, then manual run with path only, extract = 0

2014-04-23 10:23:09 INFO    ::MAIN: Loading config from [/home/media/.scripts/nzbToMedia/autoProcessMedia.cfg]
2014-04-23 10:23:09 INFO    ::MAIN: Checking database structure...
2014-04-23 10:23:09 DEBUG   ::MAIN: Checking Initial Schema database upgrade
2014-04-23 10:23:09 DB      ::MAIN: nzbtomedia.db: SELECT 1 FROM sqlite_master WHERE name = ?; with args ('db_version',)
2014-04-23 10:23:09 DEBUG   ::MAIN: InitialSchema upgrade not required
2014-04-23 10:23:09 DEBUG   ::MAIN: Checking if we can use git commands: git version
2014-04-23 10:23:09 DEBUG   ::MAIN: Executing git version with your shell in /home/media/.scripts/nzbToMedia
2014-04-23 10:23:09 DEBUG   ::MAIN: git output: git version 1.8.3.2
2014-04-23 10:23:09 DEBUG   ::MAIN: git version : returned successful
2014-04-23 10:23:09 DEBUG   ::MAIN: Using: git
2014-04-23 10:23:09 DEBUG   ::MAIN: Executing git symbolic-ref -q HEAD with your shell in /home/media/.scripts/nzbToMedia
2014-04-23 10:23:09 DEBUG   ::MAIN: git output: refs/heads/dev
2014-04-23 10:23:09 DEBUG   ::MAIN: git symbolic-ref -q HEAD : returned successful
2014-04-23 10:23:09 INFO    ::MAIN: Version checking is disabled, not checking for the newest version
2014-04-23 10:23:09 INFO    ::MAIN: nzbToMedia Version:9.3 Branch:dev (Linux 3.11.0-19-generic)
2014-04-23 10:23:09 INFO    ::MAIN: #########################################################
2014-04-23 10:23:09 INFO    ::MAIN: ## ..::[./TorrentToMedia.py]::.. CLIENT:rtorrent ## STARTING
2014-04-23 10:23:09 INFO    ::MAIN: #########################################################
2014-04-23 10:23:09 DEBUG   ::MAIN: Options passed into TorrentToMedia: ['./TorrentToMedia.py', '/cache/process/sickbeard/Tv.show/']
2014-04-23 10:23:09 WARNING ::MAIN: Invalid number of arguments received from client, Switching to manual run mode ...
2014-04-23 10:23:09 WARNING ::MAIN: NzbDrone:tv is DISABLED, you can enable this in autoProcessMedia.cfg ...
2014-04-23 10:23:09 WARNING ::MAIN: CouchPotato:movie is DISABLED, you can enable this in autoProcessMedia.cfg ...
2014-04-23 10:23:09 DEBUG   ::COUCHPOTATO: No directories identified in couchpotato for post-processing
2014-04-23 10:23:09 INFO    ::COUCHPOTATO: [COUCHPOTATO] - No directories found to post-process ...
2014-04-23 10:23:09 WARNING ::MAIN: SickBeard:tv is DISABLED, you can enable this in autoProcessMedia.cfg ...
2014-04-23 10:23:09 INFO    ::MAIN: Checking database for download info for Tv.show ...
2014-04-23 10:23:09 DB      ::DB: Getting download info for Tv.show from the DB
2014-04-23 10:23:09 DB      ::MAIN: nzbtomedia.db: SELECT * FROM downloads WHERE input_name=? AND status=? with args ['Tv.show', 0]
2014-04-23 10:23:09 INFO    ::MAIN: Running SickBeard:sickbeard as a manual run for folder /cache/process/sickbeard/Tv.show ...
2014-04-23 10:23:09 DEBUG   ::MAIN: Received Directory: /cache/process/sickbeard/Tv.show | Name: Tv.show | Category: sickbeard
2014-04-23 10:23:09 DEBUG   ::MAIN: SEARCH: Found Category: sickbeard in directory structure
2014-04-23 10:23:09 INFO    ::MAIN: SEARCH: Found a unique directory Tv.show in the category directory
2014-04-23 10:23:09 DEBUG   ::MAIN: Determined Directory: /cache/process/sickbeard/Tv.show | Name: Tv.show | Category: sickbeard
2014-04-23 10:23:09 INFO    ::MAIN: Output directory set to: /cache/process/sickbeard/Tv.show
2014-04-23 10:23:09 DEBUG   ::MAIN: Scanning files in directory: /cache/process/sickbeard/Tv.show
2014-04-23 10:23:09 DEBUG   ::MAIN: Found 3 files in /cache/process/sickbeard/Tv.show
2014-04-23 10:23:09 INFO    ::COPYLINK: Hard linking /cache/process/sickbeard/Tv.show/Subs/tv.show.subs.rar to /cache/process/sickbeard/Tv.show/tv.show.subs.rar
2014-04-23 10:23:09 INFO    ::COPYLINK: /cache/process/sickbeard/Tv.show/tv.show.rar already exists. skipping ...
2014-04-23 10:23:09 INFO    ::COPYLINK: /cache/process/sickbeard/Tv.show/tv.show.nfo already exists. skipping ...
2014-04-23 10:23:09 INFO    ::MAIN: FLATTEN: Flattening directory: /cache/process/sickbeard/Tv.show
2014-04-23 10:23:09 INFO    ::REMOVER: Removing empty folders in: /cache/process/sickbeard/Tv.show
2014-04-23 10:23:09 INFO    ::REMOVER: Removing empty folders in: /cache/process/sickbeard/Tv.show/Subs
2014-04-23 10:23:09 DEBUG   ::MAIN: Checking for archives to extract in directory: /cache/process/sickbeard/Tv.show
2014-04-23 10:23:09 INFO    ::MAIN: Found compressed archive .rar for file tv.show.subs.rar
2014-04-23 10:23:09 INFO    ::MAIN: Extracting /cache/process/sickbeard/Tv.show/Subs/tv.show.subs.rar to /cache/process/sickbeard/Tv.show/Subs
2014-04-23 10:23:09 DEBUG   ::MAIN: Extracting ['unrar', 'x', '-o+', '-y'] /cache/process/sickbeard/Tv.show/Subs/tv.show.subs.rar /cache/process/sickbeard/Tv.show/Subs
2014-04-23 10:23:09 INFO    ::MAIN: EXTRACTOR: Extraction was successful for /cache/process/sickbeard/Tv.show/Subs/tv.show.subs.rar to /cache/process/sickbeard/Tv.show/Subs
2014-04-23 10:23:12 INFO    ::MAIN: Found compressed archive .rar for file tv.show.rar
2014-04-23 10:23:12 INFO    ::MAIN: Extracting /cache/process/sickbeard/Tv.show/tv.show.rar to /cache/process/sickbeard/Tv.show
2014-04-23 10:23:12 DEBUG   ::MAIN: Extracting ['unrar', 'x', '-o+', '-y'] /cache/process/sickbeard/Tv.show/tv.show.rar /cache/process/sickbeard/Tv.show
2014-04-23 10:24:49 INFO    ::MAIN: EXTRACTOR: Extraction was successful for /cache/process/sickbeard/Tv.show/tv.show.rar to /cache/process/sickbeard/Tv.show
2014-04-23 10:24:52 INFO    ::MAIN: Found compressed archive .rar for file tv.show.subs.rar
2014-04-23 10:24:52 INFO    ::MAIN: Extracting /cache/process/sickbeard/Tv.show/tv.show.subs.rar to /cache/process/sickbeard/Tv.show
2014-04-23 10:24:52 DEBUG   ::MAIN: Extracting ['unrar', 'x', '-o+', '-y'] /cache/process/sickbeard/Tv.show/tv.show.subs.rar /cache/process/sickbeard/Tv.show
2014-04-23 10:24:52 INFO    ::MAIN: EXTRACTOR: Extraction was successful for /cache/process/sickbeard/Tv.show/tv.show.subs.rar to /cache/process/sickbeard/Tv.show
2014-04-23 10:24:55 INFO    ::MAIN: Removing extracted archive tv.show.rar from folder /cache/process/sickbeard/Tv.show/Subs ...
2014-04-23 10:24:56 INFO    ::MAIN: Removing extracted archive tv.show.subs.rar from folder /cache/process/sickbeard/Tv.show/Subs ...
2014-04-23 10:24:57 INFO    ::MAIN: Removing extracted archive tv.show.rar from folder /cache/process/sickbeard/Tv.show ...
2014-04-23 10:24:58 INFO    ::MAIN: Removing extracted archive tv.show.subs.rar from folder /cache/process/sickbeard/Tv.show ...
2014-04-23 10:24:59 DEBUG   ::MAIN: Found media file: tv.show.mkv
2014-04-23 10:24:59 DEBUG   ::MAIN: Found 1 media files
2014-04-23 10:24:59 INFO    ::MAIN: Calling Sick-Beard:sickbeard to post-process: Tv.show
2014-04-23 10:24:59 INFO    ::MAIN: Attempting to auto-detect sickbeard fork
2014-04-23 10:25:02 INFO    ::MAIN: SickBeard:sickbeard fork auto-detection successful ...
2014-04-23 10:25:02 INFO    ::MAIN: SickBeard:sickbeard fork set to failed-torrent
2014-04-23 10:25:02 INFO    ::TRANSCODER: Checking [tv.show.mkv] for corruption, please stand by ...
2014-04-23 10:25:02 INFO    ::TRANSCODER: SUCCESS: [tv.show.mkv] has no corruption.
2014-04-23 10:25:02 POSTPROCESS::SICKBEARD: SUCCESS: The download succeeded, sending a post-process request
2014-04-23 10:25:02 DEBUG   ::SICKBEARD: Opening URL: http://127.0.0.1:8081/sickbeard/home/postprocess/processEpisode
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Processing folder /cache/process/sickbeard/Tv.show
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: TV_DOWNLOAD_DIR: /cache/process/sickbeard
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: PostProcessing Path: /cache/process/sickbeard
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: PostProcessing Dirs: [u'Tv.show']
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: PostProcessing Files: []
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: PostProcessing VideoFiles: []
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: PostProcessing RarContent: []
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: PostProcessing VideoInRar: []
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Processing folder Tv.show
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.subs.sfv
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.idx
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting folder /cache/process/sickbeard/Tv.show/Subs
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Processing /cache/process/sickbeard/Tv.show/tv.show.mkv (Tv.show)
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Found result in history: (123456, 6, [])
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Parsed Tv.show into TV Show - S6E5 - 1080p.BluRay.x264 (ROVERS) [ABD: False]
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Checking scene exceptions for a match on TV Show
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Looking up TV Show in the DB
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Lookup successful, using tvdb id 123456
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Loading show object for tvdb_id 123456
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Retrieving episode object for 6x5
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Looking up quality for name Tv.show, got 1080p BluRay
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: SB snatched this episode so I'm marking it as priority
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Is ep a priority download: True
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: File /storage/Media/TV Series/TV Show/Season 06/TV Show - S06E05 - Episode Name - 1080p BluRay.mkv is smaller than /cache/process/sickbeard/Tv.show/tv.show.mkv
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: This download is marked a priority download so I'm going to replace an existing file if I find one
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file /storage/Media/TV Series/TV Show/Season 06/TV Show - S06E05 - Episode Name - 1080p BluRay.mkv
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file /storage/Media/TV Series/TV Show/Season 06/TV Show - S06E05 - Episode Name - 1080p BluRay.en.srt
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file /storage/Media/TV Series/TV Show/Season 06/TV Show - S06E05 - Episode Name - 1080p BluRay.pt.srt
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Found release name Tv.show
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Destination folder for this episode: /storage/Media/TV Series/TV Show/Season 06
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Moving file from /cache/process/sickbeard/Tv.show/tv.show.mkv to /storage/Media/TV Series/TV Show/Season 06/TV Show - S06E05 - Episode Name - 1080p BluRay.mkv
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Moving file from /cache/process/sickbeard/Tv.show/tv.show.idx to /storage/Media/TV Series/TV Show/Season 06/TV Show - S06E05 - Episode Name - 1080p BluRay.idx
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Processing succeeded for /cache/process/sickbeard/Tv.show/tv.show.mkv
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r02
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r12
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r13
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.nfo
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r29
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r44
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r28
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r34
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r35
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r36
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r37
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r30
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r31
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r32
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r19
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r16
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r17
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r14
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r15
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r38
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r39
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r11
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r42
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r27
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r26
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r10
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r45
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r41
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r40
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r43
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r18
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r09
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r08
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r25
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r24
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r23
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r22
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r21
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r20
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r01
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r00
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r03
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r33
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r05
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r04
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r07
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.r06
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting file tv.show.sfv
2014-04-23 10:26:27 POSTPROCESS::SICKBEARD: Deleting folder /cache/process/sickbeard/Tv.show
2014-04-23 10:26:27 INFO    ::CLEANDIRS: Cleaning processing directories ...
2014-04-23 10:26:27 DEBUG   ::COUCHPOTATO: No directories identified in couchpotato for post-processing
2014-04-23 10:26:27 DEBUG   ::SICKBEARD: No directories identified in sickbeard for post-processing
2014-04-23 10:26:27 WARNING ::MAIN: HeadPhones:music is DISABLED, you can enable this in autoProcessMedia.cfg ...
2014-04-23 10:26:27 WARNING ::MAIN: Gamez:games is DISABLED, you can enable this in autoProcessMedia.cfg ...
2014-04-23 10:26:27 WARNING ::MAIN: Mylar:comics is DISABLED, you can enable this in autoProcessMedia.cfg ...
2014-04-23 10:26:27 INFO    ::MAIN: The ./TorrentToMedia.py script completed successfully.
echel0n commented 10 years ago

Ok new release out, please test and let me know if extraction issues are resolved.

ghost commented 10 years ago

respects extract, but now fails with nothing found for media files (archive files)

echel0n commented 10 years ago

ok think I found the issue for linking, and I can fix the not finding anything issue either. give me 2 secs

ghost commented 10 years ago

ok.. turned automated back on with rtorrent - extract = 0

not finding media files - still not working :-(

2014-04-23 11:06:15 INFO    ::MAIN: Loading config from [/home/media/.scripts/nzbToMedia/autoProcessMedia.cfg]
2014-04-23 11:06:15 INFO    ::MAIN: Checking database structure...
2014-04-23 11:06:15 DEBUG   ::MAIN: Checking Initial Schema database upgrade
2014-04-23 11:06:15 DB      ::MAIN: nzbtomedia.db: SELECT 1 FROM sqlite_master WHERE name = ?; with args ('db_version',)
2014-04-23 11:06:15 DEBUG   ::MAIN: InitialSchema upgrade not required
2014-04-23 11:06:15 DEBUG   ::MAIN: Checking if we can use git commands: git version
2014-04-23 11:06:15 DEBUG   ::MAIN: Executing git version with your shell in /home/media/.scripts/nzbToMedia
2014-04-23 11:06:15 DEBUG   ::MAIN: git output: git version 1.8.3.2
2014-04-23 11:06:15 DEBUG   ::MAIN: git version : returned successful
2014-04-23 11:06:15 DEBUG   ::MAIN: Using: git
2014-04-23 11:06:15 DEBUG   ::MAIN: Executing git symbolic-ref -q HEAD with your shell in /home/media/.scripts/nzbToMedia
2014-04-23 11:06:15 DEBUG   ::MAIN: git output: refs/heads/dev
2014-04-23 11:06:15 DEBUG   ::MAIN: git symbolic-ref -q HEAD : returned successful
2014-04-23 11:06:15 INFO    ::MAIN: Version checking is disabled, not checking for the newest version
2014-04-23 11:06:15 INFO    ::MAIN: nzbToMedia Version:9.3 Branch:dev (Linux 3.11.0-19-generic)
2014-04-23 11:06:15 INFO    ::MAIN: #########################################################
2014-04-23 11:06:15 INFO    ::MAIN: ## ..::[/home/media/.scripts/nzbToMedia/TorrentToMedia.py]::.. CLIENT:rtorrent ## STARTING
2014-04-23 11:06:15 INFO    ::MAIN: #########################################################
2014-04-23 11:06:15 DEBUG   ::MAIN: Options passed into TorrentToMedia: ['/home/media/.scripts/nzbToMedia/TorrentToMedia.py', '/cache/torrent/download/sickbeard/TV.Show', 'TV.Show', 'sickbeard', '76799687117068CD9FEFEF8EA7E5A68EE907C2FE']
2014-04-23 11:06:15 DEBUG   ::MAIN: Adding TORRENT download info for directory /cache/torrent/download/sickbeard/TV.Show to database
2014-04-23 11:06:15 DB      ::MAIN: nzbtomedia.db: UPDATE downloads SET status = ?, client_agent = ?, last_update = ?, input_id = ?, input_hash = ?, input_name = ? WHERE input_directory = ? with args [0, 'rtorrent', 735346, '76799687117068CD9FEFEF8EA7E5A68EE907C2FE', '76799687117068CD9FEFEF8EA7E5A68EE907C2FE', 'TV.Show', '/cache/torrent/download/sickbeard/TV.Show']
2014-04-23 11:06:15 DB      ::MAIN: nzbtomedia.db: INSERT INTO downloads (status, client_agent, last_update, input_id, input_hash, input_name, input_directory) VALUES (?, ?, ?, ?, ?, ?, ?) with args [0, 'rtorrent', 735346, '76799687117068CD9FEFEF8EA7E5A68EE907C2FE', '76799687117068CD9FEFEF8EA7E5A68EE907C2FE', 'TV.Show', '/cache/torrent/download/sickbeard/TV.Show']
2014-04-23 11:06:15 DEBUG   ::MAIN: Received Directory: /cache/torrent/download/sickbeard/TV.Show | Name: TV.Show | Category: sickbeard
2014-04-23 11:06:15 DEBUG   ::MAIN: SEARCH: Found Category: sickbeard in directory structure
2014-04-23 11:06:15 INFO    ::MAIN: SEARCH: Found a unique directory TV.Show in the category directory
2014-04-23 11:06:15 DEBUG   ::MAIN: Determined Directory: /cache/torrent/download/sickbeard/TV.Show | Name: TV.Show | Category: sickbeard
2014-04-23 11:06:15 DEBUG   ::MAIN: Stoping torrent TV.Show in rtorrent while processing
2014-04-23 11:06:20 INFO    ::MAIN: Output directory set to: /cache/process/sickbeard/TV.Show
2014-04-23 11:06:20 DEBUG   ::MAIN: Scanning files in directory: /cache/torrent/download/sickbeard/TV.Show
2014-04-23 11:06:20 DEBUG   ::MAIN: Found 4 files in /cache/torrent/download/sickbeard/TV.Show
2014-04-23 11:06:20 INFO    ::COPYLINK: Hard linking /cache/torrent/download/sickbeard/TV.Show/Subs/tv.show.subs.rar to /cache/process/sickbeard/TV.Show/tv.show.subs.rar
2014-04-23 11:06:20 INFO    ::COPYLINK: Hard linking /cache/torrent/download/sickbeard/TV.Show/Proof/tv.show.proof.jpg to /cache/process/sickbeard/TV.Show/tv.show.proof.jpg
2014-04-23 11:06:20 INFO    ::COPYLINK: Hard linking /cache/torrent/download/sickbeard/TV.Show/tv.show.rar to /cache/process/sickbeard/TV.Show/tv.show.rar
2014-04-23 11:06:20 INFO    ::COPYLINK: Hard linking /cache/torrent/download/sickbeard/TV.Show/tv.show.nfo to /cache/process/sickbeard/TV.Show/tv.show.nfo
2014-04-23 11:06:20 INFO    ::MAIN: FLATTEN: Flattening directory: /cache/process/sickbeard/TV.Show
2014-04-23 11:06:20 INFO    ::REMOVER: Removing empty folders in: /cache/process/sickbeard/TV.Show
2014-04-23 11:06:20 WARNING ::MAIN: Found no media files in /cache/process/sickbeard/TV.Show
2014-04-23 11:06:20 ERROR   ::MAIN: Something failed! Please check logs. Exiting
2014-04-23 11:06:20 ERROR   ::MAIN: A problem was reported in the /home/media/.scripts/nzbToMedia/TorrentToMedia.py script.
echel0n commented 10 years ago

Please confirm this is now fixed, thanks

ghost commented 10 years ago
Traceback (most recent call last):
  File "./TorrentToMedia.py", line 7, in <module>
    import nzbtomedia
  File "/home/media/.scripts/nzbToMedia/nzbtomedia/__init__.py", line 23, in <module>
    from nzbtomedia.autoProcess.autoProcessComics import autoProcessComics
  File "/home/media/.scripts/nzbToMedia/nzbtomedia/autoProcess/autoProcessComics.py", line 5, in <module>
    from nzbtomedia.nzbToMediaUtil import convert_to_ascii
  File "/home/media/.scripts/nzbToMedia/nzbtomedia/nzbToMediaUtil.py", line 10, in <module>
    import beets
  File "/home/media/.scripts/nzbToMedia/libs/beets/__init__.py", line 22, in <module>
    from beets.util import confit
  File "/home/media/.scripts/nzbToMedia/libs/beets/util/confit.py", line 22, in <module>
    import yaml
ImportError: No module named yaml
ghost commented 10 years ago

got that.. one sec.

echel0n commented 10 years ago

ok new release is out so try thanks :)

ghost commented 10 years ago

couchpotato manual run having same issues, extract =1 doesn't do anything, then fails on video files. back to sickbeard testing.

sickbeard same thing.

ghost commented 10 years ago
2014-04-23 20:08:55 INFO    ::MAIN: Loading config from [/home/media/.scripts/nzbToMedia/autoProcessMedia.cfg]
2014-04-23 20:08:55 INFO    ::MAIN: Checking database structure...
2014-04-23 20:08:55 DEBUG   ::MAIN: Checking Initial Schema database upgrade
2014-04-23 20:08:55 DB      ::MAIN: nzbtomedia.db: SELECT 1 FROM sqlite_master WHERE name = ?; with args ('db_version',)
2014-04-23 20:08:55 DEBUG   ::MAIN: InitialSchema upgrade not required
2014-04-23 20:08:55 DEBUG   ::MAIN: Checking if we can use git commands: git version
2014-04-23 20:08:55 DEBUG   ::MAIN: Executing git version with your shell in /home/media/.scripts/nzbToMedia
2014-04-23 20:08:55 DEBUG   ::MAIN: git output: git version 1.8.3.2
2014-04-23 20:08:55 DEBUG   ::MAIN: git version : returned successful
2014-04-23 20:08:55 DEBUG   ::MAIN: Using: git
2014-04-23 20:08:55 DEBUG   ::MAIN: Executing git symbolic-ref -q HEAD with your shell in /home/media/.scripts/nzbToMedia
2014-04-23 20:08:55 DEBUG   ::MAIN: git output: refs/heads/dev
2014-04-23 20:08:55 DEBUG   ::MAIN: git symbolic-ref -q HEAD : returned successful
2014-04-23 20:08:55 INFO    ::MAIN: Version checking is disabled, not checking for the newest version
2014-04-23 20:08:55 INFO    ::MAIN: nzbToMedia Version:9.3 Branch:dev (Linux 3.11.0-19-generic)
2014-04-23 20:08:55 INFO    ::MAIN: #########################################################
2014-04-23 20:08:55 INFO    ::MAIN: ## ..::[./TorrentToMedia.py]::.. CLIENT:rtorrent ## STARTING
2014-04-23 20:08:55 INFO    ::MAIN: #########################################################
2014-04-23 20:08:55 DEBUG   ::MAIN: Options passed into TorrentToMedia: ['./TorrentToMedia.py', '/cache/process/couchpotato/Movie.Name/']
2014-04-23 20:08:55 WARNING ::MAIN: Invalid number of arguments received from client, Switching to manual run mode ...
2014-04-23 20:08:55 WARNING ::MAIN: NzbDrone:tv is DISABLED, you can enable this in autoProcessMedia.cfg ...
2014-04-23 20:08:55 WARNING ::MAIN: CouchPotato:movie is DISABLED, you can enable this in autoProcessMedia.cfg ...
2014-04-23 20:08:55 INFO    ::MAIN: Checking database for download info for Movie.Name ...
2014-04-23 20:08:55 DB      ::DB: Getting download info for Movie.Name from the DB
2014-04-23 20:08:55 DB      ::MAIN: nzbtomedia.db: SELECT * FROM downloads WHERE input_name=? AND status=? with args ['Movie.Name', 0]
2014-04-23 20:08:55 INFO    ::MAIN: Running CouchPotato:couchpotato as a manual run for folder /cache/process/couchpotato/Movie.Name ...
2014-04-23 20:08:55 DEBUG   ::MAIN: Received Directory: /cache/process/couchpotato/Movie.Name | Name: Movie.Name | Category: couchpotato
2014-04-23 20:08:55 DEBUG   ::MAIN: SEARCH: Found Category: couchpotato in directory structure
2014-04-23 20:08:55 INFO    ::MAIN: SEARCH: Found a unique directory Movie.Name in the category directory
2014-04-23 20:08:55 DEBUG   ::MAIN: Determined Directory: /cache/process/couchpotato/Movie.Name | Name: Movie.Name | Category: couchpotato
2014-04-23 20:08:55 INFO    ::MAIN: Output directory set to: /cache/process/couchpotato/Movie.Name
2014-04-23 20:08:55 DEBUG   ::MAIN: Scanning files in directory: /cache/process/couchpotato/Movie.Name
2014-04-23 20:08:55 DEBUG   ::MAIN: Found 2 files in /cache/process/couchpotato/Movie.Name
2014-04-23 20:08:55 INFO    ::COPYLINK: Movie.Name.sub already exists. skipping ...
2014-04-23 20:08:55 INFO    ::COPYLINK: Movie.Name.idx already exists. skipping ...
2014-04-23 20:08:55 INFO    ::MAIN: FLATTEN: Flattening directory: /cache/process/couchpotato/Movie.Name
2014-04-23 20:08:55 INFO    ::REMOVER: Removing empty folders in: /cache/process/couchpotato/Movie.Name
2014-04-23 20:08:55 WARNING ::MAIN: Found no media files in /cache/process/couchpotato/Movie.Name
2014-04-23 20:08:55 ERROR   ::MAIN: Something failed! Please check logs. Exiting
2014-04-23 20:08:55 ERROR   ::MAIN: A problem was reported when trying to manually run CouchPotato:couchpotato.
2014-04-23 20:08:55 WARNING ::MAIN: SickBeard:tv is DISABLED, you can enable this in autoProcessMedia.cfg ...
2014-04-23 20:08:55 DEBUG   ::SICKBEARD: No directories identified in sickbeard for post-processing
2014-04-23 20:08:55 INFO    ::SICKBEARD: [SICKBEARD] - No directories found to post-process ...
2014-04-23 20:08:55 WARNING ::MAIN: HeadPhones:music is DISABLED, you can enable this in autoProcessMedia.cfg ...
2014-04-23 20:08:55 WARNING ::MAIN: Gamez:games is DISABLED, you can enable this in autoProcessMedia.cfg ...
2014-04-23 20:08:55 WARNING ::MAIN: Mylar:comics is DISABLED, you can enable this in autoProcessMedia.cfg ...
2014-04-23 20:08:55 ERROR   ::MAIN: A problem was reported in the ./TorrentToMedia.py script.
2014-04-23 20:10:38 INFO    ::MAIN: Loading config from [/home/media/.scripts/nzbToMedia/autoProcessMedia.cfg]
2014-04-23 20:10:38 INFO    ::MAIN: Checking database structure...
2014-04-23 20:10:38 DEBUG   ::MAIN: Checking Initial Schema database upgrade
2014-04-23 20:10:38 DB      ::MAIN: nzbtomedia.db: SELECT 1 FROM sqlite_master WHERE name = ?; with args ('db_version',)
2014-04-23 20:10:38 DEBUG   ::MAIN: InitialSchema upgrade not required
2014-04-23 20:10:38 DEBUG   ::MAIN: Checking if we can use git commands: git version
2014-04-23 20:10:38 DEBUG   ::MAIN: Executing git version with your shell in /home/media/.scripts/nzbToMedia
2014-04-23 20:10:38 DEBUG   ::MAIN: git output: git version 1.8.3.2
2014-04-23 20:10:38 DEBUG   ::MAIN: git version : returned successful
2014-04-23 20:10:38 DEBUG   ::MAIN: Using: git
2014-04-23 20:10:38 DEBUG   ::MAIN: Executing git symbolic-ref -q HEAD with your shell in /home/media/.scripts/nzbToMedia
2014-04-23 20:10:38 DEBUG   ::MAIN: git output: refs/heads/dev
2014-04-23 20:10:38 DEBUG   ::MAIN: git symbolic-ref -q HEAD : returned successful
2014-04-23 20:10:38 INFO    ::MAIN: Version checking is disabled, not checking for the newest version
2014-04-23 20:10:38 INFO    ::MAIN: nzbToMedia Version:9.3 Branch:dev (Linux 3.11.0-19-generic)
2014-04-23 20:10:38 INFO    ::MAIN: #########################################################
2014-04-23 20:10:38 INFO    ::MAIN: ## ..::[./TorrentToMedia.py]::.. CLIENT:rtorrent ## STARTING
2014-04-23 20:10:38 INFO    ::MAIN: #########################################################
2014-04-23 20:10:38 DEBUG   ::MAIN: Options passed into TorrentToMedia: ['./TorrentToMedia.py', '/cache/process/sickbeard/TV.Show/']
2014-04-23 20:10:38 WARNING ::MAIN: Invalid number of arguments received from client, Switching to manual run mode ...
2014-04-23 20:10:38 WARNING ::MAIN: NzbDrone:tv is DISABLED, you can enable this in autoProcessMedia.cfg ...
2014-04-23 20:10:38 WARNING ::MAIN: CouchPotato:movie is DISABLED, you can enable this in autoProcessMedia.cfg ...
2014-04-23 20:10:38 INFO    ::MAIN: Checking database for download info for Movie.Name ...
2014-04-23 20:10:38 DB      ::DB: Getting download info for Movie.Name from the DB
2014-04-23 20:10:38 DB      ::MAIN: nzbtomedia.db: SELECT * FROM downloads WHERE input_name=? AND status=? with args ['Movie.Name', 0]
2014-04-23 20:10:38 INFO    ::MAIN: Running CouchPotato:couchpotato as a manual run for folder /cache/process/couchpotato/Movie.Name ...
2014-04-23 20:10:38 DEBUG   ::MAIN: Received Directory: /cache/process/couchpotato/Movie.Name | Name: Movie.Name | Category: couchpotato
2014-04-23 20:10:38 DEBUG   ::MAIN: SEARCH: Found Category: couchpotato in directory structure
2014-04-23 20:10:38 INFO    ::MAIN: SEARCH: Found a unique directory Movie.Name in the category directory
2014-04-23 20:10:38 DEBUG   ::MAIN: Determined Directory: /cache/process/couchpotato/Movie.Name | Name: Movie.Name | Category: couchpotato
2014-04-23 20:10:38 INFO    ::MAIN: Output directory set to: /cache/process/couchpotato/Movie.Name
2014-04-23 20:10:38 DEBUG   ::MAIN: Scanning files in directory: /cache/process/couchpotato/Movie.Name
2014-04-23 20:10:38 DEBUG   ::MAIN: Found 2 files in /cache/process/couchpotato/Movie.Name
2014-04-23 20:10:38 INFO    ::COPYLINK: Movie.Name.sub already exists. skipping ...
2014-04-23 20:10:38 INFO    ::COPYLINK: Movie.Name.idx already exists. skipping ...
2014-04-23 20:10:38 INFO    ::MAIN: FLATTEN: Flattening directory: /cache/process/couchpotato/Movie.Name
2014-04-23 20:10:38 INFO    ::REMOVER: Removing empty folders in: /cache/process/couchpotato/Movie.Name
2014-04-23 20:10:38 WARNING ::MAIN: Found no media files in /cache/process/couchpotato/Movie.Name
2014-04-23 20:10:38 ERROR   ::MAIN: Something failed! Please check logs. Exiting
2014-04-23 20:10:38 ERROR   ::MAIN: A problem was reported when trying to manually run CouchPotato:couchpotato.
2014-04-23 20:10:38 WARNING ::MAIN: SickBeard:tv is DISABLED, you can enable this in autoProcessMedia.cfg ...
2014-04-23 20:10:38 INFO    ::MAIN: Checking database for download info for TV.Show ...
2014-04-23 20:10:38 DB      ::DB: Getting download info for TV.Show from the DB
2014-04-23 20:10:38 DB      ::MAIN: nzbtomedia.db: SELECT * FROM downloads WHERE input_name=? AND status=? with args ['TV.Show', 0]
2014-04-23 20:10:38 INFO    ::MAIN: Running SickBeard:sickbeard as a manual run for folder /cache/process/sickbeard/TV.Show ...
2014-04-23 20:10:38 DEBUG   ::MAIN: Received Directory: /cache/process/sickbeard/TV.Show | Name: TV.Show | Category: sickbeard
2014-04-23 20:10:38 DEBUG   ::MAIN: SEARCH: Found Category: sickbeard in directory structure
2014-04-23 20:10:38 INFO    ::MAIN: SEARCH: Found a unique directory TV.Show in the category directory
2014-04-23 20:10:38 DEBUG   ::MAIN: Determined Directory: /cache/process/sickbeard/TV.Show | Name: TV.Show | Category: sickbeard
2014-04-23 20:10:38 INFO    ::MAIN: Output directory set to: /cache/process/sickbeard/TV.Show
2014-04-23 20:10:38 DEBUG   ::MAIN: Scanning files in directory: /cache/process/sickbeard/TV.Show
2014-04-23 20:10:38 DEBUG   ::MAIN: Found 3 files in /cache/process/sickbeard/TV.Show
2014-04-23 20:10:38 INFO    ::COPYLINK: Hard linking /cache/process/sickbeard/TV.Show/Subs/tv.show.subs.rar to /cache/process/sickbeard/TV.Show/tv.show.subs.rar
2014-04-23 20:10:38 INFO    ::COPYLINK: tv.show.nfo already exists. skipping ...
2014-04-23 20:10:38 INFO    ::COPYLINK: tv.show.rar already exists. skipping ...
2014-04-23 20:10:38 INFO    ::MAIN: FLATTEN: Flattening directory: /cache/process/sickbeard/TV.Show
2014-04-23 20:10:38 INFO    ::REMOVER: Removing empty folders in: /cache/process/sickbeard/TV.Show
2014-04-23 20:10:38 INFO    ::REMOVER: Removing empty folders in: /cache/process/sickbeard/TV.Show/Subs
2014-04-23 20:10:38 WARNING ::MAIN: Found no media files in /cache/process/sickbeard/TV.Show
2014-04-23 20:10:38 ERROR   ::MAIN: Something failed! Please check logs. Exiting
2014-04-23 20:10:38 ERROR   ::MAIN: A problem was reported when trying to manually run SickBeard:sickbeard.
2014-04-23 20:10:38 WARNING ::MAIN: HeadPhones:music is DISABLED, you can enable this in autoProcessMedia.cfg ...
2014-04-23 20:10:38 WARNING ::MAIN: Gamez:games is DISABLED, you can enable this in autoProcessMedia.cfg ...
2014-04-23 20:10:38 WARNING ::MAIN: Mylar:comics is DISABLED, you can enable this in autoProcessMedia.cfg ...
2014-04-23 20:10:38 ERROR   ::MAIN: A problem was reported in the ./TorrentToMedia.py script.
ghost commented 10 years ago
# nzbToMedia Configuration
# For more information, visit https://github.com/clinton-hall/nzbToMedia/wiki

[General]
    # Enable/Disable update notifications
    version_notify = 0
    # Enable/Disable automatic updates
    auto_update = 0
    # Set to where your git executable is located
    git_path = ""
    # GitHUB user for repo
    git_user = ""
    # GitHUB branch for repo
    git_branch = dev
    force_clean = 1
    # Enable/Disable logging debug messages to nzbtomedia.log
    log_debug = 1
    # Enable/Disable logging database messages to nzbtomedia.log
    log_db = 1
    # Set to where your ffmpeg/ffprobe executables are located
    ffmpeg_path = ""

[CouchPotato]
    #### autoProcessing for Movies
    #### movie - category that gets called for post-processing with CPS
    [[movie]]
        enabled = 0
        apikey = ""
        host = localhost
        port = 5050
        ###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######
        ssl = 0
        web_root = ""
        # Enable/Disable linking for Torrents
        Torrent_NoLink = 0
        method = renamer
        delete_failed = 0
        wait_for = 2
        extract = 1
        # Set this to minimum required size to consider a media file valid (in MB)
        minSize = 0
        # Enable/Disable deleteing ignored files (samples and invalid media files)
        delete_ignored = 0
        ##### Set to path where completed downloads are found on remote server for this category
        remote_path = ""
        ##### Set to path where download client places completed downloads locally for this category
        watch_dir = ""
        delay = 65
    [[couchpotato]]
        enabled = 1
        apikey = 123456
        host = 127.0.0.1
        port = 5001
        ssl = 0
        web_root = /couchpotato
        delay = 65
        method = renamer
        delete_failed = 1
        wait_for = 2
        watch_dir = /cache/process/couchpotato
        extract = 1

[SickBeard]
    #### autoProcessing for TV Series
    #### tv - category that gets called for post-processing with SB
    [[tv]]
        enabled = 0
        host = localhost
        port = 8081
        username = ""
        password = ""
        ###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######
        web_root = ""
        ssl = 0
        fork = auto
        delete_failed = 0
        # Enable/Disable linking for Torrents
        Torrent_NoLink = 0
        process_method = ""
        extract = 1
        # Set this to minimum required size to consider a media file valid (in MB)
        minSize = 0
        # Enable/Disable deleteing ignored files (samples and invalid media files)
        delete_ignored = 0
        ##### Set to path where completed downloads are found on remote server for this category
        remote_path = ""
        ##### Set to path where download client places completed downloads locally for this category
        watch_dir = ""
        delay = 0
    [[sickbeard]]
        enabled = 1
        host = 127.0.0.1
        port = 8081
        username = ""
        password = ""
        web_root = /sickbeard
        ssl = 0
        delay = 0
        watch_dir = /cache/process/sickbeard
        fork = auto
        delete_failed = 1
        Torrent_NoLink = 0
        process_method = ""
        extract = 1
echel0n commented 10 years ago

what are the extensions of the files located in those folders and what is set for your exstensions section ?

ghost commented 10 years ago

couchpotato is encoded; there is a par2 and a bunch of .XX files.

sickbeard is .rar and many .rXX

[Extensions]
    compressedExtensions = .zip, .rar, .7z, .gz, .bz, .tar, .arj, .1, .01, .001
    mediaExtensions = .mkv, .avi, .divx, .xvid, .mov, .wmv, .mp4, .mpg, .mpeg, .vob, .iso, .m4v
    audioExtensions = .mp3, .aac, .ogg, .ape, .m4a, .asf, .wma, .flac
    metaExtensions = .nfo, .sub, .idx, .srt, .jpg, .gif
echel0n commented 10 years ago

What settings do you have in the [EXTENSIONS] section ?

ghost commented 10 years ago

couchpotato one i'm going to call broken. encoding with SAB didn't work.

sickbeard one should work. rar and many rXX.

echel0n commented 10 years ago

yes but I need to see your [EXTENSIONS] section in your cfg file please

ghost commented 10 years ago

sorry, above

echel0n commented 10 years ago

Ok new release, please test