{"action":"reopened","issue":{"url":"https://api.github.com/repos/clinton-hall/nzbToMedia/issues/980","repository_url":"https://api.github.com/repos/clinton-hall/nzbToMedia","labels_url":"https://api.github.com/repos/clinton-hall/nzbToMedia/issues/980/labels{/name}","comments_url":"https://api.github.com/repos/clinton-hall/nzbToMedia/issues/980/comments","events_url":"https://api.github.com/repos/clinton-hall/nzbToMedia/issues/980/events","html_url":"https://github.com/clinton-hall/nzbToMedia/issues/980","id":138260488,"number":980,"title":"Something is broken but I don't know what","user":{"login":"fidofido300","id":17621610,"avatar_url":"https://avatars.githubusercontent.com/u/17621610?v=3","gravatar_id":"","url":"https://api.github.com/users/fidofido300","html_url":"https://github.com/fidofido300","followers_url":"https://api.github.com/users/fidofido300/followers","following_url":"https://api.github.com/users/fidofido300/following{/other_user}","gists_url":"https://api.github.com/users/fidofido300/gists{/gist_id}","starred_url":"https://api.github.com/users/fidofido300/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fidofido300/subscriptions","organizations_url":"https://api.github.com/users/fidofido300/orgs","repos_url":"https://api.github.com/users/fidofido300/repos","events_url":"https://api.github.com/users/fidofido300/events{/privacy}","received_events_url":"https://api.github.com/users/fidofido300/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-03T18:33:28Z","updated_at":"2016-03-14T22:28:37Z","closed_at":null,"body":"Following is the Log entry for my proplem\r\nWhen SickRage Founds Torrent it sends to utorrent \r\nafter Finish Utorrent calls torrenttoMedia \r\nafter script run if the file is under series.sxx.exx.name\\series.sxx.exx.name\\file.mp4 file processed and added to its directory\r\nbut if its extracted from a archive and is under series.sxx.exx.name\\file.mp4 it fails and downloaded from another source AGAIN!\r\n\r\nI would appreciate if you can look in to it.\r\n\r\nutorrent call\r\npython c:\\Sickrage\\SickRage\\contrib\\nzbToMedia\\TorrentToMedia.py \"%D\" \"%N\" \"%L\" \"%I\"\r\n\r\n_Nzbtomedia config is_ \r\n\r\n_# nzbToMedia Configuration\r\n_# For more information, visit https://github.com/clinton-hall/nzbToMedia/wiki\r\n\r\n[General]\r\n    # Enable/Disable update notifications\r\n    version_notify = 1\r\n    # Enable/Disable automatic updates\r\n    auto_update = 1\r\n    # Set to the full path to the git executable\r\n    git_path = c:\\Sickrage\\Git\\cmd\\git.exe\r\n    # GitHUB user for repo\r\n    git_user = \"\"\r\n    # GitHUB branch for repo\r\n    git_branch = nightly\r\n    # Enable/Disable forceful cleaning of leftover files following postprocess \r\n    force_clean = 0\r\n    # Enable/Disable logging debug messages to nzbtomedia.log\r\n    log_debug = 1\r\n    # Enable/Disable logging database messages to nzbtomedia.log\r\n    log_db = 1\r\n    # Enable/Disable logging environment variables to debug nzbtomedia.log (helpful to track down errors calling external tools.)\r\n    log_env = 0\r\n    # Enable/Disable logging git output to debug nzbtomedia.log (helpful to track down update failures.)\r\n    log_git = 1\r\n    # Set to the directory where your ffmpeg/ffprobe executables are located\r\n    ffmpeg_path = c:\\Sickrage\\ffmpeg\\bin\r\n    # Enable/Disable media file checking using ffprobe.\r\n    check_media = 1\r\n    # Enable/Disable a safety check to ensure we don't process all downloads in the default_downloadDirectories by mistake.\r\n    safe_mode = 1\r\n\r\n[Posix]\r\n    ### Process priority setting for External commands (Extractor and Transcoder) on Posix (Unix/Linux/OSX) systems.\r\n    # Set the Niceness value for the nice command. These range from -20 (most favorable to the process) to 19 (least favorable to the process).\r\n    niceness = 10\r\n    # Set the ionice scheduling class. 0 for none, 1 for real time, 2 for best-effort, 3 for idle.\r\n    ionice_class = 2\r\n    # Set the ionice scheduling class data. This defines the class data, if the class accepts an argument. For real time and best-effort, 0-7 is valid data.\r\n    ionice_classdata = 4\r\n\r\n[CouchPotato]\r\n    #### autoProcessing for Movies\r\n    #### movie - category that gets called for post-processing with CPS\r\n    [[movie]]\r\n        enabled = 0\r\n        apikey = \"\"\r\n        host = localhost\r\n        port = 5050\r\n        ###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######\r\n        ssl = 0\r\n        web_root = \"\"\r\n        # Enable/Disable linking for Torrents\r\n        Torrent_NoLink = 0\r\n        keep_archive = 1\r\n        method = renamer\r\n        delete_failed = 0\r\n        wait_for = 2\r\n        extract = 1\r\n        # Set this to minimum required size to consider a media file valid (in MB)\r\n        minSize = 0\r\n        # Enable/Disable deleting ignored files (samples and invalid media files)\r\n        delete_ignored = 0\r\n        ##### Enable if Couchpotato is on a remote server for this category\r\n        remote_path = 0\r\n        ##### Set to path where download client places completed downloads locally for this category\r\n        watch_dir = \"\"\r\n    [[movies]]\r\n        enabled = 1\r\n        apikey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\n        host = localhost\r\n        port = 5050\r\n        ssl = 0\r\n        web_root = \"\"\r\n        Torrent_NoLink = 0\r\n        method = renamer\r\n        delete_failed = 1\r\n        wait_for = 5\r\n        extract = 1\r\n        minSize = 100\r\n        delete_ignored = 0\r\n        remote_path = 0\r\n        watch_dir = \"\"\r\n\r\n[SickBeard]\r\n    #### autoProcessing for TV Series\r\n    #### tv - category that gets called for post-processing with SB\r\n    [[tv]]\r\n        enabled = 1\r\n        host = localhost\r\n        port = 8081\r\n        username = Sickbeard\r\n        password = xxxxxxx\r\n        ###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######\r\n        web_root = \"\"\r\n        ssl = 0\r\n        fork = auto\r\n        delete_failed = 0\r\n        # Enable/Disable linking for Torrents\r\n        Torrent_NoLink = 0\r\n        keep_archive = 1\r\n        process_method = \"\"\r\n        # force processing of already processed content when running a manual scan.\r\n        force = 0\r\n        # tell SickRage to delete all source files after processing.\r\n        delete_on = 0\r\n        extract = 1\r\n        nzbExtractionBy = Downloader\r\n        # Set this to minimum required size to consider a media file valid (in MB)\r\n        minSize = 100\r\n        # Enable/Disable deleting ignored files (samples and invalid media files)\r\n        delete_ignored = 1\r\n        ##### Enable if SickBeard is on a remote server for this category\r\n        remote_path = 0\r\n        ##### Set to path where download client places completed downloads locally for this category\r\n        watch_dir = H:\\utorrent\\complete\\tv\r\n\r\n[NzbDrone]\r\n    #### autoProcessing for TV Series\r\n    #### ndCategory - category that gets called for post-processing with NzbDrone\r\n    [[tv]]\r\n        enabled = 0\r\n       \r\n\r\n[HeadPhones]\r\n    #### autoProcessing for Music\r\n    #### music - category that gets called for post-processing with HP\r\n    [[music]]\r\n        enabled = 1\r\n        apikey = \"\"\r\n        host = localhost\r\n        port = 8181\r\n        ###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######\r\n        ssl = 0\r\n        web_root = \"\"\r\n        wait_for = 2\r\n        # Enable/Disable linking for Torrents\r\n        Torrent_NoLink = 0\r\n        keep_archive = 1\r\n        extract = 1\r\n        # Set this to minimum required size to consider a media file valid (in MB)\r\n        minSize = 10\r\n        # Enable/Disable deleting ignored files (samples and invalid media files)\r\n        delete_ignored = 0\r\n        ##### Enable if HeadPhones is on a remote server for this category\r\n        remote_path = 0\r\n        ##### Set to path where download client places completed downloads locally for this category\r\n        watch_dir = \"\"\r\n\r\n[Mylar]\r\n    #### autoProcessing for Comics\r\n    #### comics - category that gets called for post-processing with Mylar\r\n    [[comics]]\r\n        enabled = 0\r\n        host = localhost\r\n        port = 8090\r\n        username = \"\"\r\n        password = \"\"\r\n        ###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######\r\n        web_root = \"\"\r\n        ssl = 0\r\n        # Enable/Disable linking for Torrents\r\n        Torrent_NoLink = 0\r\n        keep_archive = 1\r\n        extract = 1\r\n        # Set this to minimum required size to consider a media file valid (in MB)\r\n        minSize = 0\r\n        # Enable/Disable deleting ignored files (samples and invalid media files)\r\n        delete_ignored = 0\r\n        ##### Enable if Mylar is on a remote server for this category\r\n        remote_path = 0\r\n        ##### Set to path where download client places completed downloads locally for this category\r\n        watch_dir = \"\"\r\n\r\n[Gamez]\r\n    #### autoProcessing for Games\r\n    #### games - category that gets called for post-processing with Gamez\r\n    [[games]]\r\n        enabled = 0\r\n        apikey = \"\"\r\n        host = localhost\r\n        port = 8085\r\n        ###### \r\n        library = Set to path where you want the processed games to be moved to.\r\n        ###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######\r\n        ssl = 0\r\n        web_root = \"\"\r\n        # Enable/Disable linking for Torrents\r\n        Torrent_NoLink = 0\r\n        keep_archive = 1\r\n        extract = 1\r\n        # Set this to minimum required size to consider a media file valid (in MB)\r\n        minSize = 0\r\n        # Enable/Disable deleting ignored files (samples and invalid media files)\r\n        delete_ignored = 0\r\n        ##### Enable if Gamez is on a remote server for this category\r\n        remote_path = 0\r\n        ##### Set to path where download client places completed downloads locally for this category\r\n        watch_dir = \"\"\r\n\r\n[Network]\r\n    # Enter Mount points as LocalPath,RemotePath and separate each pair with '|'\r\n    # e.g. MountPoints = /volume1/Public/,E:\\|/volume2/share/,\\\\NAS\\\r\n    mount_points = \"\"\r\n\r\n[Nzb]\r\n    ###### clientAgent - Supported clients: sabnzbd, nzbget\r\n    clientAgent = sabnzbd\r\n    ###### SabNZBD (You must edit this if your using nzbToMedia.py with SabNZBD)\r\n    sabnzbd_host = localhost\r\n    sabnzbd_port = 8080\r\n    sabnzbd_apikey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\n    ###### Enter the default path to your default download directory (non-category downloads). this directory is protected by safe_mode.\r\n    default_downloadDirectory = g:\\Usenet Downloads\r\n\r\n[Torrent]\r\n    ###### clientAgent - Supported clients: utorrent, transmission, deluge, rtorrent, vuze, other\r\n    clientAgent = utorrent\r\n    ###### useLink - Set to hard for physical links, sym for symbolic links, move to move, move-sym to move and link back, and no to not use links (copy)\r\n    useLink = no\r\n    ###### outputDirectory - Default output directory (categories will be appended as sub directory to outputDirectory)\r\n    outputDirectory = h:\\utorrent\\complete\r\n    ###### Enter the default path to your default download directory (non-category downloads). this directory is protected by safe_mode. \r\n    default_downloadDirectory = g:\\utorrent\\\r\n    ###### Other categories/labels defined for your downloader. Does not include CouchPotato, SickBeard, HeadPhones, Mylar categories.\r\n    categories = music_videos, pictures, software, manual, \r\n    ###### A list of categories that you don't want to be flattened (i.e preserve the directory structure when copying/linking.\r\n    noFlatten = pictures, manual,  series, tv, movies\r\n    ###### uTorrent Hardlink solution (You must edit this if your using TorrentToMedia.py with uTorrent)\r\n    uTorrentWEBui = http://localhost:7070/gui/\r\n    uTorrentUSR = xxxx\r\n    uTorrentPWD = xxxxxxxx\r\n    ###### Transmission (You must edit this if your using TorrentToMedia.py with Transmission)\r\n    TransmissionHost = localhost\r\n    TransmissionPort = 7071\r\n    TransmissionUSR = your username\r\n    TransmissionPWD = your password\r\n    #### Deluge (You must edit this if your using TorrentToMedia.py with deluge. Note that the host/port is for the deluge daemon, not the webui)\r\n    DelugeHost = localhost\r\n    DelugePort = 58789\r\n    DelugeUSR = your username\r\n    DelugePWD = your password\r\n    ###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######\r\n    deleteOriginal = 0\r\n    chmodDirectory = 0\r\n    resume = 1\r\n    resumeOnFailure = 1\r\n\r\n[Extensions]\r\n    compressedExtensions = .zip, .rar, .7z, .gz, .bz, .tar, .arj, .1, .01, .001\r\n    mediaExtensions = .mkv, .avi, .divx, .xvid, .mov, .wmv, .mp4, .mpg, .mpeg, .vob, .iso, .m4v\r\n    audioExtensions = .mp3, .aac, .ogg, .ape, .m4a, .asf, .wma, .flac\r\n    metaExtensions = .nfo, .sub, .srt, .jpg, .gif, .sub, .idx\r\n\r\n[Plex]\r\n    # Only enter these details if you want to update plex library after processing.\r\n    # Do not enter these details if you send the plex notifications from Sickbeard/CouchPotato.\r\n    plex_host = localhost\r\n    plex_port = 32400\r\n    plex_token = \"\"\r\n    plex_ssl = 0\r\n    # Enter Plex category to section mapping as Category,section and separate each pair with '|'\r\n    # e.g. plex_sections = movie,3|tv,4\r\n    plex_sections = \"\"\r\n\r\n[Transcoder]\r\n    # getsubs. enable to download subtitles.\r\n    getSubs = 1\r\n    # subLanguages. create a list of languages in the order you want them in your subtitles. \r\n    subLanguages = en\r\n    # transcode. enable to use transcoder\r\n    transcode = 0\r\n   \r\n\r\n[UserScript]\r\n    #Use user_script for uncategorized downloads\r\n    #Set the categories to use external script.\r\n    #Use \"UNCAT\" to process non-category downloads, and \"ALL\" for all defined categories.\r\n    [[UNCAT]]\r\n        #Enable/Disable this subsection category\r\n        enabled = 0\r\n        Torrent_NoLink = 0\r\n        keep_archive = 1\r\n        extract = 1\r\n        #Enable if you are sending commands to a remote server for this category\r\n        remote_path = 0\r\n        #What extension do you want to process? Specify all the extension, or use \"ALL\" to process all files.\r\n        user_script_mediaExtensions = .mkv, .avi, .divx, .xvid, .mov, .wmv, .mp4, .mpg, .mpeg\r\n        #Specify the path to your custom script. Use \"None\" if you wish to link this category, but NOT run any external script.\r\n        user_script_path = /nzbToMedia/userscripts/script.sh\r\n        #Specify the argument(s) passed to script, comma separated in order.\r\n        #for example FP,FN,DN, TN, TL for file path (absolute file name with path), file name, absolute directory name (with path), Torrent Name, Torrent Label/Category.\r\n        #So the result is /media/test/script/script.sh FP FN DN TN TL. Add other arguments as needed eg -f, -r\r\n        user_script_param = FN\r\n        #Set user_script_runOnce = 0 to run for each file, or 1 to only run once (presumably on the entire directory).\r\n        user_script_runOnce = 0\r\n        #Specify the successcodes returned by the user script as a comma separated list. Linux default is 0\r\n        user_script_successCodes = 0\r\n        #Clean after? Note that delay function is used to prevent possible mistake :) Delay is intended as seconds\r\n        user_script_clean = 1\r\n        delay = 120\r\n        #Unique path (directory) created for every download. set 0 to disable.\r\n        unique_path = 1\r\n        ##### Set to path where download client places completed downloads locally for this category\r\n        watch_dir = \"\"\r\n\r\n[ASCII]\r\n    #Set convert =1 if you want to convert any \"foreign\" characters to ASCII (UTF8) before passing to SB/CP etc. Default is disabled (0).\r\n    convert = 0\r\n\r\n[passwords]\r\n    # enter the full path to a text file containing passwords to be used for extraction attempts.\r\n    # In the passwords file, every password should be on a new line\r\n    PassWordFile = g:\\Usenet Downloads\\pass.txt\r\n\r\n[Custom]\r\n    # enter a list (comma separated) of Group Tags you want removed from filenames to help with subtitle matching.\r\n    # e.g remove_group = [rarbag],-NZBgeek\r\n    # be careful if your \"group\" is a common \"real\" word. Please report if you have any group replacements that would fall in this category.\r\n    remove_group = \"\"\r\n\r\n\r\n\r\nDownloaded Torrent\r\n![utorrent download](https://cloud.githubusercontent.com/assets/17621610/13504727/6e6ad1b8-e17e-11e5-8796-8798a2773845.jpg)\r\n\r\n\r\nAfter Script run\r\n![afternzbtotorrent](https://cloud.githubusercontent.com/assets/17621610/13504736/7e0c0510-e17e-11e5-89e3-d2f01ff41b2b.jpg)\r\n\r\n\r\nLog File which contains Log of succesfull run as well\r\n\r\n[nzbtomedia.txt](https://github.com/clinton-hall/nzbToMedia/files/157418/nzbtomedia.txt)\r\n"}}