{"action":"created","issue":{"url":"https://api.github.com/repos/SickRage/sickrage-issues/issues/71","labels_url":"https://api.github.com/repos/SickRage/sickrage-issues/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/SickRage/sickrage-issues/issues/71/comments","events_url":"https://api.github.com/repos/SickRage/sickrage-issues/issues/71/events","html_url":"https://github.com/SickRage/sickrage-issues/issues/71","id":118605523,"number":71,"title":"Wrong code in searchBacklog.py","user":{"login":"fernandog","id":2620870,"avatar_url":"https://avatars.githubusercontent.com/u/2620870?v=3","gravatar_id":"","url":"https://api.github.com/users/fernandog","html_url":"https://github.com/fernandog","followers_url":"https://api.github.com/users/fernandog/followers","following_url":"https://api.github.com/users/fernandog/following{/other_user}","gists_url":"https://api.github.com/users/fernandog/gists{/gist_id}","starred_url":"https://api.github.com/users/fernandog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fernandog/subscriptions","organizations_url":"https://api.github.com/users/fernandog/orgs","repos_url":"https://api.github.com/users/fernandog/repos","events_url":"https://api.github.com/users/fernandog/events{/privacy}","received_events_url":"https://api.github.com/users/fernandog/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SickRage/sickrage-issues/labels/Bug/Issue","name":"Bug/Issue","color":"fc2929"},{"url":"https://api.github.com/repos/SickRage/sickrage-issues/labels/Help%20wanted","name":"Help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-24T13:11:51Z","updated_at":"2015-11-24T13:23:58Z","closed_at":null,"body":"@miigotu This code seems wrong. It's running the \"else\" even after successful running the \"for\"\r\n\r\n```\r\n11:06:20 DEBUG::Thread-16 :: Adding show The Man in the High Castle to BacklogQueueItem. Season: 1\r\n11:06:20 DEBUG::Thread-16 :: Nothing needs to be downloaded for The Man in the High Castle, skipping\r\n11:06:22 INFO::SEARCHQUEUE-BACKLOG-295829 :: [AlphaRatio] :: Performing episode search for The Man in the High Castle\r\n11:06:23 DEBUG::SEARCHQUEUE-BACKLOG-295829 :: [AlphaRatio] :: Search Mode: Episode\r\n11:06:23 DEBUG::SEARCHQUEUE-BACKLOG-295829 :: [AlphaRatio] :: Search string: The Man in the High Castle S01E04\r\n```\r\n\r\nI added this log messages \"Adding show ..\" :\r\n```python\r\nfor season, segment in segments.iteritems():\r\n    self.currentSearchInfo = {'title': curShow.name + \" Season \" + str(season)}\r\n    logger.log(u\"Adding show %s to BacklogQueueItem. Season: %s\" % (curShow.name, season), logger.DEBUG)\r\n    backlog_queue_item = search_queue.BacklogQueueItem(curShow, segment)\r\n    sickbeard.searchQueueScheduler.action.add_item(backlog_queue_item)  # @UndefinedVariable\r\nelse:\r\n    logger.log(u\"Nothing needs to be downloaded for {show_name}, skipping\".format(show_name=curShow.name),logger.DEBUG)\r\n```\r\n\r\nhttps://github.com/SickRage/SickRage/blob/develop/sickbeard/searchBacklog.py#L101-L107"},"comment":{"url":"https://api.github.com/repos/SickRage/sickrage-issues/issues/comments/159266261","html_url":"https://github.com/SickRage/sickrage-issues/issues/71#issuecomment-159266261","issue_url":"https://api.github.com/repos/SickRage/sickrage-issues/issues/71","id":159266261,"user":{"login":"fernandog","id":2620870,"avatar_url":"https://avatars.githubusercontent.com/u/2620870?v=3","gravatar_id":"","url":"https://api.github.com/users/fernandog","html_url":"https://github.com/fernandog","followers_url":"https://api.github.com/users/fernandog/followers","following_url":"https://api.github.com/users/fernandog/following{/other_user}","gists_url":"https://api.github.com/users/fernandog/gists{/gist_id}","starred_url":"https://api.github.com/users/fernandog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fernandog/subscriptions","organizations_url":"https://api.github.com/users/fernandog/orgs","repos_url":"https://api.github.com/users/fernandog/repos","events_url":"https://api.github.com/users/fernandog/events{/privacy}","received_events_url":"https://api.github.com/users/fernandog/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T13:23:58Z","updated_at":"2015-11-24T13:23:58Z","body":"ok thanks!"}}