{"action":"created","issue":{"url":"https://api.github.com/repos/theotherp/nzbhydra/issues/475","repository_url":"https://api.github.com/repos/theotherp/nzbhydra","labels_url":"https://api.github.com/repos/theotherp/nzbhydra/issues/475/labels{/name}","comments_url":"https://api.github.com/repos/theotherp/nzbhydra/issues/475/comments","events_url":"https://api.github.com/repos/theotherp/nzbhydra/issues/475/events","html_url":"https://github.com/theotherp/nzbhydra/issues/475","id":194262023,"number":475,"title":"500: INTERNAL SERVER ERROR - categories","user":{"login":"rebelbase","id":15335049,"avatar_url":"https://avatars.githubusercontent.com/u/15335049?v=3","gravatar_id":"","url":"https://api.github.com/users/rebelbase","html_url":"https://github.com/rebelbase","followers_url":"https://api.github.com/users/rebelbase/followers","following_url":"https://api.github.com/users/rebelbase/following{/other_user}","gists_url":"https://api.github.com/users/rebelbase/gists{/gist_id}","starred_url":"https://api.github.com/users/rebelbase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rebelbase/subscriptions","organizations_url":"https://api.github.com/users/rebelbase/orgs","repos_url":"https://api.github.com/users/rebelbase/repos","events_url":"https://api.github.com/users/rebelbase/events{/privacy}","received_events_url":"https://api.github.com/users/rebelbase/received_events","type":"User","site_admin":false},"labels":[{"id":281803685,"url":"https://api.github.com/repos/theotherp/nzbhydra/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-08T07:01:34Z","updated_at":"2016-12-09T02:42:26Z","closed_at":null,"body":"Hi,\r\n   Just updated to the latest version from and everytime I start up I get the following error:\r\n\r\nAn error occured :\r\n500: INTERNAL SERVER ERROR\r\ncategories\r\n\r\nand the traceback:\r\n\r\n2016-12-08 06:53:08,475 - ERROR - web - Thread-24 - categories\r\nTraceback (most recent call last):\r\n  File \"/opt/nzbhydra/libs/flask/app.py\", line 1475, in full_dispatch_request\r\n    rv = self.dispatch_request()\r\n  File \"/opt/nzbhydra/libs/flask/app.py\", line 1461, in dispatch_request\r\n    return self.view_functions[rule.endpoint](**req.view_args)\r\n  File \"/opt/nzbhydra/nzbhydra/web.py\", line 341, in wrapped_function\r\n    return f(*args, **kwargs)\r\n  File \"/opt/nzbhydra/nzbhydra/web.py\", line 1057, in internalapi_getsafeconfig\r\n    return jsonify(config.getSafeConfig())\r\n  File \"/opt/nzbhydra/nzbhydra/config.py\", line 927, in getSafeConfig\r\n    \"categories\": categories.getCategories(),\r\n  File \"/opt/nzbhydra/nzbhydra/categories.py\", line 115, in getCategories\r\n    for k, v in config.settings.categories.categories.items():\r\n  File \"/opt/nzbhydra/libs/bunch/__init__.py\", line 121, in __getattr__\r\n    raise AttributeError(k)\r\nAttributeError: categories\r\n\r\n\r\n\r\nGreat tool by the way, thanks for the effort and the great work!"},"comment":{"url":"https://api.github.com/repos/theotherp/nzbhydra/issues/comments/265918651","html_url":"https://github.com/theotherp/nzbhydra/issues/475#issuecomment-265918651","issue_url":"https://api.github.com/repos/theotherp/nzbhydra/issues/475","id":265918651,"user":{"login":"rebelbase","id":15335049,"avatar_url":"https://avatars.githubusercontent.com/u/15335049?v=3","gravatar_id":"","url":"https://api.github.com/users/rebelbase","html_url":"https://github.com/rebelbase","followers_url":"https://api.github.com/users/rebelbase/followers","following_url":"https://api.github.com/users/rebelbase/following{/other_user}","gists_url":"https://api.github.com/users/rebelbase/gists{/gist_id}","starred_url":"https://api.github.com/users/rebelbase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rebelbase/subscriptions","organizations_url":"https://api.github.com/users/rebelbase/orgs","repos_url":"https://api.github.com/users/rebelbase/repos","events_url":"https://api.github.com/users/rebelbase/events{/privacy}","received_events_url":"https://api.github.com/users/rebelbase/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T02:42:25Z","updated_at":"2016-12-09T02:42:25Z","body":"\r\n{\r\n    \"auth\": {\r\n        \"authType\": \"none\", \r\n        \"restrictAdmin\": false, \r\n        \"restrictSearch\": false, \r\n        \"restrictStats\": false, \r\n        \"users\": []\r\n    }, \r\n    \"categories\": {\r\n        \"categories\": {\r\n            \"anime\": {\r\n                \"applyRestrictions\": \"both\", \r\n                \"forbiddenRegex\": null, \r\n                \"forbiddenWords\": [], \r\n                \"ignoreResults\": \"never\", \r\n                \"max\": 15000, \r\n                \"min\": 50, \r\n                \"newznabCategories\": [\r\n                    5070\r\n                ], \r\n                \"requiredRegex\": null, \r\n                \"requiredWords\": null\r\n            }, \r\n            \"audio\": {\r\n                \"applyRestrictions\": \"both\", \r\n                \"forbiddenRegex\": null, \r\n                \"forbiddenWords\": [], \r\n                \"ignoreResults\": \"never\", \r\n                \"max\": 2000, \r\n                \"min\": 1, \r\n                \"newznabCategories\": [\r\n                    3000\r\n                ], \r\n                \"requiredRegex\": null, \r\n                \"requiredWords\": null\r\n            }, \r\n            \"audiobook\": {\r\n                \"applyRestrictions\": \"both\", \r\n                \"forbiddenRegex\": null, \r\n                \"forbiddenWords\": [], \r\n                \"ignoreResults\": \"never\", \r\n                \"max\": 1000, \r\n                \"min\": 50, \r\n                \"newznabCategories\": [\r\n                    3030\r\n                ], \r\n                \"requiredRegex\": null, \r\n                \"requiredWords\": null\r\n            }, \r\n            \"comic\": {\r\n                \"applyRestrictions\": \"both\", \r\n                \"forbiddenRegex\": null, \r\n                \"forbiddenWords\": [], \r\n                \"ignoreResults\": \"never\", \r\n                \"max\": 250, \r\n                \"min\": 1, \r\n                \"newznabCategories\": [\r\n                    7030\r\n                ], \r\n                \"requiredRegex\": null, \r\n                \"requiredWords\": null\r\n            }, \r\n            \"console\": {\r\n                \"applyRestrictions\": \"both\", \r\n                \"forbiddenRegex\": null, \r\n                \"forbiddenWords\": [], \r\n                \"ignoreResults\": \"never\", \r\n                \"max\": 40000, \r\n                \"min\": 100, \r\n                \"newznabCategories\": [\r\n                    1000\r\n                ], \r\n                \"requiredRegex\": null, \r\n                \"requiredWords\": null\r\n            }, \r\n            \"ebook\": {\r\n                \"applyRestrictions\": \"both\", \r\n                \"forbiddenRegex\": null, \r\n                \"forbiddenWords\": [], \r\n                \"ignoreResults\": \"never\", \r\n                \"max\": 100, \r\n                \"min\": null, \r\n                \"newznabCategories\": [\r\n                    7020, \r\n                    8010\r\n                ], \r\n                \"requiredRegex\": null, \r\n                \"requiredWords\": null\r\n            }, \r\n            \"flac\": {\r\n                \"applyRestrictions\": \"both\", \r\n                \"forbiddenRegex\": null, \r\n                \"forbiddenWords\": [], \r\n                \"ignoreResults\": \"never\", \r\n                \"max\": 2000, \r\n                \"min\": 10, \r\n                \"newznabCategories\": [\r\n                    3040\r\n                ], \r\n                \"requiredRegex\": null, \r\n                \"requiredWords\": null\r\n            }, \r\n            \"movies\": {\r\n                \"applyRestrictions\": \"both\", \r\n                \"forbiddenRegex\": null, \r\n                \"forbiddenWords\": [], \r\n                \"ignoreResults\": \"never\", \r\n                \"max\": 20000, \r\n                \"min\": 500, \r\n                \"newznabCategories\": [\r\n                    2000\r\n                ], \r\n                \"requiredRegex\": null, \r\n                \"requiredWords\": null\r\n            }, \r\n            \"movieshd\": {\r\n                \"applyRestrictions\": \"both\", \r\n                \"forbiddenRegex\": null, \r\n                \"forbiddenWords\": [], \r\n                \"ignoreResults\": \"never\", \r\n                \"max\": 20000, \r\n                \"min\": 3000, \r\n                \"newznabCategories\": [\r\n                    2040, \r\n                    2050, \r\n                    2060\r\n                ], \r\n                \"requiredRegex\": null, \r\n                \"requiredWords\": null\r\n            }, \r\n            \"moviessd\": {\r\n                \"applyRestrictions\": \"both\", \r\n                \"forbiddenRegex\": null, \r\n                \"forbiddenWords\": [], \r\n                \"ignoreResults\": \"never\", \r\n                \"max\": 3000, \r\n                \"min\": 500, \r\n                \"newznabCategories\": [\r\n                    2030\r\n                ], \r\n                \"requiredRegex\": null, \r\n                \"requiredWords\": null\r\n            }, \r\n            \"mp3\": {\r\n                \"applyRestrictions\": \"both\", \r\n                \"forbiddenRegex\": null, \r\n                \"forbiddenWords\": [], \r\n                \"ignoreResults\": \"never\", \r\n                \"max\": 500, \r\n                \"min\": 1, \r\n                \"newznabCategories\": [\r\n                    3010\r\n                ], \r\n                \"requiredRegex\": null, \r\n                \"requiredWords\": null\r\n            }, \r\n            \"pc\": {\r\n                \"applyRestrictions\": \"both\", \r\n                \"forbiddenRegex\": null, \r\n                \"forbiddenWords\": [], \r\n                \"ignoreResults\": \"never\", \r\n                \"max\": 50000, \r\n                \"min\": 100, \r\n                \"newznabCategories\": [\r\n                    4000\r\n                ], \r\n                \"requiredRegex\": null, \r\n                \"requiredWords\": null\r\n            }, \r\n            \"tv\": {\r\n                \"applyRestrictions\": \"both\", \r\n                \"forbiddenRegex\": null, \r\n                \"forbiddenWords\": [], \r\n                \"ignoreResults\": \"never\", \r\n                \"max\": 5000, \r\n                \"min\": 50, \r\n                \"newznabCategories\": [\r\n                    5000\r\n                ], \r\n                \"requiredRegex\": null, \r\n                \"requiredWords\": null\r\n            }, \r\n            \"tvhd\": {\r\n                \"applyRestrictions\": \"both\", \r\n                \"forbiddenRegex\": null, \r\n                \"forbiddenWords\": [], \r\n                \"ignoreResults\": \"never\", \r\n                \"max\": 4500, \r\n                \"min\": 300, \r\n                \"newznabCategories\": [\r\n                    5040\r\n                ], \r\n                \"requiredRegex\": null, \r\n                \"requiredWords\": null\r\n            }, \r\n            \"tvsd\": {\r\n                \"applyRestrictions\": \"both\", \r\n                \"forbiddenRegex\": null, \r\n                \"forbiddenWords\": [], \r\n                \"ignoreResults\": \"never\", \r\n                \"max\": 1000, \r\n                \"min\": 50, \r\n                \"newznabCategories\": [\r\n                    5030\r\n                ], \r\n                \"requiredRegex\": null, \r\n                \"requiredWords\": null\r\n            }, \r\n            \"xxx\": {\r\n                \"applyRestrictions\": \"both\", \r\n                \"forbiddenRegex\": null, \r\n                \"forbiddenWords\": [], \r\n                \"ignoreResults\": \"both\", \r\n                \"max\": 10000, \r\n                \"min\": 100, \r\n                \"newznabCategories\": [\r\n                    6000\r\n                ], \r\n                \"requiredRegex\": null, \r\n                \"requiredWords\": null\r\n            }\r\n        }, \r\n        \"enableCategorySizes\": true\r\n    }, \r\n    \"downloaders\": [\r\n        {\r\n            \"apikey\": \"****************\", \r\n            \"downloadType\": \"nzb\", \r\n            \"enabled\": true, \r\n            \"iconCssClass\": \"\", \r\n            \"name\": \"SABnzbd\", \r\n            \"nzbAddingType\": \"link\", \r\n            \"nzbaccesstype\": \"redirect\", \r\n            \"password\": null, \r\n            \"type\": \"sabnzbd\", \r\n            \"url\": \"http://localhost:***\", \r\n            \"username\": null\r\n        }\r\n    ], \r\n    \"indexers\": [\r\n        {\r\n            \"accessType\": \"both\", \r\n            \"categories\": [\r\n                \"anime\"\r\n            ], \r\n            \"enabled\": true, \r\n            \"generate_queries\": true, \r\n            \"hitLimit\": 0, \r\n            \"hitLimitResetTime\": null, \r\n            \"host\": \"https://anizb.org\", \r\n            \"name\": \"anizb\", \r\n            \"password\": null, \r\n            \"preselect\": true, \r\n            \"score\": 0, \r\n            \"searchTypes\": [], \r\n            \"search_ids\": [], \r\n            \"showOnSearch\": true, \r\n            \"timeout\": null, \r\n            \"type\": \"anizb\", \r\n            \"username\": null\r\n        }, \r\n        {\r\n            \"accessType\": \"internal\", \r\n            \"categories\": [], \r\n            \"enabled\": true, \r\n            \"hitLimit\": 0, \r\n            \"hitLimitResetTime\": null, \r\n            \"host\": \"https://binsearch.info\", \r\n            \"name\": \"Binsearch\", \r\n            \"password\": null, \r\n            \"preselect\": true, \r\n            \"score\": 0, \r\n            \"searchTypes\": [], \r\n            \"search_ids\": [], \r\n            \"showOnSearch\": true, \r\n            \"timeout\": null, \r\n            \"type\": \"binsearch\", \r\n            \"username\": null\r\n        }, \r\n        {\r\n            \"accessType\": \"internal\", \r\n            \"categories\": [], \r\n            \"enabled\": true, \r\n            \"hitLimit\": 0, \r\n            \"hitLimitResetTime\": null, \r\n            \"host\": \"https://www.nzbclub.com\", \r\n            \"name\": \"NZBClub\", \r\n            \"password\": null, \r\n            \"preselect\": true, \r\n            \"score\": 0, \r\n            \"searchTypes\": [], \r\n            \"search_ids\": [], \r\n            \"showOnSearch\": true, \r\n            \"timeout\": null, \r\n            \"type\": \"nzbclub\", \r\n            \"username\": null\r\n        }, \r\n        {\r\n            \"accessType\": \"internal\", \r\n            \"categories\": [], \r\n            \"enabled\": true, \r\n            \"generalMinSize\": 1, \r\n            \"hitLimit\": 0, \r\n            \"hitLimitResetTime\": null, \r\n            \"host\": \"https://nzbindex.com\", \r\n            \"name\": \"NZBIndex\", \r\n            \"password\": null, \r\n            \"preselect\": true, \r\n            \"score\": 0, \r\n            \"searchTypes\": [], \r\n            \"search_ids\": [], \r\n            \"showOnSearch\": true, \r\n            \"timeout\": null, \r\n            \"type\": \"nzbindex\", \r\n            \"username\": null\r\n        }, \r\n        {\r\n            \"accessType\": \"external\", \r\n            \"categories\": [\r\n                \"tv\", \r\n                \"tvhd\", \r\n                \"tvsd\"\r\n            ], \r\n            \"enabled\": true, \r\n            \"generate_queries\": false, \r\n            \"hitLimit\": 0, \r\n            \"hitLimitResetTime\": null, \r\n            \"host\": \"https://newshost.co.za\", \r\n            \"name\": \"Womble\", \r\n            \"password\": null, \r\n            \"preselect\": true, \r\n            \"score\": 0, \r\n            \"searchTypes\": [], \r\n            \"search_ids\": [], \r\n            \"showOnSearch\": false, \r\n            \"timeout\": null, \r\n            \"type\": \"womble\", \r\n            \"username\": null\r\n        }, \r\n        {\r\n            \"accessType\": \"both\", \r\n            \"animeCategory\": \"5070\", \r\n            \"apikey\": \"****************\", \r\n            \"audiobookCategory\": \"3030\", \r\n            \"backend\": \"newznab\", \r\n            \"categories\": [\r\n                \"movies\", \r\n                \"movieshd\", \r\n                \"moviessd\", \r\n                \"tv\", \r\n                \"tvhd\", \r\n                \"tvsd\", \r\n                \"audio\", \r\n                \"flac\", \r\n                \"mp3\", \r\n                \"xxx\", \r\n                \"console\", \r\n                \"pc\", \r\n                \"anime\", \r\n                \"comic\", \r\n                \"audiobook\"\r\n            ], \r\n            \"comicCategory\": \"7030\", \r\n            \"ebookCategory\": null, \r\n            \"enabled\": true, \r\n            \"hitLimit\": null, \r\n            \"hitLimitResetTime\": 0, \r\n            \"host\": \"https://drunkenslug.com\", \r\n            \"magazineCategory\": \"7010\", \r\n            \"name\": \"drunkenslug\", \r\n            \"password\": null, \r\n            \"preselect\": true, \r\n            \"score\": 0, \r\n            \"searchTypes\": [\r\n                \"movie\", \r\n                \"tvsearch\"\r\n            ], \r\n            \"search_ids\": [\r\n                \"imdbid\", \r\n                \"rid\", \r\n                \"tmdbid\", \r\n                \"traktid\", \r\n                \"tvdbid\", \r\n                \"tvmazeid\"\r\n            ], \r\n            \"showOnSearch\": true, \r\n            \"timeout\": null, \r\n            \"type\": \"newznab\", \r\n            \"username\": null\r\n        }, \r\n        {\r\n            \"accessType\": \"both\", \r\n            \"animeCategory\": \"5070\", \r\n            \"apikey\": \"****************\", \r\n            \"audiobookCategory\": \"3030\", \r\n            \"backend\": \"newznab\", \r\n            \"categories\": [\r\n                \"movies\", \r\n                \"movieshd\", \r\n                \"moviessd\", \r\n                \"tv\", \r\n                \"tvhd\", \r\n                \"tvsd\", \r\n                \"audio\", \r\n                \"flac\", \r\n                \"mp3\", \r\n                \"xxx\", \r\n                \"console\", \r\n                \"pc\", \r\n                \"anime\", \r\n                \"audiobook\"\r\n            ], \r\n            \"comicCategory\": null, \r\n            \"ebookCategory\": null, \r\n            \"enabled\": true, \r\n            \"hitLimit\": null, \r\n            \"hitLimitResetTime\": 0, \r\n            \"host\": \"http://nzb.is\", \r\n            \"magazineCategory\": null, \r\n            \"name\": \"nzb.is\", \r\n            \"password\": null, \r\n            \"preselect\": true, \r\n            \"score\": 0, \r\n            \"searchTypes\": [\r\n                \"movie\", \r\n                \"tvsearch\"\r\n            ], \r\n            \"search_ids\": [\r\n                \"imdbid\", \r\n                \"rid\", \r\n                \"tmdbid\", \r\n                \"traktid\", \r\n                \"tvdbid\", \r\n                \"tvmazeid\"\r\n            ], \r\n            \"showOnSearch\": true, \r\n            \"timeout\": null, \r\n            \"type\": \"newznab\", \r\n            \"username\": null\r\n        }, \r\n        {\r\n            \"accessType\": \"both\", \r\n            \"animeCategory\": null, \r\n            \"apikey\": \"****************\", \r\n            \"audiobookCategory\": null, \r\n            \"backend\": \"newznab\", \r\n            \"categories\": [], \r\n            \"comicCategory\": null, \r\n            \"ebookCategory\": null, \r\n            \"enabled\": false, \r\n            \"hitLimit\": null, \r\n            \"hitLimitResetTime\": 0, \r\n            \"host\": \"https://api.oznzb.com\", \r\n            \"magazineCategory\": null, \r\n            \"name\": \"oznzb.com\", \r\n            \"password\": null, \r\n            \"preselect\": true, \r\n            \"score\": 0, \r\n            \"showOnSearch\": true, \r\n            \"timeout\": null, \r\n            \"type\": \"newznab\", \r\n            \"username\": null\r\n        }, \r\n        {\r\n            \"accessType\": \"both\", \r\n            \"animeCategory\": null, \r\n            \"apikey\": \"****************\", \r\n            \"audiobookCategory\": null, \r\n            \"backend\": \"newznab\", \r\n            \"categories\": [\r\n                \"tv\", \r\n                \"tvhd\", \r\n                \"tvsd\", \r\n                \"movieshd\", \r\n                \"moviessd\", \r\n                \"movies\"\r\n            ], \r\n            \"comicCategory\": null, \r\n            \"ebookCategory\": null, \r\n            \"enabled\": true, \r\n            \"hitLimit\": null, \r\n            \"hitLimitResetTime\": 0, \r\n            \"host\": \"http://localhost/spotweb\", \r\n            \"magazineCategory\": null, \r\n            \"name\": \"spotweb\", \r\n            \"password\": null, \r\n            \"preselect\": true, \r\n            \"score\": 1, \r\n            \"searchTypes\": [], \r\n            \"search_ids\": [], \r\n            \"showOnSearch\": true, \r\n            \"timeout\": null, \r\n            \"type\": \"newznab\", \r\n            \"username\": null\r\n        }\r\n    ], \r\n    \"main\": {\r\n        \"apikey\": \"****************\", \r\n        \"branch\": \"master\", \r\n        \"configVersion\": 31, \r\n        \"debug\": false, \r\n        \"dereferer\": \"http://www.dereferer.org/?$s\", \r\n        \"externalUrl\": null, \r\n        \"firstStart\": ****************, \r\n        \"flaskReloader\": false, \r\n        \"gitPath\": null, \r\n        \"host\": \"0.0.0.0\", \r\n        \"httpProxy\": null, \r\n        \"httpsProxy\": null, \r\n        \"keepSearchResultsForDays\": 7, \r\n        \"logging\": {\r\n            \"consolelevel\": \"INFO\", \r\n            \"logIpAddresses\": true, \r\n            \"logfilelevel\": \"INFO\", \r\n            \"logfilename\": \"nzbhydra.log\"\r\n        }, \r\n        \"pollShown\": 0, \r\n        \"port\": 8787, \r\n        \"repositoryBase\": \"https://github.com/theotherp\", \r\n        \"runThreaded\": true, \r\n        \"secret\": \"****************\", \r\n        \"shutdownForRestart\": false, \r\n        \"socksProxy\": null, \r\n        \"ssl\": false, \r\n        \"sslcert\": null, \r\n        \"sslkey\": null, \r\n        \"startupBrowser\": true, \r\n        \"theme\": \"bright\", \r\n        \"urlBase\": null, \r\n        \"useLocalUrlForApiAccess\": true\r\n    }, \r\n    \"searching\": {\r\n        \"alwaysShowDuplicates\": false, \r\n        \"applyRestrictions\": \"both\", \r\n        \"duplicateAgeThreshold\": 8, \r\n        \"duplicateSizeThresholdInPercent\": 1, \r\n        \"forbiddenRegex\": null, \r\n        \"forbiddenWords\": \"\", \r\n        \"generate_queries\": [\r\n            \"internal\"\r\n        ], \r\n        \"htmlParser\": \"html.parser\", \r\n        \"ignorePassworded\": false, \r\n        \"ignoreTemporarilyDisabled\": false, \r\n        \"maxAge\": \"\", \r\n        \"nzbAccessType\": \"redirect\", \r\n        \"removeLanguage\": true, \r\n        \"requiredRegex\": null, \r\n        \"requiredWords\": \"\", \r\n        \"timeout\": 20, \r\n        \"userAgent\": \"NZBHydra\"\r\n    }\r\n}\r\n\r\n\r\n"}}
{"actor":{"display_login":"rebelbase"}}