project
stringlengths 1
98
| commit_sha
stringlengths 40
40
| parent_sha
stringlengths 40
40
| file_path
stringlengths 4
209
| project_url
stringlengths 23
132
| likely_bug
bool 1
class | comodified
bool 1
class | in_function
bool 2
classes | diff
stringlengths 27
9.71k
| before
stringlengths 1
8.91k
| after
stringlengths 1
6k
| sstub_pattern
stringclasses 23
values | edit_script
stringlengths 33
158k
| key
stringlengths 45
154
| commit_message
stringlengths 3
65.5k
⌀ | files
list |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
SickRage
|
8f6f619538d48af1c3429f2a2109b47fa737c5a7
|
ce74c295a08daa8af0da8b27d9d6033eea77e63a
|
sickbeard/providers/hdtorrents.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -232,7 +232,7 @@ class HDTorrentsProvider(generic.TorrentProvider):
except (AttributeError, TypeError, KeyError, ValueError):
continue
- if not title or not url or not seeders or not leechers or not size or \
+ if not title or not url or not seeders or leechers is None or not size or \
seeders < self.minseed or leechers < self.minleech:
continue
|
if not title or not url or not seeders or not leechers or not size or seeders < self . minseed or leechers < self . minleech : continue
|
if not title or not url or not seeders or leechers is None or not size or seeders < self . minseed or leechers < self . minleech : continue
|
SINGLE_STMT
|
[["Insert", ["boolean_operator", 3, 48, 4, 75], ["boolean_operator", "N0"], 0], ["Move", "N0", ["identifier:seeders", 3, 48, 3, 55], 0], ["Move", "N0", ["or:or", 3, 56, 3, 58], 1], ["Insert", "N0", ["comparison_operator", "N1"], 2], ["Move", "N1", ["identifier:leechers", 3, 63, 3, 71], 0], ["Insert", "N1", ["is:is", "T"], 1], ["Insert", "N1", ["none:None", "T"], 2]]
|
jackkiej/SickRage@8f6f619538d48af1c3429f2a2109b47fa737c5a7
|
Fix bug preventing torrents with 0 leechers from being downloaded
|
[
{
"sha": "b18e71da2343f7dd7918d90317699e2fa1113e51",
"filename": "sickbeard/providers/hdtorrents.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/8f6f619538d48af1c3429f2a2109b47fa737c5a7/sickbeard%2Fproviders%2Fhdtorrents.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/8f6f619538d48af1c3429f2a2109b47fa737c5a7/sickbeard%2Fproviders%2Fhdtorrents.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Fhdtorrents.py?ref=8f6f619538d48af1c3429f2a2109b47fa737c5a7",
"patch": "@@ -232,7 +232,7 @@ def _doSearch(self, search_params, search_mode='eponly', epcount=0, age=0, epObj\n except (AttributeError, TypeError, KeyError, ValueError):\n continue\n \n- if not title or not url or not seeders or not leechers or not size or \\\n+ if not title or not url or not seeders or leechers is None or not size or \\\n seeders < self.minseed or leechers < self.minleech:\n continue\n "
}
] |
SickRage
|
0896d49895262e5ae6a7c991f4a7af8d312e456d
|
82bae3026f1aa669e8c5a5b8510cdd417dd4321a
|
sickbeard/logger.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -232,7 +232,7 @@ class Logger(object):
message += u"_STAFF NOTIFIED_: @SiCKRAGETV/owners @SiCKRAGETV/moderators"
title_Error = u"[APP SUBMITTED]: " + title_Error
- reports = gh.get_organization(gh_org).get_repo(gh_repo).get_issues()
+ reports = gh.get_organization(gh_org).get_repo(gh_repo).get_issues(state="all")
issue_found = False
issue_id = 0
|
reports = gh . get_organization ( gh_org ) . get_repo ( gh_repo ) . get_issues ( )
|
reports = gh . get_organization ( gh_org ) . get_repo ( gh_repo ) . get_issues ( state = "all" )
|
SAME_FUNCTION_MORE_ARGS
|
[["Insert", ["argument_list", 3, 83, 3, 85], ["keyword_argument", "N0"], 1], ["Insert", "N0", ["identifier:state", "T"], 0], ["Insert", "N0", ["=:=", "T"], 1], ["Insert", "N0", ["string:\"all\"", "T"], 2]]
|
jackkiej/SickRage@0896d49895262e5ae6a7c991f4a7af8d312e456d
|
Use issues even if they are closed for issue submitter
|
[
{
"sha": "a1c620cc7cca127f48cd11a94da22d86a7bd24c1",
"filename": "sickbeard/logger.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/0896d49895262e5ae6a7c991f4a7af8d312e456d/sickbeard%2Flogger.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/0896d49895262e5ae6a7c991f4a7af8d312e456d/sickbeard%2Flogger.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Flogger.py?ref=0896d49895262e5ae6a7c991f4a7af8d312e456d",
"patch": "@@ -232,7 +232,7 @@ def submit_errors(self):\n message += u\"_STAFF NOTIFIED_: @SiCKRAGETV/owners @SiCKRAGETV/moderators\"\n \n title_Error = u\"[APP SUBMITTED]: \" + title_Error\n- reports = gh.get_organization(gh_org).get_repo(gh_repo).get_issues()\n+ reports = gh.get_organization(gh_org).get_repo(gh_repo).get_issues(state=\"all\")\n \n issue_found = False\n issue_id = 0"
}
] |
SickRage
|
6831ae9131af765586c1d348cc1835f363f350ce
|
8f6f619538d48af1c3429f2a2109b47fa737c5a7
|
sickbeard/logger.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -232,7 +232,7 @@ class Logger(object):
message += u"_STAFF NOTIFIED_: @SiCKRAGETV/owners @SiCKRAGETV/moderators"
title_Error = u"[APP SUBMITTED]: " + title_Error
- reports = gh.get_organization(gh_org).get_repo(gh_repo).get_issues()
+ reports = gh.get_organization(gh_org).get_repo(gh_repo).get_issues(state="all")
issue_found = False
issue_id = 0
|
reports = gh . get_organization ( gh_org ) . get_repo ( gh_repo ) . get_issues ( )
|
reports = gh . get_organization ( gh_org ) . get_repo ( gh_repo ) . get_issues ( state = "all" )
|
SAME_FUNCTION_MORE_ARGS
|
[["Insert", ["argument_list", 3, 83, 3, 85], ["keyword_argument", "N0"], 1], ["Insert", "N0", ["identifier:state", "T"], 0], ["Insert", "N0", ["=:=", "T"], 1], ["Insert", "N0", ["string:\"all\"", "T"], 2]]
|
jackkiej/SickRage@6831ae9131af765586c1d348cc1835f363f350ce
|
Use issues even if they are closed for issue submitter
|
[
{
"sha": "a1c620cc7cca127f48cd11a94da22d86a7bd24c1",
"filename": "sickbeard/logger.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/6831ae9131af765586c1d348cc1835f363f350ce/sickbeard%2Flogger.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/6831ae9131af765586c1d348cc1835f363f350ce/sickbeard%2Flogger.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Flogger.py?ref=6831ae9131af765586c1d348cc1835f363f350ce",
"patch": "@@ -232,7 +232,7 @@ def submit_errors(self):\n message += u\"_STAFF NOTIFIED_: @SiCKRAGETV/owners @SiCKRAGETV/moderators\"\n \n title_Error = u\"[APP SUBMITTED]: \" + title_Error\n- reports = gh.get_organization(gh_org).get_repo(gh_repo).get_issues()\n+ reports = gh.get_organization(gh_org).get_repo(gh_repo).get_issues(state=\"all\")\n \n issue_found = False\n issue_id = 0"
}
] |
SickRage
|
fbae6bf7570d1bf17a59b76deec7ba757acce308
|
72cc9f3abb16cb0ddf8a776db00a93ee2ed4b4f5
|
sickbeard/providers/libertalia.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -165,7 +165,7 @@ class LibertaliaProvider(generic.TorrentProvider):
# check for auth
if not self._doLogin():
- return False
+ return results
for mode in search_params.keys():
|
return False
|
return results
|
SINGLE_TOKEN
|
[["Insert", ["return_statement", 3, 13, 3, 25], ["identifier:results", "T"], 1], ["Delete", ["false:False", 3, 20, 3, 25]]]
|
jackkiej/SickRage@fbae6bf7570d1bf17a59b76deec7ba757acce308
|
Wrong return in libertalia _doSearch, fixes SiCKRAGETV/sickrage-issues#2169
|
[
{
"sha": "4670b11de0c5eb43f55e2315d688271de20846f7",
"filename": "sickbeard/providers/libertalia.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/fbae6bf7570d1bf17a59b76deec7ba757acce308/sickbeard%2Fproviders%2Flibertalia.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/fbae6bf7570d1bf17a59b76deec7ba757acce308/sickbeard%2Fproviders%2Flibertalia.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Flibertalia.py?ref=fbae6bf7570d1bf17a59b76deec7ba757acce308",
"patch": "@@ -165,7 +165,7 @@ def _doSearch(self, search_params, search_mode='eponly', epcount=0, age=0, epObj\n \n # check for auth\n if not self._doLogin():\n- return False\n+ return results\n \n for mode in search_params.keys():\n "
}
] |
SickRage
|
9081e77fbd1bf70b5cea99302ab76ccb8c7f701e
|
635c2d1edc58185d8924084050ce5ce9d5aa6c58
|
sickbeard/providers/thepiratebay.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -239,7 +239,7 @@ class ThePirateBayProvider(generic.TorrentProvider):
if not data:
continue
- re_title_url = self.proxy._buildRE(self.re_title_url)
+ re_title_url = self.proxy._buildRE(self.re_title_url).replace('&f=norefer', '')
matches = re.compile(re_title_url, re.DOTALL).finditer(urllib.unquote(data))
for torrent in matches:
title = torrent.group('title').replace('_',
|
re_title_url = self . proxy . _buildRE ( self . re_title_url )
|
re_title_url = self . proxy . _buildRE ( self . re_title_url ) . replace ( '&f=norefer' , '' )
|
ADD_METHOD_CALL
|
[["Insert", ["call", 3, 32, 3, 70], ["attribute", "N0"], 0], ["Insert", ["call", 3, 32, 3, 70], ["argument_list", "N1"], 1], ["Move", "N0", ["call", 3, 32, 3, 70], 0], ["Insert", "N0", [".:.", "T"], 1], ["Insert", "N0", ["identifier:replace", "T"], 2], ["Insert", "N1", ["(:(", "T"], 0], ["Insert", "N1", ["string:'&f=norefer'", "T"], 1], ["Insert", "N1", [",:,", "T"], 2], ["Insert", "N1", ["string:''", "T"], 3], ["Insert", "N1", ["):)", "T"], 4]]
|
jackkiej/SickRage@9081e77fbd1bf70b5cea99302ab76ccb8c7f701e
|
Also fix TPB via proxy when using direct client connection
|
[
{
"sha": "2e229ff9badb51ad87c29beb4cf45d4709ab09aa",
"filename": "sickbeard/providers/thepiratebay.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/9081e77fbd1bf70b5cea99302ab76ccb8c7f701e/sickbeard%2Fproviders%2Fthepiratebay.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/9081e77fbd1bf70b5cea99302ab76ccb8c7f701e/sickbeard%2Fproviders%2Fthepiratebay.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Fthepiratebay.py?ref=9081e77fbd1bf70b5cea99302ab76ccb8c7f701e",
"patch": "@@ -239,7 +239,7 @@ def _doSearch(self, search_params, search_mode='eponly', epcount=0, age=0, epObj\n if not data:\n continue\n \n- re_title_url = self.proxy._buildRE(self.re_title_url)\n+ re_title_url = self.proxy._buildRE(self.re_title_url).replace('&f=norefer', '')\n matches = re.compile(re_title_url, re.DOTALL).finditer(urllib.unquote(data))\n for torrent in matches:\n title = torrent.group('title').replace('_',"
}
] |
SickRage
|
eea739fc4f6ea527be5e817389b3345f108d159a
|
fea10bdd9b8c65f6560dfaa0f35575bac7dc806e
|
sickbeard/databases/mainDB.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -128,7 +128,7 @@ class MainSanityCheck(db.DBSanityCheck):
curDate = datetime.date.today()
sqlResults = self.connection.select(
- "SELECT episode_id FROM tv_episodes WHERE (airdate > ? or airdate = 1) AND status in (?,?)",
+ "SELECT episode_id FROM tv_episodes WHERE (airdate > ? or airdate = 1) AND status in (?,?) AND season > 0",
[curDate.toordinal(), common.SKIPPED, common.WANTED])
for cur_unaired in sqlResults:
|
sqlResults = self . connection . select ( "SELECT episode_id FROM tv_episodes WHERE (airdate > ? or airdate = 1) AND status in (?,?)" , [ curDate . toordinal ( ) , common . SKIPPED , common . WANTED ] )
|
sqlResults = self . connection . select ( "SELECT episode_id FROM tv_episodes WHERE (airdate > ? or airdate = 1) AND status in (?,?) AND season > 0" , [ curDate . toordinal ( ) , common . SKIPPED , common . WANTED ] )
|
CHANGE_STRING_LITERAL
|
[["Update", ["string:\"SELECT episode_id FROM tv_episodes WHERE (airdate > ? or airdate = 1) AND status in (?,?)\"", 3, 13, 3, 104], "\"SELECT episode_id FROM tv_episodes WHERE (airdate > ? or airdate = 1) AND status in (?,?) AND season > 0\""]]
|
jackkiej/SickRage@eea739fc4f6ea527be5e817389b3345f108d159a
|
Dont fix episode status for special episodes
@miigotu
They are already set to SKIPPED in
https://github.com/SiCKRAGETV/SickRage/blob/develop/sickbeard/dailysearcher.py#L95
and
https://github.com/SiCKRAGETV/SickRage/blob/master/sickbeard/tv.py#L1782
|
[
{
"sha": "b329762722ff529d3d6816e4826afdc5cb60294b",
"filename": "sickbeard/databases/mainDB.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/eea739fc4f6ea527be5e817389b3345f108d159a/sickbeard%2Fdatabases%2FmainDB.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/eea739fc4f6ea527be5e817389b3345f108d159a/sickbeard%2Fdatabases%2FmainDB.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fdatabases%2FmainDB.py?ref=eea739fc4f6ea527be5e817389b3345f108d159a",
"patch": "@@ -128,7 +128,7 @@ def fix_unaired_episodes(self):\n curDate = datetime.date.today()\n \n sqlResults = self.connection.select(\n- \"SELECT episode_id FROM tv_episodes WHERE (airdate > ? or airdate = 1) AND status in (?,?)\",\n+ \"SELECT episode_id FROM tv_episodes WHERE (airdate > ? or airdate = 1) AND status in (?,?) AND season > 0\",\n [curDate.toordinal(), common.SKIPPED, common.WANTED])\n \n for cur_unaired in sqlResults:"
}
] |
SickRage
|
6a5523bb85f52d453a4f1b357ffa340036cd73fa
|
eea739fc4f6ea527be5e817389b3345f108d159a
|
sickbeard/webapi.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -1100,7 +1100,7 @@ class CMD_SubtitleSearch(ApiCall):
return _responds(RESULT_FAILURE, msg='Unable to find subtitles')
# return the correct json value
- newSubtitles = frozenset(ep_obj.subtitles).difference(previous_subtitles)
+ newSubtitles = frozenset(epObj.subtitles).difference(previous_subtitles)
if newSubtitles:
newLangs = [subtitles.fromietf(newSub) for newSub in newSubtitles]
status = 'New subtitles downloaded: %s' % ', '.join([newLang.name for newLang in newLangs])
|
newSubtitles = frozenset ( ep_obj . subtitles ) . difference ( previous_subtitles )
|
newSubtitles = frozenset ( epObj . subtitles ) . difference ( previous_subtitles )
|
CHANGE_IDENTIFIER_USED
|
[["Update", ["identifier:ep_obj", 3, 34, 3, 40], "epObj"]]
|
jackkiej/SickRage@6a5523bb85f52d453a4f1b357ffa340036cd73fa
|
Fixes SiCKRAGETV/sickrage-issues#2373
|
[
{
"sha": "733661f563c8c20114ea2cd45e054467ac29fc90",
"filename": "sickbeard/webapi.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/6a5523bb85f52d453a4f1b357ffa340036cd73fa/sickbeard%2Fwebapi.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/6a5523bb85f52d453a4f1b357ffa340036cd73fa/sickbeard%2Fwebapi.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fwebapi.py?ref=6a5523bb85f52d453a4f1b357ffa340036cd73fa",
"patch": "@@ -1100,7 +1100,7 @@ def run(self):\n return _responds(RESULT_FAILURE, msg='Unable to find subtitles')\n \n # return the correct json value\n- newSubtitles = frozenset(ep_obj.subtitles).difference(previous_subtitles)\n+ newSubtitles = frozenset(epObj.subtitles).difference(previous_subtitles)\n if newSubtitles:\n newLangs = [subtitles.fromietf(newSub) for newSub in newSubtitles]\n status = 'New subtitles downloaded: %s' % ', '.join([newLang.name for newLang in newLangs])"
}
] |
SickRage
|
c71d9495113a9a45df1eba05f5a9447e0f304229
|
eea739fc4f6ea527be5e817389b3345f108d159a
|
sickbeard/traktChecker.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -324,7 +324,7 @@ class TraktChecker():
logger.log(u"Could not connect to Trakt service: %s" % ex(e), logger.WARNING)
return
- if progress['aired'] == progress['completed']:
+ if 'aired' in progress and 'completed' in progress and progress['aired'] == progress['completed']:
show.deleteShow(full=True)
logger.log(u"Show: " + show.name + " has been removed from SickRage", logger.DEBUG)
|
if progress [ 'aired' ] == progress [ 'completed' ] : show . deleteShow ( full = True ) logger . log ( u"Show: " + show . name + " has been removed from SickRage" , logger . DEBUG )
|
if 'aired' in progress and 'completed' in progress and progress [ 'aired' ] == progress [ 'completed' ] : show . deleteShow ( full = True ) logger . log ( u"Show: " + show . name + " has been removed from SickRage" , logger . DEBUG )
|
MORE_SPECIFIC_IF
|
[["Insert", ["if_statement", 3, 25, 5, 112], ["boolean_operator", "N0"], 1], ["Insert", "N0", ["boolean_operator", "N1"], 0], ["Insert", "N0", ["and:and", "T"], 1], ["Move", "N0", ["comparison_operator", 3, 28, 3, 70], 2], ["Insert", "N1", ["comparison_operator", "N2"], 0], ["Insert", "N1", ["and:and", "T"], 1], ["Insert", "N1", ["comparison_operator", "N3"], 2], ["Insert", "N2", ["string:'aired'", "T"], 0], ["Insert", "N2", ["in:in", "T"], 1], ["Insert", "N2", ["identifier:progress", "T"], 2], ["Insert", "N3", ["string:'completed'", "T"], 0], ["Insert", "N3", ["in:in", "T"], 1], ["Insert", "N3", ["identifier:progress", "T"], 2]]
|
jackkiej/SickRage@c71d9495113a9a45df1eba05f5a9447e0f304229
|
Fixes SiCKRAGETV/sickrage-issues#2370
|
[
{
"sha": "de4b1b1f4086f922180b95923784021f999ebd14",
"filename": "sickbeard/traktChecker.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/c71d9495113a9a45df1eba05f5a9447e0f304229/sickbeard%2FtraktChecker.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/c71d9495113a9a45df1eba05f5a9447e0f304229/sickbeard%2FtraktChecker.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2FtraktChecker.py?ref=c71d9495113a9a45df1eba05f5a9447e0f304229",
"patch": "@@ -324,7 +324,7 @@ def removeShowFromSickRage(self):\n logger.log(u\"Could not connect to Trakt service: %s\" % ex(e), logger.WARNING)\n return\n \n- if progress['aired'] == progress['completed']:\n+ if 'aired' in progress and 'completed' in progress and progress['aired'] == progress['completed']:\n show.deleteShow(full=True)\n logger.log(u\"Show: \" + show.name + \" has been removed from SickRage\", logger.DEBUG)\n "
}
] |
SickRage
|
23b3a183e4705d8be35b8340f78178514d0e631f
|
1ec701e4c12b41d1a34f01ad6091b1fec09967a3
|
sickbeard/databases/mainDB.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -128,7 +128,7 @@ class MainSanityCheck(db.DBSanityCheck):
curDate = datetime.date.today()
sqlResults = self.connection.select(
- "SELECT episode_id FROM tv_episodes WHERE (airdate > ? or airdate = 1) AND status in (?,?)",
+ "SELECT episode_id FROM tv_episodes WHERE (airdate > ? or airdate = 1) AND status in (?,?) AND season > 0",
[curDate.toordinal(), common.SKIPPED, common.WANTED])
for cur_unaired in sqlResults:
|
sqlResults = self . connection . select ( "SELECT episode_id FROM tv_episodes WHERE (airdate > ? or airdate = 1) AND status in (?,?)" , [ curDate . toordinal ( ) , common . SKIPPED , common . WANTED ] )
|
sqlResults = self . connection . select ( "SELECT episode_id FROM tv_episodes WHERE (airdate > ? or airdate = 1) AND status in (?,?) AND season > 0" , [ curDate . toordinal ( ) , common . SKIPPED , common . WANTED ] )
|
CHANGE_STRING_LITERAL
|
[["Update", ["string:\"SELECT episode_id FROM tv_episodes WHERE (airdate > ? or airdate = 1) AND status in (?,?)\"", 3, 13, 3, 104], "\"SELECT episode_id FROM tv_episodes WHERE (airdate > ? or airdate = 1) AND status in (?,?) AND season > 0\""]]
|
jackkiej/SickRage@23b3a183e4705d8be35b8340f78178514d0e631f
|
Dont fix episode status for special episodes
@miigotu
They are already set to SKIPPED in
https://github.com/SiCKRAGETV/SickRage/blob/develop/sickbeard/dailysearcher.py#L95
and
https://github.com/SiCKRAGETV/SickRage/blob/master/sickbeard/tv.py#L1782
|
[
{
"sha": "b329762722ff529d3d6816e4826afdc5cb60294b",
"filename": "sickbeard/databases/mainDB.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/23b3a183e4705d8be35b8340f78178514d0e631f/sickbeard%2Fdatabases%2FmainDB.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/23b3a183e4705d8be35b8340f78178514d0e631f/sickbeard%2Fdatabases%2FmainDB.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fdatabases%2FmainDB.py?ref=23b3a183e4705d8be35b8340f78178514d0e631f",
"patch": "@@ -128,7 +128,7 @@ def fix_unaired_episodes(self):\n curDate = datetime.date.today()\n \n sqlResults = self.connection.select(\n- \"SELECT episode_id FROM tv_episodes WHERE (airdate > ? or airdate = 1) AND status in (?,?)\",\n+ \"SELECT episode_id FROM tv_episodes WHERE (airdate > ? or airdate = 1) AND status in (?,?) AND season > 0\",\n [curDate.toordinal(), common.SKIPPED, common.WANTED])\n \n for cur_unaired in sqlResults:"
}
] |
SickRage
|
83ff687b1a94050e4a13edbca826d9f0bb437ccb
|
23b3a183e4705d8be35b8340f78178514d0e631f
|
sickbeard/webapi.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -1100,7 +1100,7 @@ class CMD_SubtitleSearch(ApiCall):
return _responds(RESULT_FAILURE, msg='Unable to find subtitles')
# return the correct json value
- newSubtitles = frozenset(ep_obj.subtitles).difference(previous_subtitles)
+ newSubtitles = frozenset(epObj.subtitles).difference(previous_subtitles)
if newSubtitles:
newLangs = [subtitles.fromietf(newSub) for newSub in newSubtitles]
status = 'New subtitles downloaded: %s' % ', '.join([newLang.name for newLang in newLangs])
|
newSubtitles = frozenset ( ep_obj . subtitles ) . difference ( previous_subtitles )
|
newSubtitles = frozenset ( epObj . subtitles ) . difference ( previous_subtitles )
|
CHANGE_IDENTIFIER_USED
|
[["Update", ["identifier:ep_obj", 3, 34, 3, 40], "epObj"]]
|
jackkiej/SickRage@83ff687b1a94050e4a13edbca826d9f0bb437ccb
|
Fixes SiCKRAGETV/sickrage-issues#2373
|
[
{
"sha": "733661f563c8c20114ea2cd45e054467ac29fc90",
"filename": "sickbeard/webapi.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/83ff687b1a94050e4a13edbca826d9f0bb437ccb/sickbeard%2Fwebapi.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/83ff687b1a94050e4a13edbca826d9f0bb437ccb/sickbeard%2Fwebapi.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fwebapi.py?ref=83ff687b1a94050e4a13edbca826d9f0bb437ccb",
"patch": "@@ -1100,7 +1100,7 @@ def run(self):\n return _responds(RESULT_FAILURE, msg='Unable to find subtitles')\n \n # return the correct json value\n- newSubtitles = frozenset(ep_obj.subtitles).difference(previous_subtitles)\n+ newSubtitles = frozenset(epObj.subtitles).difference(previous_subtitles)\n if newSubtitles:\n newLangs = [subtitles.fromietf(newSub) for newSub in newSubtitles]\n status = 'New subtitles downloaded: %s' % ', '.join([newLang.name for newLang in newLangs])"
}
] |
SickRage
|
49ff2b0ab692b9cbe46b250350f80485696e7a4a
|
83ff687b1a94050e4a13edbca826d9f0bb437ccb
|
sickbeard/traktChecker.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -324,7 +324,7 @@ class TraktChecker():
logger.log(u"Could not connect to Trakt service: %s" % ex(e), logger.WARNING)
return
- if progress['aired'] == progress['completed']:
+ if 'aired' in progress and 'completed' in progress and progress['aired'] == progress['completed']:
show.deleteShow(full=True)
logger.log(u"Show: " + show.name + " has been removed from SickRage", logger.DEBUG)
|
if progress [ 'aired' ] == progress [ 'completed' ] : show . deleteShow ( full = True ) logger . log ( u"Show: " + show . name + " has been removed from SickRage" , logger . DEBUG )
|
if 'aired' in progress and 'completed' in progress and progress [ 'aired' ] == progress [ 'completed' ] : show . deleteShow ( full = True ) logger . log ( u"Show: " + show . name + " has been removed from SickRage" , logger . DEBUG )
|
MORE_SPECIFIC_IF
|
[["Insert", ["if_statement", 3, 25, 5, 112], ["boolean_operator", "N0"], 1], ["Insert", "N0", ["boolean_operator", "N1"], 0], ["Insert", "N0", ["and:and", "T"], 1], ["Move", "N0", ["comparison_operator", 3, 28, 3, 70], 2], ["Insert", "N1", ["comparison_operator", "N2"], 0], ["Insert", "N1", ["and:and", "T"], 1], ["Insert", "N1", ["comparison_operator", "N3"], 2], ["Insert", "N2", ["string:'aired'", "T"], 0], ["Insert", "N2", ["in:in", "T"], 1], ["Insert", "N2", ["identifier:progress", "T"], 2], ["Insert", "N3", ["string:'completed'", "T"], 0], ["Insert", "N3", ["in:in", "T"], 1], ["Insert", "N3", ["identifier:progress", "T"], 2]]
|
jackkiej/SickRage@49ff2b0ab692b9cbe46b250350f80485696e7a4a
|
Fixes SiCKRAGETV/sickrage-issues#2370
|
[
{
"sha": "de4b1b1f4086f922180b95923784021f999ebd14",
"filename": "sickbeard/traktChecker.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/49ff2b0ab692b9cbe46b250350f80485696e7a4a/sickbeard%2FtraktChecker.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/49ff2b0ab692b9cbe46b250350f80485696e7a4a/sickbeard%2FtraktChecker.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2FtraktChecker.py?ref=49ff2b0ab692b9cbe46b250350f80485696e7a4a",
"patch": "@@ -324,7 +324,7 @@ def removeShowFromSickRage(self):\n logger.log(u\"Could not connect to Trakt service: %s\" % ex(e), logger.WARNING)\n return\n \n- if progress['aired'] == progress['completed']:\n+ if 'aired' in progress and 'completed' in progress and progress['aired'] == progress['completed']:\n show.deleteShow(full=True)\n logger.log(u\"Show: \" + show.name + \" has been removed from SickRage\", logger.DEBUG)\n "
}
] |
SickRage
|
a9b7e3fd1416b137a1788932c259929b4fd06d5a
|
8fa7a4bb777c9192bd706115579e540eed8461b2
|
sickbeard/webapi.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -1302,7 +1302,7 @@ class CMD_Backlog(ApiCall):
showEps = []
sqlResults = myDB.select(
- "SELECT * FROM tv_episodes WHERE showid = ? ORDER BY season DESC, episode DESC",
+ "SELECT tv_episodes.*, tv_shows.paused FROM tv_episodes INNER JOIN tv_shows ON tv_episodes.showid = tv_shows.indexer_id WHERE showid = ? and paused = 0 ORDER BY season DESC, episode DESC",
[curShow.indexerid])
for curResult in sqlResults:
|
sqlResults = myDB . select ( "SELECT * FROM tv_episodes WHERE showid = ? ORDER BY season DESC, episode DESC" , [ curShow . indexerid ] )
|
sqlResults = myDB . select ( "SELECT tv_episodes.*, tv_shows.paused FROM tv_episodes INNER JOIN tv_shows ON tv_episodes.showid = tv_shows.indexer_id WHERE showid = ? and paused = 0 ORDER BY season DESC, episode DESC" , [ curShow . indexerid ] )
|
CHANGE_STRING_LITERAL
|
[["Update", ["string:\"SELECT * FROM tv_episodes WHERE showid = ? ORDER BY season DESC, episode DESC\"", 3, 17, 3, 96], "\"SELECT tv_episodes.*, tv_shows.paused FROM tv_episodes INNER JOIN tv_shows ON tv_episodes.showid = tv_shows.indexer_id WHERE showid = ? and paused = 0 ORDER BY season DESC, episode DESC\""]]
|
jackkiej/SickRage@a9b7e3fd1416b137a1788932c259929b4fd06d5a
|
Paused Shows are Showing in webapi Backlog Query
Updating the SQL query to include paused value from tv_shows table, allows for filtering of non-paused shows only.
Currently paused shows are being included in webapi backlog query.
Please see me full explanation in my comment dated today in issue #2267.
https://github.com/SiCKRAGETV/sickrage-issues/issues/2267
|
[
{
"sha": "e1133420ad6269c42b025ed9a2e54d916df94fab",
"filename": "sickbeard/webapi.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/a9b7e3fd1416b137a1788932c259929b4fd06d5a/sickbeard%2Fwebapi.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/a9b7e3fd1416b137a1788932c259929b4fd06d5a/sickbeard%2Fwebapi.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fwebapi.py?ref=a9b7e3fd1416b137a1788932c259929b4fd06d5a",
"patch": "@@ -1302,7 +1302,7 @@ def run(self):\n showEps = []\n \n sqlResults = myDB.select(\n- \"SELECT * FROM tv_episodes WHERE showid = ? ORDER BY season DESC, episode DESC\",\n+ \"SELECT tv_episodes.*, tv_shows.paused FROM tv_episodes INNER JOIN tv_shows ON tv_episodes.showid = tv_shows.indexer_id WHERE showid = ? and paused = 0 ORDER BY season DESC, episode DESC\",\n [curShow.indexerid])\n \n for curResult in sqlResults:"
}
] |
SickRage
|
04854690bf2ed22ef4d34b9a0755c29ecd7e04e2
|
633b1d5e45075636183fe5a8ab4ecea40a231efa
|
sickbeard/scene_exceptions.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -294,7 +294,7 @@ def _xem_exceptions_fetcher():
for indexer in sickbeard.indexerApi().indexers:
logger.log(u"Checking for XEM scene exception updates for " + sickbeard.indexerApi(indexer).name)
- url = "http://thexem.de/map/allNames?origin=%s&seasonNumbers=1" % sickbeard.indexerApi(indexer).config[
+ url = "http://thexem.de/map/allNames?origin=%s&seasonNumbers=1&language=us" % sickbeard.indexerApi(indexer).config[
'xem_origin']
parsedJSON = helpers.getURL(url, session=xem_session, timeout = 90, json=True)
|
url = "http://thexem.de/map/allNames?origin=%s&seasonNumbers=1" % sickbeard . indexerApi ( indexer ) . config [ 'xem_origin' ]
|
url = "http://thexem.de/map/allNames?origin=%s&seasonNumbers=1&language=us" % sickbeard . indexerApi ( indexer ) . config [ 'xem_origin' ]
|
CHANGE_BINARY_OPERAND
|
[["Update", ["string:\"http://thexem.de/map/allNames?origin=%s&seasonNumbers=1\"", 3, 19, 3, 76], "\"http://thexem.de/map/allNames?origin=%s&seasonNumbers=1&language=us\""]]
|
jackkiej/SickRage@04854690bf2ed22ef4d34b9a0755c29ecd7e04e2
|
Use only US language scene exceptions from thexem.
Currently the scene exceptions downloaded from thexem.de contain all languages. Meaning also alias names of all other languages.
Example for the show "Pawn Stars" the German alias "Die Drei vom Pfandhaus" gets added as a scene exception.
What can unintendedly result in snatching the German version of the show.
Another problem is that SickRage does an extra search for every individual scene name,
so its important to have the scene exceptions as correctly/accurate as possible to prevent wasting a API request.
Last it could solve some locale issues for Animi. As there are probably some Japanese characters in some of the scene names.
|
[
{
"sha": "a6e49242782e9e00996bd05bb16fca4e995662e3",
"filename": "sickbeard/scene_exceptions.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/04854690bf2ed22ef4d34b9a0755c29ecd7e04e2/sickbeard%2Fscene_exceptions.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/04854690bf2ed22ef4d34b9a0755c29ecd7e04e2/sickbeard%2Fscene_exceptions.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fscene_exceptions.py?ref=04854690bf2ed22ef4d34b9a0755c29ecd7e04e2",
"patch": "@@ -294,7 +294,7 @@ def _xem_exceptions_fetcher():\n for indexer in sickbeard.indexerApi().indexers:\n logger.log(u\"Checking for XEM scene exception updates for \" + sickbeard.indexerApi(indexer).name)\n \n- url = \"http://thexem.de/map/allNames?origin=%s&seasonNumbers=1\" % sickbeard.indexerApi(indexer).config[\n+ url = \"http://thexem.de/map/allNames?origin=%s&seasonNumbers=1&language=us\" % sickbeard.indexerApi(indexer).config[\n 'xem_origin']\n \n parsedJSON = helpers.getURL(url, session=xem_session, timeout = 90, json=True)"
}
] |
SickRage
|
3c2e42da647e6dc52be0c0ec2ce8fcc9d3b3aff7
|
fc1adc3edd6662d898435a9d347f4e7088395731
|
sickbeard/notifiers/plex.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -197,7 +197,7 @@ class PLEXNotifier:
req.add_header('Authorization', authheader)
req.add_header('X-Plex-Device-Name', 'SickRage')
req.add_header('X-Plex-Product', 'SickRage Notifier')
- req.add_header('X-Plex-Client-Identifier', sickbeard.CUR_COMMIT_HASH)
+ req.add_header('X-Plex-Client-Identifier', sickbeard.common.USER_AGENT)
req.add_header('X-Plex-Version', '1.0')
try:
|
req . add_header ( 'X-Plex-Client-Identifier' , sickbeard . CUR_COMMIT_HASH )
|
req . add_header ( 'X-Plex-Client-Identifier' , sickbeard . common . USER_AGENT )
|
SINGLE_STMT
|
[["Insert", ["attribute", 3, 60, 3, 85], ["attribute", "N0"], 0], ["Insert", ["attribute", 3, 60, 3, 85], [".:.", "T"], 1], ["Insert", ["attribute", 3, 60, 3, 85], ["identifier:USER_AGENT", "T"], 2], ["Move", "N0", ["identifier:sickbeard", 3, 60, 3, 69], 0], ["Move", "N0", [".:.", 3, 69, 3, 70], 1], ["Update", ["identifier:CUR_COMMIT_HASH", 3, 70, 3, 85], "common"], ["Move", "N0", ["identifier:CUR_COMMIT_HASH", 3, 70, 3, 85], 2]]
|
jackkiej/SickRage@3c2e42da647e6dc52be0c0ec2ce8fcc9d3b3aff7
|
Change PLEX Identifier to user agent
https://github.com/SiCKRAGETV/sickrage-issues/issues/2403
|
[
{
"sha": "3996b5d005215745c1426419a681b10f3c4838f2",
"filename": "sickbeard/notifiers/plex.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/3c2e42da647e6dc52be0c0ec2ce8fcc9d3b3aff7/sickbeard%2Fnotifiers%2Fplex.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/3c2e42da647e6dc52be0c0ec2ce8fcc9d3b3aff7/sickbeard%2Fnotifiers%2Fplex.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fnotifiers%2Fplex.py?ref=3c2e42da647e6dc52be0c0ec2ce8fcc9d3b3aff7",
"patch": "@@ -197,7 +197,7 @@ def update_library(self, ep_obj=None, host=None, username=None, password=None, p\n req.add_header('Authorization', authheader)\n req.add_header('X-Plex-Device-Name', 'SickRage')\n req.add_header('X-Plex-Product', 'SickRage Notifier')\n- req.add_header('X-Plex-Client-Identifier', sickbeard.CUR_COMMIT_HASH)\n+ req.add_header('X-Plex-Client-Identifier', sickbeard.common.USER_AGENT)\n req.add_header('X-Plex-Version', '1.0')\n \n try:"
}
] |
SickRage
|
f58bc28189fc7aa54f1262da6f9557285a742900
|
04b138cdc6f0cebcc644bf529a24eda2782ea701
|
sickbeard/metadata/generic.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -709,9 +709,9 @@ class GenericMetadata():
return False
image_dir = ek.ek(os.path.dirname, image_path)
-
+
if not image_data:
- logger.log(u"Unable to retrieve image to %s to save in %s, skipping" % ( ek.ss(obj.prettyName()), ek.ss(image_dir) ), logger.WARNING)
+ logger.log(u"Unable to retrieve image to %s to save in %s, skipping" % ( ek.ss(obj.prettyName() if obj else "(obj is None)"), ek.ss(image_path) ), logger.WARNING)
return False
|
logger . log ( u"Unable to retrieve image to %s to save in %s, skipping" % ( ek . ss ( obj . prettyName ( ) ) , ek . ss ( image_dir ) ) , logger . WARNING )
|
logger . log ( u"Unable to retrieve image to %s to save in %s, skipping" % ( ek . ss ( obj . prettyName ( ) if obj else "(obj is None)" ) , ek . ss ( image_path ) ) , logger . WARNING )
|
CHANGE_BINARY_OPERAND
|
[["Insert", ["argument_list", 5, 91, 5, 109], ["conditional_expression", "N0"], 1], ["Update", ["identifier:image_dir", 5, 117, 5, 126], "image_path"], ["Move", "N0", ["call", 5, 92, 5, 108], 0], ["Insert", "N0", ["if:if", "T"], 1], ["Insert", "N0", ["identifier:obj", "T"], 2], ["Insert", "N0", ["else:else", "T"], 3], ["Insert", "N0", ["string:\"(obj is None)\"", "T"], 4]]
|
jackkiej/SickRage@f58bc28189fc7aa54f1262da6f9557285a742900
|
Fix exception when obj is null in generating meta images
|
[
{
"sha": "672faa8264bd876e71f6e7833b7b94ba597ca951",
"filename": "sickbeard/metadata/generic.py",
"status": "modified",
"additions": 3,
"deletions": 3,
"changes": 6,
"blob_url": "https://github.com/jackkiej/SickRage/blob/f58bc28189fc7aa54f1262da6f9557285a742900/sickbeard%2Fmetadata%2Fgeneric.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/f58bc28189fc7aa54f1262da6f9557285a742900/sickbeard%2Fmetadata%2Fgeneric.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fmetadata%2Fgeneric.py?ref=f58bc28189fc7aa54f1262da6f9557285a742900",
"patch": "@@ -709,9 +709,9 @@ def _write_image(self, image_data, image_path, obj = None):\n return False\n \n image_dir = ek.ek(os.path.dirname, image_path)\n- \n+\n if not image_data:\n- logger.log(u\"Unable to retrieve image to %s to save in %s, skipping\" % ( ek.ss(obj.prettyName()), ek.ss(image_dir) ), logger.WARNING)\n+ logger.log(u\"Unable to retrieve image to %s to save in %s, skipping\" % ( ek.ss(obj.prettyName() if obj else \"(obj is None)\"), ek.ss(image_path) ), logger.WARNING)\n return False\n \n try:\n@@ -763,7 +763,7 @@ def _retrieve_show_image(self, image_type, show_obj, which=None):\n except (sickbeard.indexer_error, IOError), e:\n logger.log(u\"Unable to look up show on \" + sickbeard.indexerApi(\n show_obj.indexer).name + \", not downloading images: \" + ex(e), logger.WARNING)\n- logger.log(u\"Indexer \" + sickbeard.indexerApi(show_obj.indexer).name + \"maybe experiencing some problems. Try again later\", logger.DEBUG) \n+ logger.log(u\"Indexer \" + sickbeard.indexerApi(show_obj.indexer).name + \"maybe experiencing some problems. Try again later\", logger.DEBUG)\n return None\n \n if image_type not in ('fanart', 'poster', 'banner', 'poster_thumb', 'banner_thumb'):"
}
] |
SickRage
|
579681386e084d32dec68d5c24447a73c1f0e185
|
9bef354899c86cb2ac72f7564828a41d7ecfd60c
|
sickbeard/name_parser/parser.py
|
https://github.com/jackkiej/SickRage
| true | false | false |
@@ -44,7 +44,7 @@ class NameParser(object):
self.naming_pattern = naming_pattern
self.regexModes = [self.NORMAL_REGEX, self.SPORTS_REGEX, self.ANIME_REGEX]
- if self.showObj and not (self.showObj.is_anime or self.showObj.is_sports):
+ if self.showObj and not self.showObj.is_anime and not self.showObj.is_sports:
self.regexModes = [self.NORMAL_REGEX]
elif self.showObj and self.showObj.is_anime:
self.regexModes = [self.ANIME_REGEX]
|
if self . showObj and not ( self . showObj . is_anime or self . showObj . is_sports ) : self . regexModes = [ self . NORMAL_REGEX ] elif self . showObj and self . showObj . is_anime : self . regexModes = [ self . ANIME_REGEX ]
|
if self . showObj and not self . showObj . is_anime and not self . showObj . is_sports : self . regexModes = [ self . NORMAL_REGEX ] elif self . showObj and self . showObj . is_anime : self . regexModes = [ self . ANIME_REGEX ]
|
SINGLE_STMT
|
[["Move", ["not_operator", 3, 29, 3, 82], ["boolean_operator", 3, 34, 3, 81], 1], ["Insert", ["boolean_operator", 3, 34, 3, 81], ["and:and", "T"], 1], ["Insert", ["boolean_operator", 3, 34, 3, 81], ["not_operator", "N0"], 2], ["Insert", "N0", ["not:not", "T"], 0], ["Move", "N0", ["attribute", 3, 59, 3, 81], 1], ["Delete", ["(:(", 3, 33, 3, 34]], ["Delete", ["or:or", 3, 56, 3, 58]], ["Delete", ["):)", 3, 81, 3, 82]], ["Delete", ["parenthesized_expression", 3, 33, 3, 82]]]
|
jackkiej/SickRage@579681386e084d32dec68d5c24447a73c1f0e185
|
Another test fix for anime PP issues
|
[
{
"sha": "b594fff93614cfd5a2a31653db0ac7aae2abfb9b",
"filename": "sickbeard/name_parser/parser.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/579681386e084d32dec68d5c24447a73c1f0e185/sickbeard%2Fname_parser%2Fparser.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/579681386e084d32dec68d5c24447a73c1f0e185/sickbeard%2Fname_parser%2Fparser.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fname_parser%2Fparser.py?ref=579681386e084d32dec68d5c24447a73c1f0e185",
"patch": "@@ -44,7 +44,7 @@ def __init__(self, file_name=True, showObj=None, useIndexers=False, convert=Fals\n self.naming_pattern = naming_pattern\n \n self.regexModes = [self.NORMAL_REGEX, self.SPORTS_REGEX, self.ANIME_REGEX]\n- if self.showObj and not (self.showObj.is_anime or self.showObj.is_sports):\n+ if self.showObj and not self.showObj.is_anime and not self.showObj.is_sports:\n self.regexModes = [self.NORMAL_REGEX]\n elif self.showObj and self.showObj.is_anime:\n self.regexModes = [self.ANIME_REGEX]"
}
] |
SickRage
|
c63c5e43d62015ee5fba5a7d97495ec1799424fa
|
f6d662ca6be010f9fea8bdfc30fa8712f8efb248
|
sickbeard/properFinder.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -131,7 +131,7 @@ class ProperFinder():
# populate our Proper instance
if parse_result.is_air_by_date or parse_result.is_sports:
curProper.season = -1
- curProper.episode = parse_result.air_date or parse_result.is_sports_air_date
+ curProper.episode = parse_result.air_date or parse_result.sports_air_date
else:
if parse_result.is_anime:
logger.log(u"I am sorry '"+curProper.name+"' seams to be an anime proper seach is not yet suported", logger.DEBUG)
|
curProper . episode = parse_result . air_date or parse_result . is_sports_air_date
|
curProper . episode = parse_result . air_date or parse_result . sports_air_date
|
CHANGE_ATTRIBUTE_USED
|
[["Update", ["identifier:is_sports_air_date", 3, 75, 3, 93], "sports_air_date"]]
|
jackkiej/SickRage@c63c5e43d62015ee5fba5a7d97495ec1799424fa
|
Fix proper searches with ABD and sports
|
[
{
"sha": "055488e7d286b32646369e05d1a3b443c12f588a",
"filename": "sickbeard/properFinder.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/c63c5e43d62015ee5fba5a7d97495ec1799424fa/sickbeard%2FproperFinder.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/c63c5e43d62015ee5fba5a7d97495ec1799424fa/sickbeard%2FproperFinder.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2FproperFinder.py?ref=c63c5e43d62015ee5fba5a7d97495ec1799424fa",
"patch": "@@ -131,7 +131,7 @@ def _getProperList(self):\n # populate our Proper instance\n if parse_result.is_air_by_date or parse_result.is_sports:\n curProper.season = -1\n- curProper.episode = parse_result.air_date or parse_result.is_sports_air_date\n+ curProper.episode = parse_result.air_date or parse_result.sports_air_date\n else:\n if parse_result.is_anime:\n logger.log(u\"I am sorry '\"+curProper.name+\"' seams to be an anime proper seach is not yet suported\", logger.DEBUG)"
}
] |
SickRage
|
899d03b5feb3184c6e58ad7173126166a76f6cbf
|
bf41ba59be87bb9385bc67ece53bf51f25127a2e
|
sickbeard/providers/generic.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -270,7 +270,7 @@ class GenericProvider:
for item in itemList:
quality = self.getQuality(item, anime=show.is_anime)
if quality == Quality.UNKNOWN:
- itemsUnknown += item
+ itemsUnknown += [item]
else:
if quality not in items:
items[quality] = [item]
|
itemsUnknown += item
|
itemsUnknown += [ item ]
|
SINGLE_STMT
|
[["Insert", ["augmented_assignment", 3, 21, 3, 41], ["list", "N0"], 2], ["Insert", "N0", ["[:[", "T"], 0], ["Move", "N0", ["identifier:item", 3, 37, 3, 41], 1], ["Insert", "N0", ["]:]", "T"], 2]]
|
jackkiej/SickRage@899d03b5feb3184c6e58ad7173126166a76f6cbf
|
Fixed issue with appending UNNOWN qualities to provider results after being sorted.
|
[
{
"sha": "44f2795d53580950386e8f74db79150e1850919d",
"filename": "sickbeard/providers/generic.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/899d03b5feb3184c6e58ad7173126166a76f6cbf/sickbeard%2Fproviders%2Fgeneric.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/899d03b5feb3184c6e58ad7173126166a76f6cbf/sickbeard%2Fproviders%2Fgeneric.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Fgeneric.py?ref=899d03b5feb3184c6e58ad7173126166a76f6cbf",
"patch": "@@ -270,7 +270,7 @@ def findSearchResults(self, show, season, episodes, search_mode, manualSearch=Fa\n for item in itemList:\n quality = self.getQuality(item, anime=show.is_anime)\n if quality == Quality.UNKNOWN:\n- itemsUnknown += item\n+ itemsUnknown += [item]\n else:\n if quality not in items:\n items[quality] = [item]"
}
] |
SickRage
|
0e5fbbc5c3a6b437912b21faf03d3f32c8763d73
|
bb437299d5403a9f72a98c24661b8894089bbc0b
|
sickbeard/providers/generic.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -288,7 +288,7 @@ class GenericProvider:
# parse the file name
try:
- myParser = NameParser(False, showObj=show, convert=True)
+ myParser = NameParser(False, convert=True)
parse_result = myParser.parse(title)
except InvalidNameException:
|
myParser = NameParser ( False , showObj = show , convert = True )
|
myParser = NameParser ( False , convert = True )
|
SAME_FUNCTION_LESS_ARGS
|
[["Delete", ["identifier:showObj", 3, 46, 3, 53]], ["Delete", ["=:=", 3, 53, 3, 54]], ["Delete", ["identifier:show", 3, 54, 3, 58]], ["Delete", ["keyword_argument", 3, 46, 3, 58]], ["Delete", [",:,", 3, 58, 3, 59]]]
|
jackkiej/SickRage@0e5fbbc5c3a6b437912b21faf03d3f32c8763d73
|
Fix for incorrect show snatches
|
[
{
"sha": "b608886120dd5a553e9a24c0513b1447f8dae6b9",
"filename": "sickbeard/providers/generic.py",
"status": "modified",
"additions": 2,
"deletions": 2,
"changes": 4,
"blob_url": "https://github.com/jackkiej/SickRage/blob/0e5fbbc5c3a6b437912b21faf03d3f32c8763d73/sickbeard%2Fproviders%2Fgeneric.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/0e5fbbc5c3a6b437912b21faf03d3f32c8763d73/sickbeard%2Fproviders%2Fgeneric.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Fgeneric.py?ref=0e5fbbc5c3a6b437912b21faf03d3f32c8763d73",
"patch": "@@ -288,7 +288,7 @@ def findSearchResults(self, show, season, episodes, search_mode, manualSearch=Fa\n \n # parse the file name\n try:\n- myParser = NameParser(False, showObj=show, convert=True)\n+ myParser = NameParser(False, convert=True)\n parse_result = myParser.parse(title)\n except InvalidNameException:\n logger.log(u\"Unable to parse the filename \" + title + \" into a valid episode\", logger.DEBUG)\n@@ -439,4 +439,4 @@ class TorrentProvider(GenericProvider):\n def __init__(self, name):\n GenericProvider.__init__(self, name)\n \n- self.providerType = GenericProvider.TORRENT\n\\ No newline at end of file\n+ self.providerType = GenericProvider.TORRENT"
}
] |
SickRage
|
877c35cb164d4c71700c28e7499600ffd5b20c21
|
0e5fbbc5c3a6b437912b21faf03d3f32c8763d73
|
sickbeard/notifiers/pushbullet.py
|
https://github.com/jackkiej/SickRage
| true | false | false |
@@ -67,7 +67,7 @@ class PushbulletNotifier:
pushbullet_device = sickbeard.PUSHBULLET_DEVICE
if method == 'POST':
- uri = '/api/pushes'
+ uri = '/v2/pushes'
else:
uri = '/api/devices'
|
uri = '/api/pushes'
|
uri = '/v2/pushes'
|
CHANGE_STRING_LITERAL
|
[["Update", ["string:'/api/pushes'", 3, 19, 3, 32], "'/v2/pushes'"]]
|
jackkiej/SickRage@877c35cb164d4c71700c28e7499600ffd5b20c21
|
Fixed: pushbullet notifications don't work
Apparently the pushpubllet api URL has changed. I suspect it will be the case, in the future, to update the devices url (and maybe code) as well.
|
[
{
"sha": "b4fa360c1ac127fd76446f8a5566c124c4e7c3b7",
"filename": "sickbeard/notifiers/pushbullet.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/877c35cb164d4c71700c28e7499600ffd5b20c21/sickbeard%2Fnotifiers%2Fpushbullet.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/877c35cb164d4c71700c28e7499600ffd5b20c21/sickbeard%2Fnotifiers%2Fpushbullet.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fnotifiers%2Fpushbullet.py?ref=877c35cb164d4c71700c28e7499600ffd5b20c21",
"patch": "@@ -67,7 +67,7 @@ def _sendPushbullet(self, pushbullet_api=None, pushbullet_device=None, event=Non\n pushbullet_device = sickbeard.PUSHBULLET_DEVICE\n \n if method == 'POST':\n- uri = '/api/pushes'\n+ uri = '/v2/pushes'\n else:\n uri = '/api/devices'\n "
}
] |
SickRage
|
ef8b4e587dd63c7568d8d0938b27aa90ef19d248
|
a8bcbc66c37fe4b0020bc6aab364bb6f3795b66d
|
sickbeard/webserve.py
|
https://github.com/jackkiej/SickRage
| true | false | false |
@@ -1506,7 +1506,7 @@ class ConfigGeneral(MainHandler):
sickbeard.save_config()
- sickbeard.versionCheckScheduler.action.checkout_branch(git_branch)
+ sickbeard.versionCheckScheduler.action.update(git_branch)
if len(results) > 0:
for x in results:
|
sickbeard . versionCheckScheduler . action . checkout_branch ( git_branch )
|
sickbeard . versionCheckScheduler . action . update ( git_branch )
|
WRONG_FUNCTION_NAME
|
[["Update", ["identifier:checkout_branch", 3, 48, 3, 63], "update"]]
|
jackkiej/SickRage@ef8b4e587dd63c7568d8d0938b27aa90ef19d248
|
Fixed code that was preventing branch checkouts from working.
|
[
{
"sha": "638883f59914c23211a845fe6bb94c4ed42b230b",
"filename": "sickbeard/webserve.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/ef8b4e587dd63c7568d8d0938b27aa90ef19d248/sickbeard%2Fwebserve.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/ef8b4e587dd63c7568d8d0938b27aa90ef19d248/sickbeard%2Fwebserve.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fwebserve.py?ref=ef8b4e587dd63c7568d8d0938b27aa90ef19d248",
"patch": "@@ -1506,7 +1506,7 @@ def saveGeneral(self, log_dir=None, web_port=None, web_log=None, encryption_vers\n \n sickbeard.save_config()\n \n- sickbeard.versionCheckScheduler.action.checkout_branch(git_branch)\n+ sickbeard.versionCheckScheduler.action.update(git_branch)\n \n if len(results) > 0:\n for x in results:"
}
] |
SickRage
|
b4efb2d641b0649618176c30b3dcd792849221cb
|
39fe8e84778edf67d092a149e3c656d7ebd3179b
|
sickbeard/versionChecker.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -117,7 +117,7 @@ class CheckVersion():
def update(self):
# update branch with current config branch value
- self.updater.branch == sickbeard.BRANCH
+ self.updater.branch = sickbeard.BRANCH
# check for updates
if self.updater.need_update():
|
self . updater . branch == sickbeard . BRANCH
|
self . updater . branch = sickbeard . BRANCH
|
CHANGE_BINARY_OPERATOR
|
[["Insert", ["expression_statement", 3, 9, 3, 48], ["assignment", "N0"], 0], ["Move", "N0", ["attribute", 3, 9, 3, 28], 0], ["Insert", "N0", ["=:=", "T"], 1], ["Move", "N0", ["attribute", 3, 32, 3, 48], 2], ["Delete", ["==:==", 3, 29, 3, 31]], ["Delete", ["comparison_operator", 3, 9, 3, 48]]]
|
jackkiej/SickRage@b4efb2d641b0649618176c30b3dcd792849221cb
|
Fixed a small typo in versionChecker
|
[
{
"sha": "ea703100aa8eb2245fab34d09abb66ea1ddb94f7",
"filename": "sickbeard/versionChecker.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/b4efb2d641b0649618176c30b3dcd792849221cb/sickbeard%2FversionChecker.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/b4efb2d641b0649618176c30b3dcd792849221cb/sickbeard%2FversionChecker.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2FversionChecker.py?ref=b4efb2d641b0649618176c30b3dcd792849221cb",
"patch": "@@ -117,7 +117,7 @@ def check_for_new_version(self, force=False):\n \n def update(self):\n # update branch with current config branch value\n- self.updater.branch == sickbeard.BRANCH\n+ self.updater.branch = sickbeard.BRANCH\n \n # check for updates\n if self.updater.need_update():"
}
] |
SickRage
|
ff9c8ae82cf797cc0887de266b841d79f8472703
|
1908c74e9699d4fa9bfb922785409affcc48e39f
|
sickbeard/notifiers/xbmc.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -143,7 +143,7 @@ class XBMCNotifier:
command = '{"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"%s","message":"%s", "image": "%s"},"id":1}' % (
title.encode("utf-8"), message.encode("utf-8"), self.sb_logo_url)
notifyResult = self._send_to_xbmc_json(command, curHost, username, password)
- if getattr(notifyResult, 'result', None):
+ if notifyResult.get('result'):
result += curHost + ':' + notifyResult["result"].decode(sickbeard.SYS_ENCODING)
else:
if sickbeard.XBMC_ALWAYS_ON or force:
|
if getattr ( notifyResult , 'result' , None ) : result += curHost + ':' + notifyResult [ "result" ] . decode ( sickbeard . SYS_ENCODING ) else : if sickbeard . XBMC_ALWAYS_ON or force :
|
if notifyResult . get ( 'result' ) : result += curHost + ':' + notifyResult [ "result" ] . decode ( sickbeard . SYS_ENCODING ) else : if sickbeard . XBMC_ALWAYS_ON or force :
|
SINGLE_STMT
|
[["Insert", ["call", 3, 24, 3, 61], ["attribute", "N0"], 0], ["Move", "N0", ["identifier:notifyResult", 3, 32, 3, 44], 0], ["Insert", "N0", [".:.", "T"], 1], ["Insert", "N0", ["identifier:get", "T"], 2], ["Delete", ["identifier:getattr", 3, 24, 3, 31]], ["Delete", [",:,", 3, 44, 3, 45]], ["Delete", [",:,", 3, 54, 3, 55]], ["Delete", ["none:None", 3, 56, 3, 60]]]
|
jackkiej/SickRage@ff9c8ae82cf797cc0887de266b841d79f8472703
|
Fixed notifier failing when it shouldn't
|
[
{
"sha": "f1873f2983cae5aa9173975f229023f36126dd5d",
"filename": "sickbeard/notifiers/xbmc.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/ff9c8ae82cf797cc0887de266b841d79f8472703/sickbeard%2Fnotifiers%2Fxbmc.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/ff9c8ae82cf797cc0887de266b841d79f8472703/sickbeard%2Fnotifiers%2Fxbmc.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fnotifiers%2Fxbmc.py?ref=ff9c8ae82cf797cc0887de266b841d79f8472703",
"patch": "@@ -143,7 +143,7 @@ def _notify_xbmc(self, message, title=\"SickRage\", host=None, username=None, pass\n command = '{\"jsonrpc\":\"2.0\",\"method\":\"GUI.ShowNotification\",\"params\":{\"title\":\"%s\",\"message\":\"%s\", \"image\": \"%s\"},\"id\":1}' % (\n title.encode(\"utf-8\"), message.encode(\"utf-8\"), self.sb_logo_url)\n notifyResult = self._send_to_xbmc_json(command, curHost, username, password)\n- if getattr(notifyResult, 'result', None):\n+ if notifyResult.get('result'):\n result += curHost + ':' + notifyResult[\"result\"].decode(sickbeard.SYS_ENCODING)\n else:\n if sickbeard.XBMC_ALWAYS_ON or force:"
}
] |
SickRage
|
16ae4c1db7f7f6b7ef684b8b3f2221ed5fa6662b
|
9714fc3299774e013fec3c74c12b701d653ecd61
|
sickbeard/search.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -177,7 +177,7 @@ def filter_release_name(name, filter_words):
if filter_words:
- filters = [re.compile('(^|[\W_])%s($|[\W_])' % filter.strip(), re.I) for filter in filter_words.split(',')]
+ filters = [re.compile('.*%s.*' % filter.strip(), re.I) for filter in filter_words.split(',')]
for regfilter in filters:
if regfilter.search(name):
logger.log(u"" + name + " contains pattern: " + regfilter.pattern, logger.DEBUG)
|
filters = [ re . compile ( '(^|[\W_])%s($|[\W_])' % filter . strip ( ) , re . I ) for filter in filter_words . split ( ',' ) ]
|
filters = [ re . compile ( '.*%s.*' % filter . strip ( ) , re . I ) for filter in filter_words . split ( ',' ) ]
|
CHANGE_BINARY_OPERAND
|
[["Update", ["string:'(^|[\\W_])%s($|[\\W_])'", 1, 31, 1, 53], "'.*%s.*'"]]
|
jackkiej/SickRage@16ae4c1db7f7f6b7ef684b8b3f2221ed5fa6662b
|
Fixed search pattern for checking ignored and required words in release names
|
[
{
"sha": "beb3283825773c891d7bcd36fd5eec44eea7bec5",
"filename": "sickbeard/search.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/16ae4c1db7f7f6b7ef684b8b3f2221ed5fa6662b/sickbeard%2Fsearch.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/16ae4c1db7f7f6b7ef684b8b3f2221ed5fa6662b/sickbeard%2Fsearch.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fsearch.py?ref=16ae4c1db7f7f6b7ef684b8b3f2221ed5fa6662b",
"patch": "@@ -177,7 +177,7 @@ def filter_release_name(name, filter_words):\n Returns: False if the release name is OK, True if it contains one of the filter_words\n \"\"\"\n if filter_words:\n- filters = [re.compile('(^|[\\W_])%s($|[\\W_])' % filter.strip(), re.I) for filter in filter_words.split(',')]\n+ filters = [re.compile('.*%s.*' % filter.strip(), re.I) for filter in filter_words.split(',')]\n for regfilter in filters:\n if regfilter.search(name):\n logger.log(u\"\" + name + \" contains pattern: \" + regfilter.pattern, logger.DEBUG)"
}
] |
SickRage
|
66f962f89b2d4f4dbbdc721bcbcdf1728a8f7893
|
9714fc3299774e013fec3c74c12b701d653ecd61
|
sickbeard/providers/thepiratebay.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -196,7 +196,7 @@ class ThePirateBayProvider(generic.TorrentProvider):
if self.show.air_by_date:
for show_name in set(allPossibleShowNames(self.show)):
ep_string = sanitizeSceneName(show_name) + ' ' + \
- str(ep_obj.airdate).replace('-', '|')
+ str(ep_obj.airdate).replace('-', ' ')
search_string['Episode'].append(ep_string)
elif self.show.sports:
for show_name in set(allPossibleShowNames(self.show)):
|
ep_string = sanitizeSceneName ( show_name ) + ' ' + str ( ep_obj . airdate ) . replace ( '-' , '|' )
|
ep_string = sanitizeSceneName ( show_name ) + ' ' + str ( ep_obj . airdate ) . replace ( '-' , ' ' )
|
CHANGE_STRING_LITERAL
|
[["Update", ["string:'|'", 3, 62, 3, 65], "' '"]]
|
jackkiej/SickRage@66f962f89b2d4f4dbbdc721bcbcdf1728a8f7893
|
Fix for tpb ABD shows
|
[
{
"sha": "dd7d841df5a0b202e100f1d38d0e9319c53dc542",
"filename": "sickbeard/providers/thepiratebay.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/66f962f89b2d4f4dbbdc721bcbcdf1728a8f7893/sickbeard%2Fproviders%2Fthepiratebay.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/66f962f89b2d4f4dbbdc721bcbcdf1728a8f7893/sickbeard%2Fproviders%2Fthepiratebay.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Fthepiratebay.py?ref=66f962f89b2d4f4dbbdc721bcbcdf1728a8f7893",
"patch": "@@ -196,7 +196,7 @@ def _get_episode_search_strings(self, ep_obj, add_string=''):\n if self.show.air_by_date:\n for show_name in set(allPossibleShowNames(self.show)):\n ep_string = sanitizeSceneName(show_name) + ' ' + \\\n- str(ep_obj.airdate).replace('-', '|')\n+ str(ep_obj.airdate).replace('-', ' ')\n search_string['Episode'].append(ep_string)\n elif self.show.sports:\n for show_name in set(allPossibleShowNames(self.show)):"
}
] |
SickRage
|
d9f073bbd07ab2831546a4451aa12646e97ff5ed
|
90146d33fae1d3174d2ac0235ec9fc35f2938371
|
sickbeard/__init__.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -639,7 +639,7 @@ def initialize(consoleLogging=True):
USENET_RETENTION = check_setting_int(CFG, 'General', 'usenet_retention', 500)
- AUTOPOSTPROCESSER_FREQUENCY = check_setting_int(CFG, 'General', 'dailysearch_frequency',
+ AUTOPOSTPROCESSER_FREQUENCY = check_setting_int(CFG, 'General', 'autopostprocesser_frequency',
DEFAULT_AUTOPOSTPROCESSER_FREQUENCY)
if AUTOPOSTPROCESSER_FREQUENCY < MIN_AUTOPOSTPROCESSER_FREQUENCY:
AUTOPOSTPROCESSER_FREQUENCY = MIN_AUTOPOSTPROCESSER_FREQUENCY
|
AUTOPOSTPROCESSER_FREQUENCY = check_setting_int ( CFG , 'General' , 'dailysearch_frequency' , DEFAULT_AUTOPOSTPROCESSER_FREQUENCY )
|
AUTOPOSTPROCESSER_FREQUENCY = check_setting_int ( CFG , 'General' , 'autopostprocesser_frequency' , DEFAULT_AUTOPOSTPROCESSER_FREQUENCY )
|
CHANGE_STRING_LITERAL
|
[["Update", ["string:'dailysearch_frequency'", 3, 73, 3, 96], "'autopostprocesser_frequency'"]]
|
jackkiej/SickRage@d9f073bbd07ab2831546a4451aa12646e97ff5ed
|
Fixes resetting of auto postprocessing timer config
|
[
{
"sha": "726defcc98d0967508db325bc25d9f6500b8d4e7",
"filename": "sickbeard/__init__.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/d9f073bbd07ab2831546a4451aa12646e97ff5ed/sickbeard%2F__init__.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/d9f073bbd07ab2831546a4451aa12646e97ff5ed/sickbeard%2F__init__.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2F__init__.py?ref=d9f073bbd07ab2831546a4451aa12646e97ff5ed",
"patch": "@@ -639,7 +639,7 @@ def initialize(consoleLogging=True):\n \n USENET_RETENTION = check_setting_int(CFG, 'General', 'usenet_retention', 500)\n \n- AUTOPOSTPROCESSER_FREQUENCY = check_setting_int(CFG, 'General', 'dailysearch_frequency',\n+ AUTOPOSTPROCESSER_FREQUENCY = check_setting_int(CFG, 'General', 'autopostprocesser_frequency',\n DEFAULT_AUTOPOSTPROCESSER_FREQUENCY)\n if AUTOPOSTPROCESSER_FREQUENCY < MIN_AUTOPOSTPROCESSER_FREQUENCY:\n AUTOPOSTPROCESSER_FREQUENCY = MIN_AUTOPOSTPROCESSER_FREQUENCY"
}
] |
SickRage
|
b884f852128fc59600433906c6fe0d69d19e7e82
|
0242e421cc97f8fa3ea432bf5f3cdb740a9ce262
|
sickbeard/__init__.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -615,7 +615,7 @@ def initialize(consoleLogging=True):
NAMING_SPORTS_PATTERN = check_setting_str(CFG, 'General', 'naming_sports_pattern', '%SN - %A-D - %EN')
NAMING_ANIME = check_setting_int(CFG, 'General', 'naming_anime', 3)
NAMING_CUSTOM_SPORTS = bool(check_setting_int(CFG, 'General', 'naming_custom_sports', 0))
- NAMING_MULTI_EP = bool(check_setting_int(CFG, 'General', 'naming_multi_ep', 1))
+ NAMING_MULTI_EP = check_setting_int(CFG, 'General', 'naming_multi_ep', 1)
NAMING_FORCE_FOLDERS = naming.check_force_season_folders()
NAMING_STRIP_YEAR = bool(check_setting_int(CFG, 'General', 'naming_strip_year', 0))
|
NAMING_MULTI_EP = bool ( check_setting_int ( CFG , 'General' , 'naming_multi_ep' , 1 ) )
|
NAMING_MULTI_EP = check_setting_int ( CFG , 'General' , 'naming_multi_ep' , 1 )
|
SINGLE_STMT
|
[["Move", ["assignment", 3, 9, 3, 88], ["call", 3, 32, 3, 87], 2], ["Delete", ["identifier:bool", 3, 27, 3, 31]], ["Delete", ["(:(", 3, 31, 3, 32]], ["Delete", ["):)", 3, 87, 3, 88]], ["Delete", ["argument_list", 3, 31, 3, 88]], ["Delete", ["call", 3, 27, 3, 88]]]
|
jackkiej/SickRage@b884f852128fc59600433906c6fe0d69d19e7e82
|
fix for multi ep format setting load
|
[
{
"sha": "b4c47c6b77a7b98e19f287a8f1261d431594fab5",
"filename": "sickbeard/__init__.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/b884f852128fc59600433906c6fe0d69d19e7e82/sickbeard%2F__init__.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/b884f852128fc59600433906c6fe0d69d19e7e82/sickbeard%2F__init__.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2F__init__.py?ref=b884f852128fc59600433906c6fe0d69d19e7e82",
"patch": "@@ -615,7 +615,7 @@ def initialize(consoleLogging=True):\n NAMING_SPORTS_PATTERN = check_setting_str(CFG, 'General', 'naming_sports_pattern', '%SN - %A-D - %EN')\n NAMING_ANIME = check_setting_int(CFG, 'General', 'naming_anime', 3)\n NAMING_CUSTOM_SPORTS = bool(check_setting_int(CFG, 'General', 'naming_custom_sports', 0))\n- NAMING_MULTI_EP = bool(check_setting_int(CFG, 'General', 'naming_multi_ep', 1))\n+ NAMING_MULTI_EP = check_setting_int(CFG, 'General', 'naming_multi_ep', 1)\n NAMING_FORCE_FOLDERS = naming.check_force_season_folders()\n NAMING_STRIP_YEAR = bool(check_setting_int(CFG, 'General', 'naming_strip_year', 0))\n "
}
] |
SickRage
|
e2d11785150f65b30855971ba69a76f49d3684d4
|
0a936ea1ef6932b5301505c8fe3ea1a573e6e00a
|
sickbeard/search.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -586,7 +586,7 @@ def searchProviders(show, season, episodes, manualSearch=False):
u"Single-ep check result is neededEps: " + str(neededEps) + ", notNeededEps: " + str(notNeededEps),
logger.DEBUG)
- if not neededEps:
+ if not notNeededEps:
logger.log(u"All of these episodes were covered by single episode results, ignoring this multi-episode result", logger.DEBUG)
continue
|
if not neededEps : logger . log ( u"All of these episodes were covered by single episode results, ignoring this multi-episode result" , logger . DEBUG ) continue
|
if not notNeededEps : logger . log ( u"All of these episodes were covered by single episode results, ignoring this multi-episode result" , logger . DEBUG ) continue
|
CHANGE_IDENTIFIER_USED
|
[["Update", ["identifier:neededEps", 3, 24, 3, 33], "notNeededEps"]]
|
jackkiej/SickRage@e2d11785150f65b30855971ba69a76f49d3684d4
|
Fix for season pack searches
|
[
{
"sha": "ab119f2256c1e0bf18329d0f500116b176804265",
"filename": "sickbeard/search.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/e2d11785150f65b30855971ba69a76f49d3684d4/sickbeard%2Fsearch.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/e2d11785150f65b30855971ba69a76f49d3684d4/sickbeard%2Fsearch.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fsearch.py?ref=e2d11785150f65b30855971ba69a76f49d3684d4",
"patch": "@@ -586,7 +586,7 @@ def searchProviders(show, season, episodes, manualSearch=False):\n u\"Single-ep check result is neededEps: \" + str(neededEps) + \", notNeededEps: \" + str(notNeededEps),\n logger.DEBUG)\n \n- if not neededEps:\n+ if not notNeededEps:\n logger.log(u\"All of these episodes were covered by single episode results, ignoring this multi-episode result\", logger.DEBUG)\n continue\n "
}
] |
SickRage
|
fea411617435f5e92399b82ac00d8c65b36fa829
|
7de9d96340704d715d4f8f5c03d55a0f58f1750f
|
sickbeard/scene_exceptions.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -258,7 +258,7 @@ def update_scene_exceptions(indexer_id, scene_exceptions, season=-1):
global exceptionsCache
myDB = db.DBConnection('cache.db')
- myDB.action('DELETE FROM scene_exceptions WHERE indexer_id=?', [indexer_id])
+ myDB.action('DELETE FROM scene_exceptions WHERE indexer_id=? and season=?', [indexer_id, season])
logger.log(u"Updating scene exceptions", logger.MESSAGE)
|
myDB . action ( 'DELETE FROM scene_exceptions WHERE indexer_id=?' , [ indexer_id ] )
|
myDB . action ( 'DELETE FROM scene_exceptions WHERE indexer_id=? and season=?' , [ indexer_id , season ] )
|
SINGLE_STMT
|
[["Update", ["string:'DELETE FROM scene_exceptions WHERE indexer_id=?'", 2, 17, 2, 66], "'DELETE FROM scene_exceptions WHERE indexer_id=? and season=?'"], ["Insert", ["list", 2, 68, 2, 80], [",:,", "T"], 2], ["Insert", ["list", 2, 68, 2, 80], ["identifier:season", "T"], 3]]
|
jackkiej/SickRage@fea411617435f5e92399b82ac00d8c65b36fa829
|
Fixes anime exceptions being cleared when editing the exceptions on editShow page
|
[
{
"sha": "1febcbbc68fb8c3ede1e13dd8f8b9e4913365dc7",
"filename": "sickbeard/scene_exceptions.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/fea411617435f5e92399b82ac00d8c65b36fa829/sickbeard%2Fscene_exceptions.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/fea411617435f5e92399b82ac00d8c65b36fa829/sickbeard%2Fscene_exceptions.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fscene_exceptions.py?ref=fea411617435f5e92399b82ac00d8c65b36fa829",
"patch": "@@ -258,7 +258,7 @@ def update_scene_exceptions(indexer_id, scene_exceptions, season=-1):\n \"\"\"\n global exceptionsCache\n myDB = db.DBConnection('cache.db')\n- myDB.action('DELETE FROM scene_exceptions WHERE indexer_id=?', [indexer_id])\n+ myDB.action('DELETE FROM scene_exceptions WHERE indexer_id=? and season=?', [indexer_id, season])\n \n logger.log(u\"Updating scene exceptions\", logger.MESSAGE)\n "
}
] |
SickRage
|
ba5e5478e02b83045348ca5a83a495c4d8a00c70
|
0cea9877ed2d754ae04c34a8d2705beb39f48fcf
|
sickbeard/clients/generic.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -145,7 +145,7 @@ class GenericClient(object):
if result.url.startswith('magnet'):
result.hash = re.findall('urn:btih:([\w]{32,40})', result.url)[0]
if len(result.hash) == 32:
- result.hash = b16encode(b32decode(torrent_hash)).lower()
+ result.hash = b16encode(b32decode(result.hash)).lower()
else:
result.content = result.provider.getURL(result.url)
info = bdecode(result.content)["info"]
|
result . hash = b16encode ( b32decode ( torrent_hash ) ) . lower ( )
|
result . hash = b16encode ( b32decode ( result . hash ) ) . lower ( )
|
SINGLE_STMT
|
[["Insert", ["argument_list", 3, 50, 3, 64], ["attribute", "N0"], 1], ["Update", ["identifier:torrent_hash", 3, 51, 3, 63], "result"], ["Move", "N0", ["identifier:torrent_hash", 3, 51, 3, 63], 0], ["Insert", "N0", [".:.", "T"], 1], ["Insert", "N0", ["identifier:hash", "T"], 2]]
|
jackkiej/SickRage@ba5e5478e02b83045348ca5a83a495c4d8a00c70
|
Fixes typo in previous commit
|
[
{
"sha": "a3465719852cd60279bb79acc0f508db0ec11110",
"filename": "sickbeard/clients/generic.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/ba5e5478e02b83045348ca5a83a495c4d8a00c70/sickbeard%2Fclients%2Fgeneric.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/ba5e5478e02b83045348ca5a83a495c4d8a00c70/sickbeard%2Fclients%2Fgeneric.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fclients%2Fgeneric.py?ref=ba5e5478e02b83045348ca5a83a495c4d8a00c70",
"patch": "@@ -145,7 +145,7 @@ def _get_torrent_hash(self, result):\n if result.url.startswith('magnet'):\n result.hash = re.findall('urn:btih:([\\w]{32,40})', result.url)[0]\n if len(result.hash) == 32:\n- result.hash = b16encode(b32decode(torrent_hash)).lower()\n+ result.hash = b16encode(b32decode(result.hash)).lower()\n else:\n result.content = result.provider.getURL(result.url)\n info = bdecode(result.content)[\"info\"]"
}
] |
SickRage
|
6b8a22898b6a74409413fe1dce5b797bf58dfdd2
|
905b41c46a22d52701615a06fcf68c4f021d9a55
|
sickbeard/name_parser/parser.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -570,7 +570,7 @@ class ParseResult(object):
@property
def is_air_by_date(self):
- if self.season_number == None and len(self.episode_numbers) == 0 and self.air_date:
+ if self.air_date:
return True
return False
|
if self . season_number == None and len ( self . episode_numbers ) == 0 and self . air_date : return True
|
if self . air_date : return True
|
SINGLE_STMT
|
[["Move", ["if_statement", 3, 9, 4, 24], ["attribute", 3, 78, 3, 91], 1], ["Delete", ["identifier:self", 3, 12, 3, 16]], ["Delete", [".:.", 3, 16, 3, 17]], ["Delete", ["identifier:season_number", 3, 17, 3, 30]], ["Delete", ["attribute", 3, 12, 3, 30]], ["Delete", ["==:==", 3, 31, 3, 33]], ["Delete", ["none:None", 3, 34, 3, 38]], ["Delete", ["comparison_operator", 3, 12, 3, 38]], ["Delete", ["and:and", 3, 39, 3, 42]], ["Delete", ["identifier:len", 3, 43, 3, 46]], ["Delete", ["(:(", 3, 46, 3, 47]], ["Delete", ["identifier:self", 3, 47, 3, 51]], ["Delete", [".:.", 3, 51, 3, 52]], ["Delete", ["identifier:episode_numbers", 3, 52, 3, 67]], ["Delete", ["attribute", 3, 47, 3, 67]], ["Delete", ["):)", 3, 67, 3, 68]], ["Delete", ["argument_list", 3, 46, 3, 68]], ["Delete", ["call", 3, 43, 3, 68]], ["Delete", ["==:==", 3, 69, 3, 71]], ["Delete", ["integer:0", 3, 72, 3, 73]], ["Delete", ["comparison_operator", 3, 43, 3, 73]], ["Delete", ["boolean_operator", 3, 12, 3, 73]], ["Delete", ["and:and", 3, 74, 3, 77]], ["Delete", ["boolean_operator", 3, 12, 3, 91]]]
|
jackkiej/SickRage@6b8a22898b6a74409413fe1dce5b797bf58dfdd2
|
Fix ABD shows manual and backlog searches
|
[
{
"sha": "7ac1de1066d8f8bd22e7bb51bd095af62cf5d7d6",
"filename": "sickbeard/name_parser/parser.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/6b8a22898b6a74409413fe1dce5b797bf58dfdd2/sickbeard%2Fname_parser%2Fparser.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/6b8a22898b6a74409413fe1dce5b797bf58dfdd2/sickbeard%2Fname_parser%2Fparser.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fname_parser%2Fparser.py?ref=6b8a22898b6a74409413fe1dce5b797bf58dfdd2",
"patch": "@@ -570,7 +570,7 @@ def __str__(self):\n \n @property\n def is_air_by_date(self):\n- if self.season_number == None and len(self.episode_numbers) == 0 and self.air_date:\n+ if self.air_date:\n return True\n return False\n "
}
] |
SickRage
|
13bef2b92d5deebf1afe795ca7f1f94818f902d6
|
905b41c46a22d52701615a06fcf68c4f021d9a55
|
sickbeard/providers/torrentbytes.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -184,7 +184,7 @@ class TorrentBytesProvider(generic.TorrentProvider):
link = cells[1].find('a', attrs={'class': 'index'})
full_id = link['href'].replace('details.php?id=', '')
- torrent_id = full_id[:6]
+ torrent_id = full_id.split("&")[0]
try:
if link.has_key('title'):
|
torrent_id = full_id [ : 6 ]
|
torrent_id = full_id . split ( "&" ) [ 0 ]
|
SINGLE_STMT
|
[["Insert", ["subscript", 3, 42, 3, 53], ["call", "N0"], 0], ["Insert", ["subscript", 3, 42, 3, 53], ["integer:0", "T"], 3], ["Insert", "N0", ["attribute", "N1"], 0], ["Insert", "N0", ["argument_list", "N2"], 1], ["Move", "N1", ["identifier:full_id", 3, 42, 3, 49], 0], ["Insert", "N1", [".:.", "T"], 1], ["Insert", "N1", ["identifier:split", "T"], 2], ["Insert", "N2", ["(:(", "T"], 0], ["Insert", "N2", ["string:\"&\"", "T"], 1], ["Insert", "N2", ["):)", "T"], 2], ["Delete", [":::", 3, 50, 3, 51]], ["Delete", ["integer:6", 3, 51, 3, 52]], ["Delete", ["slice", 3, 50, 3, 52]]]
|
jackkiej/SickRage@13bef2b92d5deebf1afe795ca7f1f94818f902d6
|
Fix for torrentbytes provider where torrentid is <6 characters long
|
[
{
"sha": "d8f646cbc8cc7ea541e3d94bb267c1e081525901",
"filename": "sickbeard/providers/torrentbytes.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/13bef2b92d5deebf1afe795ca7f1f94818f902d6/sickbeard%2Fproviders%2Ftorrentbytes.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/13bef2b92d5deebf1afe795ca7f1f94818f902d6/sickbeard%2Fproviders%2Ftorrentbytes.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Ftorrentbytes.py?ref=13bef2b92d5deebf1afe795ca7f1f94818f902d6",
"patch": "@@ -184,7 +184,7 @@ def _doSearch(self, search_params, search_mode='eponly', epcount=0, age=0):\n link = cells[1].find('a', attrs={'class': 'index'})\n \n full_id = link['href'].replace('details.php?id=', '')\n- torrent_id = full_id[:6]\n+ torrent_id = full_id.split(\"&\")[0]\n \n try:\n if link.has_key('title'):"
}
] |
SickRage
|
b03ffa231d26990af685acd6c20dac80631e84aa
|
4739ab12ae442cbad1090bc5a57c95b160c7bf7b
|
sickbeard/properFinder.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -107,7 +107,7 @@ class ProperFinder():
for curProper in sortedPropers:
try:
- myParser = NameParser(False, showObj=curProper.show)
+ myParser = NameParser(False)
parse_result = myParser.parse(curProper.name)
except InvalidNameException:
logger.log(u"Unable to parse the filename " + curProper.name + " into a valid episode", logger.DEBUG)
|
myParser = NameParser ( False , showObj = curProper . show )
|
myParser = NameParser ( False )
|
SAME_FUNCTION_LESS_ARGS
|
[["Delete", [",:,", 3, 44, 3, 45]], ["Delete", ["identifier:showObj", 3, 46, 3, 53]], ["Delete", ["=:=", 3, 53, 3, 54]], ["Delete", ["identifier:curProper", 3, 54, 3, 63]], ["Delete", [".:.", 3, 63, 3, 64]], ["Delete", ["identifier:show", 3, 64, 3, 68]], ["Delete", ["attribute", 3, 54, 3, 68]], ["Delete", ["keyword_argument", 3, 46, 3, 68]]]
|
jackkiej/SickRage@b03ffa231d26990af685acd6c20dac80631e84aa
|
Possible fix for incorrect show matches
|
[
{
"sha": "d4911c6a44c1ff2b07fb05aa92cfe1c59e52e1fe",
"filename": "sickbeard/properFinder.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/b03ffa231d26990af685acd6c20dac80631e84aa/sickbeard%2FproperFinder.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/b03ffa231d26990af685acd6c20dac80631e84aa/sickbeard%2FproperFinder.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2FproperFinder.py?ref=b03ffa231d26990af685acd6c20dac80631e84aa",
"patch": "@@ -107,7 +107,7 @@ def _getProperList(self):\n for curProper in sortedPropers:\n \n try:\n- myParser = NameParser(False, showObj=curProper.show)\n+ myParser = NameParser(False)\n parse_result = myParser.parse(curProper.name)\n except InvalidNameException:\n logger.log(u\"Unable to parse the filename \" + curProper.name + \" into a valid episode\", logger.DEBUG)"
}
] |
SickRage
|
cc5e7108ac8ad182098fb60fdc405c693a26767d
|
4e97892cea214b2e57a6a5c0f758d9184ce3ad6c
|
sickbeard/providers/torrentz.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -96,7 +96,7 @@ class TORRENTZProvider(generic.TorrentProvider):
entries = entries if isinstance(entries, list) else [entries]
for item in entries:
- if 'tv' not in item.get('category', ''):
+ if item.get('category', None) and 'tv' not in item.get('category', ''):
continue
title = item.get('title', '').rsplit(' ', 1)[0].replace(' ', '.')
|
if 'tv' not in item . get ( 'category' , '' ) : continue
|
if item . get ( 'category' , None ) and 'tv' not in item . get ( 'category' , '' ) : continue
|
MORE_SPECIFIC_IF
|
[["Insert", ["if_statement", 3, 21, 4, 33], ["boolean_operator", "N0"], 1], ["Insert", "N0", ["call", "N1"], 0], ["Insert", "N0", ["and:and", "T"], 1], ["Move", "N0", ["comparison_operator", 3, 24, 3, 60], 2], ["Insert", "N1", ["attribute", "N2"], 0], ["Insert", "N1", ["argument_list", "N3"], 1], ["Insert", "N2", ["identifier:item", "T"], 0], ["Insert", "N2", [".:.", "T"], 1], ["Insert", "N2", ["identifier:get", "T"], 2], ["Insert", "N3", ["(:(", "T"], 0], ["Insert", "N3", ["string:'category'", "T"], 1], ["Insert", "N3", [",:,", "T"], 2], ["Insert", "N3", ["none:None", "T"], 3], ["Insert", "N3", ["):)", "T"], 4]]
|
jackkiej/SickRage@cc5e7108ac8ad182098fb60fdc405c693a26767d
|
Fix object of type NoneType is not iterable error in torrentz
|
[
{
"sha": "bc93864ec303f17aafd2a6421f2c3c83da408822",
"filename": "sickbeard/providers/torrentz.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/cc5e7108ac8ad182098fb60fdc405c693a26767d/sickbeard%2Fproviders%2Ftorrentz.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/cc5e7108ac8ad182098fb60fdc405c693a26767d/sickbeard%2Fproviders%2Ftorrentz.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Ftorrentz.py?ref=cc5e7108ac8ad182098fb60fdc405c693a26767d",
"patch": "@@ -96,7 +96,7 @@ def _doSearch(self, search_strings, search_mode='eponly', epcount=0, age=0, epOb\n entries = entries if isinstance(entries, list) else [entries]\n \n for item in entries:\n- if 'tv' not in item.get('category', ''):\n+ if item.get('category', None) and 'tv' not in item.get('category', ''):\n continue\n \n title = item.get('title', '').rsplit(' ', 1)[0].replace(' ', '.')"
}
] |
SickRage
|
d477397723c9e42cd94bd818ebe09ae5b42be875
|
f4a9db261d4be4abe136ef616904d2c3c4a6fc9a
|
sickbeard/logger.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -228,7 +228,7 @@ class Logger(object):
for curError in sorted(classes.ErrorViewer.errors, key=lambda error: error.time, reverse=True)[:500]:
try:
- title_Error = ss(curError.title)
+ title_Error = ss(str(curError.title))
if not len(title_Error) or title_Error == 'None':
title_Error = re.match(r"^[A-Z0-9\-\[\] :]+::\s*(.*)$", ss(curError.message)).group(1)
|
title_Error = ss ( curError . title )
|
title_Error = ss ( str ( curError . title ) )
|
ADD_FUNCTION_AROUND_EXPRESSION
|
[["Insert", ["argument_list", 3, 37, 3, 53], ["(:(", "T"], 0], ["Insert", ["argument_list", 3, 37, 3, 53], ["call", "N0"], 1], ["Insert", ["argument_list", 3, 37, 3, 53], ["):)", "T"], 2], ["Insert", "N0", ["identifier:str", "T"], 0], ["Move", "N0", ["argument_list", 3, 37, 3, 53], 1]]
|
jackkiej/SickRage@d477397723c9e42cd94bd818ebe09ae5b42be875
|
Fix issue submitter error
|
[
{
"sha": "c35c15994f9472547b93e087cb03f249554a9ba9",
"filename": "sickbeard/logger.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/d477397723c9e42cd94bd818ebe09ae5b42be875/sickbeard%2Flogger.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/d477397723c9e42cd94bd818ebe09ae5b42be875/sickbeard%2Flogger.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Flogger.py?ref=d477397723c9e42cd94bd818ebe09ae5b42be875",
"patch": "@@ -228,7 +228,7 @@ def submit_errors(self): # Too many local variables, too many branches, pylint:\n for curError in sorted(classes.ErrorViewer.errors, key=lambda error: error.time, reverse=True)[:500]:\n \n try:\n- title_Error = ss(curError.title)\n+ title_Error = ss(str(curError.title))\n if not len(title_Error) or title_Error == 'None':\n title_Error = re.match(r\"^[A-Z0-9\\-\\[\\] :]+::\\s*(.*)$\", ss(curError.message)).group(1)\n "
}
] |
SickRage
|
e2c68bbf20375016625697d8eee762883db3017f
|
f4a9db261d4be4abe136ef616904d2c3c4a6fc9a
|
sickbeard/logger.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -228,7 +228,7 @@ class Logger(object):
for curError in sorted(classes.ErrorViewer.errors, key=lambda error: error.time, reverse=True)[:500]:
try:
- title_Error = ss(curError.title)
+ title_Error = ss(str(curError.title))
if not len(title_Error) or title_Error == 'None':
title_Error = re.match(r"^[A-Z0-9\-\[\] :]+::\s*(.*)$", ss(curError.message)).group(1)
|
title_Error = ss ( curError . title )
|
title_Error = ss ( str ( curError . title ) )
|
ADD_FUNCTION_AROUND_EXPRESSION
|
[["Insert", ["argument_list", 3, 37, 3, 53], ["(:(", "T"], 0], ["Insert", ["argument_list", 3, 37, 3, 53], ["call", "N0"], 1], ["Insert", ["argument_list", 3, 37, 3, 53], ["):)", "T"], 2], ["Insert", "N0", ["identifier:str", "T"], 0], ["Move", "N0", ["argument_list", 3, 37, 3, 53], 1]]
|
jackkiej/SickRage@e2c68bbf20375016625697d8eee762883db3017f
|
Fix issue submitter error
|
[
{
"sha": "c35c15994f9472547b93e087cb03f249554a9ba9",
"filename": "sickbeard/logger.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/e2c68bbf20375016625697d8eee762883db3017f/sickbeard%2Flogger.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/e2c68bbf20375016625697d8eee762883db3017f/sickbeard%2Flogger.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Flogger.py?ref=e2c68bbf20375016625697d8eee762883db3017f",
"patch": "@@ -228,7 +228,7 @@ def submit_errors(self): # Too many local variables, too many branches, pylint:\n for curError in sorted(classes.ErrorViewer.errors, key=lambda error: error.time, reverse=True)[:500]:\n \n try:\n- title_Error = ss(curError.title)\n+ title_Error = ss(str(curError.title))\n if not len(title_Error) or title_Error == 'None':\n title_Error = re.match(r\"^[A-Z0-9\\-\\[\\] :]+::\\s*(.*)$\", ss(curError.message)).group(1)\n "
}
] |
SickRage
|
6469c361f73eab768da017194979123e33b791c9
|
96997d3aa4603c7e322d1c778632670401d4b2f0
|
SickBeard.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -152,7 +152,7 @@ class SickRage(object):
# pylint: disable=E1101
if not sickbeard.SYS_ENCODING or sickbeard.SYS_ENCODING.lower() in ('ansi_x3.4-1968', 'us-ascii', 'ascii', 'charmap') or \
- (sys.platform.startswith('win') and sys.getwindowsversion()[0] >= 6 and getattr(sys.stdout, 'device', sys.stdout).encoding.lower() in ('cp65001', 'charmap')):
+ (sys.platform.startswith('win') and sys.getwindowsversion()[0] >= 6 and str(getattr(sys.stdout, 'device', sys.stdout).encoding).lower() in ('cp65001', 'charmap')):
sickbeard.SYS_ENCODING = 'UTF-8'
# TODO: Continue working on making this unnecessary, this hack creates all sorts of hellish problems
|
if not sickbeard . SYS_ENCODING or sickbeard . SYS_ENCODING . lower ( ) in ( 'ansi_x3.4-1968' , 'us-ascii' , 'ascii' , 'charmap' ) or ( sys . platform . startswith ( 'win' ) and sys . getwindowsversion ( ) [ 0 ] >= 6 and getattr ( sys . stdout , 'device' , sys . stdout ) . encoding . lower ( ) in ( 'cp65001' , 'charmap' ) ) : sickbeard . SYS_ENCODING = 'UTF-8'
|
if not sickbeard . SYS_ENCODING or sickbeard . SYS_ENCODING . lower ( ) in ( 'ansi_x3.4-1968' , 'us-ascii' , 'ascii' , 'charmap' ) or ( sys . platform . startswith ( 'win' ) and sys . getwindowsversion ( ) [ 0 ] >= 6 and str ( getattr ( sys . stdout , 'device' , sys . stdout ) . encoding ) . lower ( ) in ( 'cp65001' , 'charmap' ) ) : sickbeard . SYS_ENCODING = 'UTF-8'
|
ADD_FUNCTION_AROUND_EXPRESSION
|
[["Insert", ["attribute", 3, 85, 3, 141], ["call", "N0"], 0], ["Insert", "N0", ["identifier:str", "T"], 0], ["Insert", "N0", ["argument_list", "N1"], 1], ["Insert", "N1", ["(:(", "T"], 0], ["Move", "N1", ["attribute", 3, 85, 3, 135], 1], ["Insert", "N1", ["):)", "T"], 2]]
|
jackkiej/SickRage@6469c361f73eab768da017194979123e33b791c9
|
Fix starting with pythonw
|
[
{
"sha": "99816b58514eb500ac86e6e5e3ebb27ae934dace",
"filename": "SickBeard.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/6469c361f73eab768da017194979123e33b791c9/SickBeard.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/6469c361f73eab768da017194979123e33b791c9/SickBeard.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/SickBeard.py?ref=6469c361f73eab768da017194979123e33b791c9",
"patch": "@@ -152,7 +152,7 @@ def start(self):\n \n # pylint: disable=E1101\n if not sickbeard.SYS_ENCODING or sickbeard.SYS_ENCODING.lower() in ('ansi_x3.4-1968', 'us-ascii', 'ascii', 'charmap') or \\\n- (sys.platform.startswith('win') and sys.getwindowsversion()[0] >= 6 and getattr(sys.stdout, 'device', sys.stdout).encoding.lower() in ('cp65001', 'charmap')):\n+ (sys.platform.startswith('win') and sys.getwindowsversion()[0] >= 6 and str(getattr(sys.stdout, 'device', sys.stdout).encoding).lower() in ('cp65001', 'charmap')):\n sickbeard.SYS_ENCODING = 'UTF-8'\n \n # TODO: Continue working on making this unnecessary, this hack creates all sorts of hellish problems"
}
] |
SickRage
|
6c5e2d628eea44819be53040db1d6b91861fae95
|
6cdb5420378f7ae944e087cc1e4272fccdb7fc41
|
SickBeard.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -152,7 +152,7 @@ class SickRage(object):
# pylint: disable=E1101
if not sickbeard.SYS_ENCODING or sickbeard.SYS_ENCODING.lower() in ('ansi_x3.4-1968', 'us-ascii', 'ascii', 'charmap') or \
- (sys.platform.startswith('win') and sys.getwindowsversion()[0] >= 6 and getattr(sys.stdout, 'device', sys.stdout).encoding.lower() in ('cp65001', 'charmap')):
+ (sys.platform.startswith('win') and sys.getwindowsversion()[0] >= 6 and str(getattr(sys.stdout, 'device', sys.stdout).encoding).lower() in ('cp65001', 'charmap')):
sickbeard.SYS_ENCODING = 'UTF-8'
# TODO: Continue working on making this unnecessary, this hack creates all sorts of hellish problems
|
if not sickbeard . SYS_ENCODING or sickbeard . SYS_ENCODING . lower ( ) in ( 'ansi_x3.4-1968' , 'us-ascii' , 'ascii' , 'charmap' ) or ( sys . platform . startswith ( 'win' ) and sys . getwindowsversion ( ) [ 0 ] >= 6 and getattr ( sys . stdout , 'device' , sys . stdout ) . encoding . lower ( ) in ( 'cp65001' , 'charmap' ) ) : sickbeard . SYS_ENCODING = 'UTF-8'
|
if not sickbeard . SYS_ENCODING or sickbeard . SYS_ENCODING . lower ( ) in ( 'ansi_x3.4-1968' , 'us-ascii' , 'ascii' , 'charmap' ) or ( sys . platform . startswith ( 'win' ) and sys . getwindowsversion ( ) [ 0 ] >= 6 and str ( getattr ( sys . stdout , 'device' , sys . stdout ) . encoding ) . lower ( ) in ( 'cp65001' , 'charmap' ) ) : sickbeard . SYS_ENCODING = 'UTF-8'
|
ADD_FUNCTION_AROUND_EXPRESSION
|
[["Insert", ["attribute", 3, 85, 3, 141], ["call", "N0"], 0], ["Insert", "N0", ["identifier:str", "T"], 0], ["Insert", "N0", ["argument_list", "N1"], 1], ["Insert", "N1", ["(:(", "T"], 0], ["Move", "N1", ["attribute", 3, 85, 3, 135], 1], ["Insert", "N1", ["):)", "T"], 2]]
|
jackkiej/SickRage@6c5e2d628eea44819be53040db1d6b91861fae95
|
Fix starting with pythonw
|
[
{
"sha": "99816b58514eb500ac86e6e5e3ebb27ae934dace",
"filename": "SickBeard.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/6c5e2d628eea44819be53040db1d6b91861fae95/SickBeard.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/6c5e2d628eea44819be53040db1d6b91861fae95/SickBeard.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/SickBeard.py?ref=6c5e2d628eea44819be53040db1d6b91861fae95",
"patch": "@@ -152,7 +152,7 @@ def start(self):\n \n # pylint: disable=E1101\n if not sickbeard.SYS_ENCODING or sickbeard.SYS_ENCODING.lower() in ('ansi_x3.4-1968', 'us-ascii', 'ascii', 'charmap') or \\\n- (sys.platform.startswith('win') and sys.getwindowsversion()[0] >= 6 and getattr(sys.stdout, 'device', sys.stdout).encoding.lower() in ('cp65001', 'charmap')):\n+ (sys.platform.startswith('win') and sys.getwindowsversion()[0] >= 6 and str(getattr(sys.stdout, 'device', sys.stdout).encoding).lower() in ('cp65001', 'charmap')):\n sickbeard.SYS_ENCODING = 'UTF-8'\n \n # TODO: Continue working on making this unnecessary, this hack creates all sorts of hellish problems"
}
] |
SickRage
|
8ae08af5e561806cc3dfdff8e2ec004e09890c2f
|
8b84e4f4bc6cdebdc605438e9e75d15f1133d65e
|
sickbeard/providers/t411.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -79,7 +79,7 @@ class T411Provider(generic.TorrentProvider):
self.session = requests.Session()
try:
- response = self.session.post(self.urls['login_page'], data=login_params, timeout=30, verify=False)
+ response = self.session.post(self.urls['login_page'], data=login_params, timeout=30, verify=False, headers=self.headers)
except (requests.exceptions.ConnectionError, requests.exceptions.HTTPError), e:
logger.log(u'Unable to connect to ' + self.name + ' provider: ' + ex(e), logger.ERROR)
return False
|
response = self . session . post ( self . urls [ 'login_page' ] , data = login_params , timeout = 30 , verify = False )
|
response = self . session . post ( self . urls [ 'login_page' ] , data = login_params , timeout = 30 , verify = False , headers = self . headers )
|
SAME_FUNCTION_MORE_ARGS
|
[["Insert", ["argument_list", 3, 41, 3, 111], [",:,", "T"], 8], ["Insert", ["argument_list", 3, 41, 3, 111], ["keyword_argument", "N0"], 9], ["Insert", "N0", ["identifier:headers", "T"], 0], ["Insert", "N0", ["=:=", "T"], 1], ["Insert", "N0", ["attribute", "N1"], 2], ["Insert", "N1", ["identifier:self", "T"], 0], ["Insert", "N1", [".:.", "T"], 1], ["Insert", "N1", ["identifier:headers", "T"], 2]]
|
jackkiej/SickRage@8ae08af5e561806cc3dfdff8e2ec004e09890c2f
|
Fix for https://github.com/SiCKRAGETV/sickrage-issues/issues/178
|
[
{
"sha": "a98e25bb065906a691d1dcbc6a5cba2e6dda4817",
"filename": "sickbeard/providers/t411.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/8ae08af5e561806cc3dfdff8e2ec004e09890c2f/sickbeard%2Fproviders%2Ft411.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/8ae08af5e561806cc3dfdff8e2ec004e09890c2f/sickbeard%2Fproviders%2Ft411.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Ft411.py?ref=8ae08af5e561806cc3dfdff8e2ec004e09890c2f",
"patch": "@@ -79,7 +79,7 @@ def _doLogin(self):\n self.session = requests.Session()\n \n try:\n- response = self.session.post(self.urls['login_page'], data=login_params, timeout=30, verify=False)\n+ response = self.session.post(self.urls['login_page'], data=login_params, timeout=30, verify=False, headers=self.headers)\n except (requests.exceptions.ConnectionError, requests.exceptions.HTTPError), e:\n logger.log(u'Unable to connect to ' + self.name + ' provider: ' + ex(e), logger.ERROR)\n return False"
}
] |
SickRage
|
9101f644f779d0c49825cce7b69997a34f5fab73
|
0bb84466d06ca068e09d5f8bc2bbb828c598963a
|
sickbeard/tv.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -1269,7 +1269,7 @@ class TVShow(object):
if epStatus == FAILED:
return Overview.WANTED
- elif epStatus in (SNATCHED, SNATCHED_PROPER, SNATCHED_BEST):
+ elif epStatus in (SNATCHED_BEST, SNATCHED, SNATCHED_PROPER ) and curQuality == maxBestQuality:
return Overview.SNATCHED
# if they don't want re-downloads then we call it good if they have anything
elif maxBestQuality == None:
|
if epStatus == FAILED : return Overview . WANTED elif epStatus in ( SNATCHED , SNATCHED_PROPER , SNATCHED_BEST ) : return Overview . SNATCHED elif maxBestQuality == None :
|
if epStatus == FAILED : return Overview . WANTED elif epStatus in ( SNATCHED_BEST , SNATCHED , SNATCHED_PROPER ) and curQuality == maxBestQuality : return Overview . SNATCHED elif maxBestQuality == None :
|
SINGLE_STMT
|
[["Insert", ["elif_clause", 3, 13, 4, 41], ["boolean_operator", "N0"], 1], ["Move", "N0", ["comparison_operator", 3, 18, 3, 72], 0], ["Insert", "N0", ["and:and", "T"], 1], ["Insert", "N0", ["comparison_operator", "N1"], 2], ["Insert", "N1", ["identifier:curQuality", "T"], 0], ["Insert", "N1", ["==:==", "T"], 1], ["Insert", "N1", ["identifier:maxBestQuality", "T"], 2], ["Update", ["identifier:SNATCHED", 3, 31, 3, 39], "SNATCHED_BEST"], ["Update", ["identifier:SNATCHED_PROPER", 3, 41, 3, 56], "SNATCHED"], ["Update", ["identifier:SNATCHED_BEST", 3, 58, 3, 71], "SNATCHED_PROPER"]]
|
jackkiej/SickRage@9101f644f779d0c49825cce7b69997a34f5fab73
|
Fix low quality snatched episode don't appear at backlog
SiCKRAGETV/sickrage-issues#281
|
[
{
"sha": "8c3f6695c43d4985f10a080ebc82e1b309f29d66",
"filename": "sickbeard/tv.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/9101f644f779d0c49825cce7b69997a34f5fab73/sickbeard%2Ftv.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/9101f644f779d0c49825cce7b69997a34f5fab73/sickbeard%2Ftv.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Ftv.py?ref=9101f644f779d0c49825cce7b69997a34f5fab73",
"patch": "@@ -1269,7 +1269,7 @@ def getOverview(self, epStatus):\n \n if epStatus == FAILED:\n return Overview.WANTED\n- elif epStatus in (SNATCHED, SNATCHED_PROPER, SNATCHED_BEST):\n+ elif epStatus in (SNATCHED_BEST, SNATCHED, SNATCHED_PROPER ) and curQuality == maxBestQuality:\n return Overview.SNATCHED\n # if they don't want re-downloads then we call it good if they have anything\n elif maxBestQuality == None:"
}
] |
SickRage
|
53c205422c8f02bfb6d8f0bd3870292f76d8c5d6
|
0bb84466d06ca068e09d5f8bc2bbb828c598963a
|
sickbeard/processTV.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -203,7 +203,7 @@ def processDir(dirName, nzbName=None, process_method=None, force=False, is_prior
#Don't Link media when the media is extracted from a rar in the same path
if process_method in ('hardlink', 'symlink') and videoInRar:
- process_media(processPath, videoInRar, nzbName, 'move', force, is_priority)
+ process_media(processPath, videoInRar, nzbName, 'move', force, is_priority, result)
process_media(processPath, set(videoFiles) - set(videoInRar), nzbName, process_method, force,
is_priority, result)
delete_files(processPath, rarContent, result)
|
process_media ( processPath , videoInRar , nzbName , 'move' , force , is_priority )
|
process_media ( processPath , videoInRar , nzbName , 'move' , force , is_priority , result )
|
SAME_FUNCTION_MORE_ARGS
|
[["Insert", ["argument_list", 3, 30, 3, 92], [",:,", "T"], 12], ["Insert", ["argument_list", 3, 30, 3, 92], ["identifier:result", "T"], 13]]
|
jackkiej/SickRage@53c205422c8f02bfb6d8f0bd3870292f76d8c5d6
|
SiCKRAGETV/sickrage-issues#360: remove globals in post processing code for thread safety. Second upload. Missed updating a function call to use the "result" object.
|
[
{
"sha": "01580c1830f1f4c75bee6157c364d00d562d9d14",
"filename": "sickbeard/processTV.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/53c205422c8f02bfb6d8f0bd3870292f76d8c5d6/sickbeard%2FprocessTV.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/53c205422c8f02bfb6d8f0bd3870292f76d8c5d6/sickbeard%2FprocessTV.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2FprocessTV.py?ref=53c205422c8f02bfb6d8f0bd3870292f76d8c5d6",
"patch": "@@ -203,7 +203,7 @@ def processDir(dirName, nzbName=None, process_method=None, force=False, is_prior\n \n #Don't Link media when the media is extracted from a rar in the same path\n if process_method in ('hardlink', 'symlink') and videoInRar:\n- process_media(processPath, videoInRar, nzbName, 'move', force, is_priority)\n+ process_media(processPath, videoInRar, nzbName, 'move', force, is_priority, result)\n process_media(processPath, set(videoFiles) - set(videoInRar), nzbName, process_method, force,\n is_priority, result)\n delete_files(processPath, rarContent, result)"
}
] |
SickRage
|
28f75bf91dd21aaef62b1dd517ee4d1668d85dd1
|
ce997c79fe83e0899450f01df2dfc38608935f4c
|
sickbeard/webserve.py
|
https://github.com/jackkiej/SickRage
| true | false | false |
@@ -1381,7 +1381,7 @@ class Home(WebRoot):
showObj.dvdorder = dvdorder
showObj.rls_ignore_words = rls_ignore_words.strip()
showObj.rls_require_words = rls_require_words.strip()
- showObj.default_ep_status = defaultEpStatus
+ showObj.default_ep_status = int(defaultEpStatus)
# if we change location clear the db of episodes, change it, write to db, and rescan
if os.path.normpath(showObj._location) != os.path.normpath(location):
|
showObj . default_ep_status = defaultEpStatus
|
showObj . default_ep_status = int ( defaultEpStatus )
|
ADD_FUNCTION_AROUND_EXPRESSION
|
[["Insert", ["assignment", 3, 17, 3, 60], ["call", "N0"], 2], ["Insert", "N0", ["identifier:int", "T"], 0], ["Insert", "N0", ["argument_list", "N1"], 1], ["Insert", "N1", ["(:(", "T"], 0], ["Move", "N1", ["identifier:defaultEpStatus", 3, 45, 3, 60], 1], ["Insert", "N1", ["):)", "T"], 2]]
|
jackkiej/SickRage@28f75bf91dd21aaef62b1dd517ee4d1668d85dd1
|
Fix default episode status in display and edit show.
See SiCKRAGETV/sickrage-issues/issues/111 for more info
|
[
{
"sha": "b6f023f24a8bf463004c5dca167425a55a93ca42",
"filename": "sickbeard/webserve.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/28f75bf91dd21aaef62b1dd517ee4d1668d85dd1/sickbeard%2Fwebserve.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/28f75bf91dd21aaef62b1dd517ee4d1668d85dd1/sickbeard%2Fwebserve.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fwebserve.py?ref=28f75bf91dd21aaef62b1dd517ee4d1668d85dd1",
"patch": "@@ -1381,7 +1381,7 @@ def editShow(self, show=None, location=None, anyQualities=[], bestQualities=[],\n showObj.dvdorder = dvdorder\n showObj.rls_ignore_words = rls_ignore_words.strip()\n showObj.rls_require_words = rls_require_words.strip()\n- showObj.default_ep_status = defaultEpStatus\n+ showObj.default_ep_status = int(defaultEpStatus)\n \n # if we change location clear the db of episodes, change it, write to db, and rescan\n if os.path.normpath(showObj._location) != os.path.normpath(location):"
}
] |
SickRage
|
808074a5d1dc85693bd99e5c38682b9b937e3e5d
|
91cb8d885ca278e5829ed53d856d578c8ee8cbe0
|
sickbeard/notifiers/growl.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -68,7 +68,7 @@ class GrowlNotifier:
notice.add_header('Notification-Priority', options['priority'])
if options['icon']:
notice.add_header('Notification-Icon',
- 'https://raw.github.com/SiCKRAGETV/SickRage/master/gui/slick/images/sickrage.png')
+ 'https://raw.github.com/SiCKRAGETV/SickRage/master/gui/slick/images/sickrage-shark-mascot.png')
if message:
notice.add_header('Notification-Text', message)
|
notice . add_header ( 'Notification-Icon' , 'https://raw.github.com/SiCKRAGETV/SickRage/master/gui/slick/images/sickrage.png' )
|
notice . add_header ( 'Notification-Icon' , 'https://raw.github.com/SiCKRAGETV/SickRage/master/gui/slick/images/sickrage-shark-mascot.png' )
|
CHANGE_STRING_LITERAL
|
[["Update", ["string:'https://raw.github.com/SiCKRAGETV/SickRage/master/gui/slick/images/sickrage.png'", 3, 31, 3, 112], "'https://raw.github.com/SiCKRAGETV/SickRage/master/gui/slick/images/sickrage-shark-mascot.png'"]]
|
jackkiej/SickRage@808074a5d1dc85693bd99e5c38682b9b937e3e5d
|
Fix wrong icon used in Growl notification.
|
[
{
"sha": "91998fe301b8fd17a884bbb869457d8d3585542b",
"filename": "sickbeard/notifiers/growl.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/808074a5d1dc85693bd99e5c38682b9b937e3e5d/sickbeard%2Fnotifiers%2Fgrowl.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/808074a5d1dc85693bd99e5c38682b9b937e3e5d/sickbeard%2Fnotifiers%2Fgrowl.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fnotifiers%2Fgrowl.py?ref=808074a5d1dc85693bd99e5c38682b9b937e3e5d",
"patch": "@@ -68,7 +68,7 @@ def _send_growl(self, options, message=None):\n notice.add_header('Notification-Priority', options['priority'])\n if options['icon']:\n notice.add_header('Notification-Icon',\n- 'https://raw.github.com/SiCKRAGETV/SickRage/master/gui/slick/images/sickrage.png')\n+ 'https://raw.github.com/SiCKRAGETV/SickRage/master/gui/slick/images/sickrage-shark-mascot.png')\n \n if message:\n notice.add_header('Notification-Text', message)"
}
] |
SickRage
|
faa3cc8fdf6385e848fff1819dc61cc87bdbc55d
|
91cb8d885ca278e5829ed53d856d578c8ee8cbe0
|
sickbeard/helpers.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -1335,4 +1335,4 @@ if __name__ == '__main__':
doctest.testmod()
def remove_article(text=''):
- return re.sub(r'(?i)/^(?:(?:A(?!\s+to)n?)|The)\s(\w)', r'\1', text)
+ return re.sub(r'(?i)^(?:(?:A(?!\s+to)n?)|The)\s(\w)', r'\1', text)
|
return re . sub ( r'(?i)/^(?:(?:A(?!\s+to)n?)|The)\s(\w)' , r'\1' , text )
|
return re . sub ( r'(?i)^(?:(?:A(?!\s+to)n?)|The)\s(\w)' , r'\1' , text )
|
CHANGE_STRING_LITERAL
|
[["Update", ["string:r'(?i)/^(?:(?:A(?!\\s+to)n?)|The)\\s(\\w)'", 3, 19, 3, 58], "r'(?i)^(?:(?:A(?!\\s+to)n?)|The)\\s(\\w)'"]]
|
jackkiej/SickRage@faa3cc8fdf6385e848fff1819dc61cc87bdbc55d
|
Fix 'Sort with "The", "A", "An"' on dropdown in displayShow not working.
|
[
{
"sha": "8cd6df501cb376b55981954db58edb331026e8a5",
"filename": "sickbeard/helpers.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/faa3cc8fdf6385e848fff1819dc61cc87bdbc55d/sickbeard%2Fhelpers.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/faa3cc8fdf6385e848fff1819dc61cc87bdbc55d/sickbeard%2Fhelpers.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fhelpers.py?ref=faa3cc8fdf6385e848fff1819dc61cc87bdbc55d",
"patch": "@@ -1335,4 +1335,4 @@ def pretty_filesize(file_bytes):\n doctest.testmod()\r\n \r\n def remove_article(text=''):\r\n- return re.sub(r'(?i)/^(?:(?:A(?!\\s+to)n?)|The)\\s(\\w)', r'\\1', text)\r\n+ return re.sub(r'(?i)^(?:(?:A(?!\\s+to)n?)|The)\\s(\\w)', r'\\1', text)\r"
}
] |
SickRage
|
c9085a3ac667944301d628636e718a22b097a8eb
|
17545d93b2bf03fe2becbb89b32e578ab3ec13c6
|
sickbeard/logger.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -171,7 +171,7 @@ class Logger(object):
if match:
level = match.group(2)
if reverseNames[level] == ERROR:
- paste_data = "".join(log_data[i:50])
+ paste_data = "".join(log_data[i:i+50])
if paste_data:
gist = gh.get_user().create_gist(True, {"sickrage.log": InputFileContent(paste_data)})
break
|
paste_data = "" . join ( log_data [ i : 50 ] )
|
paste_data = "" . join ( log_data [ i : i + 50 ] )
|
SINGLE_STMT
|
[["Insert", ["slice", 3, 59, 3, 63], ["binary_operator", "N0"], 2], ["Insert", "N0", ["identifier:i", "T"], 0], ["Insert", "N0", ["+:+", "T"], 1], ["Move", "N0", ["integer:50", 3, 61, 3, 63], 2]]
|
jackkiej/SickRage@c9085a3ac667944301d628636e718a22b097a8eb
|
Fix number of lines submitted.
|
[
{
"sha": "303d3cc175bacfcc98ec0da04a0ccf825103d52a",
"filename": "sickbeard/logger.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/c9085a3ac667944301d628636e718a22b097a8eb/sickbeard%2Flogger.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/c9085a3ac667944301d628636e718a22b097a8eb/sickbeard%2Flogger.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Flogger.py?ref=c9085a3ac667944301d628636e718a22b097a8eb",
"patch": "@@ -171,7 +171,7 @@ def submit_errors(self):\n if match:\n level = match.group(2)\n if reverseNames[level] == ERROR:\n- paste_data = \"\".join(log_data[i:50])\n+ paste_data = \"\".join(log_data[i:i+50])\n if paste_data:\n gist = gh.get_user().create_gist(True, {\"sickrage.log\": InputFileContent(paste_data)})\n break"
}
] |
SickRage
|
0888942820ce1a4131528f545d4ee8702cdf5f5e
|
e96ad42c5da8588de3f232654e94e7ef14ee701d
|
sickbeard/webserveInit.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -95,7 +95,7 @@ class SRWebServer(threading.Thread):
# Web calendar handler (Needed because option Unprotected calendar)
self.app.add_handlers('.*$', [
- (r'%s/calendar(/?.*)' % self.options['web_root'], CalendarHandler),
+ (r'%s/calendar' % self.options['web_root'], CalendarHandler),
])
# Static File Handlers
|
self . app . add_handlers ( '.*$' , [ ( r'%s/calendar(/?.*)' % self . options [ 'web_root' ] , CalendarHandler ) , ] )
|
self . app . add_handlers ( '.*$' , [ ( r'%s/calendar' % self . options [ 'web_root' ] , CalendarHandler ) , ] )
|
CHANGE_BINARY_OPERAND
|
[["Update", ["string:r'%s/calendar(/?.*)'", 3, 14, 3, 34], "r'%s/calendar'"]]
|
jackkiej/SickRage@0888942820ce1a4131528f545d4ee8702cdf5f5e
|
Fix wrong url handler
|
[
{
"sha": "6ddb53a5c33f94b2ed53c22f11eba62fc7db470f",
"filename": "sickbeard/webserveInit.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/0888942820ce1a4131528f545d4ee8702cdf5f5e/sickbeard%2FwebserveInit.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/0888942820ce1a4131528f545d4ee8702cdf5f5e/sickbeard%2FwebserveInit.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2FwebserveInit.py?ref=0888942820ce1a4131528f545d4ee8702cdf5f5e",
"patch": "@@ -95,7 +95,7 @@ def __init__(self, options={}, io_loop=None):\n \n # Web calendar handler (Needed because option Unprotected calendar)\n self.app.add_handlers('.*$', [\n- (r'%s/calendar(/?.*)' % self.options['web_root'], CalendarHandler),\n+ (r'%s/calendar' % self.options['web_root'], CalendarHandler),\n ])\n \n # Static File Handlers"
}
] |
SickRage
|
a3bb636df27d9363ad4cde5ef0eeae77a5afab77
|
dba4d17603b779803a561e0332ced7ac0648c4d3
|
sickbeard/traktChecker.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -70,7 +70,7 @@ class TraktChecker():
logger.log(u"No shows found in your library, aborting library update", logger.DEBUG)
return
- traktShow = filter(lambda x: int(indexerid) in [int(x['show']['ids']['tvdb']) or 0, int(x['show']['ids']['tvrage'])] or 0, library)
+ traktShow = filter(lambda x: int(indexerid) in [int(x['show']['ids']['tvdb'] or 0), int(x['show']['ids']['tvrage'] or 0)], library)
except (traktException, traktAuthException, traktServerBusy) as e:
logger.log(u"Could not connect to Trakt service: %s" % ex(e), logger.WARNING)
|
traktShow = filter ( lambda x : int ( indexerid ) in [ int ( x [ 'show' ] [ 'ids' ] [ 'tvdb' ] ) or 0 , int ( x [ 'show' ] [ 'ids' ] [ 'tvrage' ] ) ] or 0 , library )
|
traktShow = filter ( lambda x : int ( indexerid ) in [ int ( x [ 'show' ] [ 'ids' ] [ 'tvdb' ] or 0 ) , int ( x [ 'show' ] [ 'ids' ] [ 'tvrage' ] or 0 ) ] , library )
|
SINGLE_STMT
|
[["Move", ["lambda", 3, 32, 3, 134], ["comparison_operator", 3, 42, 3, 129], 3], ["Move", ["list", 3, 60, 3, 129], ["call", 3, 61, 3, 90], 1], ["Move", ["argument_list", 3, 64, 3, 90], ["boolean_operator", 3, 61, 3, 95], 1], ["Insert", ["argument_list", 3, 100, 3, 128], ["boolean_operator", "N0"], 1], ["Move", ["boolean_operator", 3, 61, 3, 95], ["subscript", 3, 65, 3, 89], 0], ["Move", "N0", ["subscript", 3, 101, 3, 127], 0], ["Insert", "N0", ["or:or", "T"], 1], ["Insert", "N0", ["integer:0", "T"], 2], ["Delete", ["or:or", 3, 130, 3, 132]], ["Delete", ["integer:0", 3, 133, 3, 134]], ["Delete", ["boolean_operator", 3, 42, 3, 134]]]
|
jackkiej/SickRage@a3bb636df27d9363ad4cde5ef0eeae77a5afab77
|
Fix misplaced or to prevent Nonetype errors
|
[
{
"sha": "00e26ceda324b4d8278aca749cb028406581172e",
"filename": "sickbeard/traktChecker.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/a3bb636df27d9363ad4cde5ef0eeae77a5afab77/sickbeard%2FtraktChecker.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/a3bb636df27d9363ad4cde5ef0eeae77a5afab77/sickbeard%2FtraktChecker.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2FtraktChecker.py?ref=a3bb636df27d9363ad4cde5ef0eeae77a5afab77",
"patch": "@@ -70,7 +70,7 @@ def findShow(self, indexer, indexerid):\n logger.log(u\"No shows found in your library, aborting library update\", logger.DEBUG)\n return\n \n- traktShow = filter(lambda x: int(indexerid) in [int(x['show']['ids']['tvdb']) or 0, int(x['show']['ids']['tvrage'])] or 0, library)\n+ traktShow = filter(lambda x: int(indexerid) in [int(x['show']['ids']['tvdb'] or 0), int(x['show']['ids']['tvrage'] or 0)], library)\n except (traktException, traktAuthException, traktServerBusy) as e:\n logger.log(u\"Could not connect to Trakt service: %s\" % ex(e), logger.WARNING)\n "
}
] |
SickRage
|
3e8346a6831d0d20fd913629ff906309e079f89f
|
94d17c286ef25b37358cf7eb3a8a2ceb6e2a6917
|
sickbeard/notifiers/trakt.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -47,7 +47,7 @@ class TraktNotifier:
trakt_id = sickbeard.indexerApi(ep_obj.show.indexer).config['trakt_id']
- trakt_api = TraktAPI(sickbeard.TRAKT_API_KEY, sickbeard.TRAKT_USERNAME, sickbeard.TRAKT_PASSWORD, TRAKT_DISABLE_SSL_VERIFY)
+ trakt_api = TraktAPI(sickbeard.TRAKT_API_KEY, sickbeard.TRAKT_USERNAME, sickbeard.TRAKT_PASSWORD, sickbeard.TRAKT_DISABLE_SSL_VERIFY)
if sickbeard.USE_TRAKT:
try:
|
trakt_api = TraktAPI ( sickbeard . TRAKT_API_KEY , sickbeard . TRAKT_USERNAME , sickbeard . TRAKT_PASSWORD , TRAKT_DISABLE_SSL_VERIFY )
|
trakt_api = TraktAPI ( sickbeard . TRAKT_API_KEY , sickbeard . TRAKT_USERNAME , sickbeard . TRAKT_PASSWORD , sickbeard . TRAKT_DISABLE_SSL_VERIFY )
|
SINGLE_STMT
|
[["Insert", ["argument_list", 2, 29, 2, 132], ["attribute", "N0"], 7], ["Insert", "N0", ["identifier:sickbeard", "T"], 0], ["Insert", "N0", [".:.", "T"], 1], ["Move", "N0", ["identifier:TRAKT_DISABLE_SSL_VERIFY", 2, 107, 2, 131], 2]]
|
jackkiej/SickRage@3e8346a6831d0d20fd913629ff906309e079f89f
|
fix oops by not referencing ssl disable property on sickbeard ob
|
[
{
"sha": "2d0e85266b643367692b32929cd6fae052286645",
"filename": "sickbeard/notifiers/trakt.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/3e8346a6831d0d20fd913629ff906309e079f89f/sickbeard%2Fnotifiers%2Ftrakt.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/3e8346a6831d0d20fd913629ff906309e079f89f/sickbeard%2Fnotifiers%2Ftrakt.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fnotifiers%2Ftrakt.py?ref=3e8346a6831d0d20fd913629ff906309e079f89f",
"patch": "@@ -47,7 +47,7 @@ def update_library(self, ep_obj):\n \"\"\"\n \n trakt_id = sickbeard.indexerApi(ep_obj.show.indexer).config['trakt_id']\n- trakt_api = TraktAPI(sickbeard.TRAKT_API_KEY, sickbeard.TRAKT_USERNAME, sickbeard.TRAKT_PASSWORD, TRAKT_DISABLE_SSL_VERIFY)\n+ trakt_api = TraktAPI(sickbeard.TRAKT_API_KEY, sickbeard.TRAKT_USERNAME, sickbeard.TRAKT_PASSWORD, sickbeard.TRAKT_DISABLE_SSL_VERIFY)\n \n if sickbeard.USE_TRAKT:\n try:"
}
] |
SickRage
|
98c479cfb9fe6f027ec545d7c905b719a40f1393
|
c62d8f2c799edd7daad5648f45276a3464d83a9e
|
sickbeard/subtitles.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -71,7 +71,7 @@ def subtitlesLanguages(video_path):
subtitles = video.scan()
languages = set()
for subtitle in subtitles:
- if subtitle.language:
+ if subtitle.language and subtitle.language.alpha2:
languages.add(subtitle.language.alpha2)
else:
languages.add(SINGLE)
|
if subtitle . language : languages . add ( subtitle . language . alpha2 ) else : languages . add ( SINGLE )
|
if subtitle . language and subtitle . language . alpha2 : languages . add ( subtitle . language . alpha2 ) else : languages . add ( SINGLE )
|
MORE_SPECIFIC_IF
|
[["Insert", ["if_statement", 3, 9, 6, 34], ["boolean_operator", "N0"], 1], ["Move", "N0", ["attribute", 3, 12, 3, 29], 0], ["Insert", "N0", ["and:and", "T"], 1], ["Insert", "N0", ["attribute", "N1"], 2], ["Insert", "N1", ["attribute", "N2"], 0], ["Insert", "N1", [".:.", "T"], 1], ["Insert", "N1", ["identifier:alpha2", "T"], 2], ["Insert", "N2", ["identifier:subtitle", "T"], 0], ["Insert", "N2", [".:.", "T"], 1], ["Insert", "N2", ["identifier:language", "T"], 2]]
|
jackkiej/SickRage@98c479cfb9fe6f027ec545d7c905b719a40f1393
|
Improve code check for list comprehensions
Related to :
https://github.com/SiCKRAGETV/sickrage-issues/issues/457
This is why we have comma on the database like here ",en". Because alpha2 variable is empty.
Also, they have an error on the display page, this is already PR https://github.com/SiCKRAGETV/SickRage/pull/1260
|
[
{
"sha": "dce615856dfc1523a1dd53faadbd16c7963fbf03",
"filename": "sickbeard/subtitles.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/98c479cfb9fe6f027ec545d7c905b719a40f1393/sickbeard%2Fsubtitles.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/98c479cfb9fe6f027ec545d7c905b719a40f1393/sickbeard%2Fsubtitles.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fsubtitles.py?ref=98c479cfb9fe6f027ec545d7c905b719a40f1393",
"patch": "@@ -71,7 +71,7 @@ def subtitlesLanguages(video_path):\n subtitles = video.scan()\n languages = set()\n for subtitle in subtitles:\n- if subtitle.language:\n+ if subtitle.language and subtitle.language.alpha2:\n languages.add(subtitle.language.alpha2)\n else:\n languages.add(SINGLE)"
}
] |
SickRage
|
c0aa41fefa36782641d9a92a163a40b9031417b7
|
c62d8f2c799edd7daad5648f45276a3464d83a9e
|
sickbeard/failedProcessor.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -67,7 +67,7 @@ class FailedProcessor(object):
for episode in parsed.episode_numbers:
segment = parsed.show.getEpisode(parsed.season_number, episode)
- cur_failed_queue_item = search_queue.FailedQueueItem(parsed.show, segment)
+ cur_failed_queue_item = search_queue.FailedQueueItem(parsed.show, [segment])
sickbeard.searchQueueScheduler.action.add_item(cur_failed_queue_item)
return True
|
cur_failed_queue_item = search_queue . FailedQueueItem ( parsed . show , segment )
|
cur_failed_queue_item = search_queue . FailedQueueItem ( parsed . show , [ segment ] )
|
SINGLE_STMT
|
[["Insert", ["argument_list", 3, 65, 3, 87], ["list", "N0"], 3], ["Insert", "N0", ["[:[", "T"], 0], ["Move", "N0", ["identifier:segment", 3, 79, 3, 86], 1], ["Insert", "N0", ["]:]", "T"], 2]]
|
jackkiej/SickRage@c0aa41fefa36782641d9a92a163a40b9031417b7
|
Partial Revert 1253
- Reverts changes made to failedProcessor.py by PR 1253
- Fixes miscelaneous errors on setting a single episode to failed.
|
[
{
"sha": "6c1245bb893281bd8f4ea77e2e2fc849a113d4f2",
"filename": "sickbeard/failedProcessor.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/c0aa41fefa36782641d9a92a163a40b9031417b7/sickbeard%2FfailedProcessor.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/c0aa41fefa36782641d9a92a163a40b9031417b7/sickbeard%2FfailedProcessor.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2FfailedProcessor.py?ref=c0aa41fefa36782641d9a92a163a40b9031417b7",
"patch": "@@ -67,7 +67,7 @@ def process(self):\n for episode in parsed.episode_numbers:\n segment = parsed.show.getEpisode(parsed.season_number, episode)\n \n- cur_failed_queue_item = search_queue.FailedQueueItem(parsed.show, segment)\n+ cur_failed_queue_item = search_queue.FailedQueueItem(parsed.show, [segment])\n sickbeard.searchQueueScheduler.action.add_item(cur_failed_queue_item)\n \n return True"
}
] |
SickRage
|
052138a50fd64136e4c3cf0143bff93ab13d1b26
|
c62d8f2c799edd7daad5648f45276a3464d83a9e
|
sickbeard/dailysearcher.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -49,7 +49,7 @@ class DailySearcher():
if network_timezones.network_dict:
curDate = (datetime.date.today() + datetime.timedelta(days=1)).toordinal()
else:
- curDate = (datetime.date.today() - datetime.timedelta(days=2)).toordinal()
+ curDate = (datetime.date.today() + datetime.timedelta(days=2)).toordinal()
curTime = datetime.datetime.now(network_timezones.sb_timezone)
|
curDate = ( datetime . date . today ( ) - datetime . timedelta ( days = 2 ) ) . toordinal ( )
|
curDate = ( datetime . date . today ( ) + datetime . timedelta ( days = 2 ) ) . toordinal ( )
|
CHANGE_BINARY_OPERATOR
|
[["Insert", ["binary_operator", 3, 24, 3, 74], ["+:+", "T"], 1], ["Delete", ["-:-", 3, 46, 3, 47]]]
|
jackkiej/SickRage@052138a50fd64136e4c3cf0143bff93ab13d1b26
|
Fix incorrect operator in dailysearcher.py
|
[
{
"sha": "d54e4d2d4ecf1f649cafa68c62cdd5e4335c5123",
"filename": "sickbeard/dailysearcher.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/052138a50fd64136e4c3cf0143bff93ab13d1b26/sickbeard%2Fdailysearcher.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/052138a50fd64136e4c3cf0143bff93ab13d1b26/sickbeard%2Fdailysearcher.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fdailysearcher.py?ref=052138a50fd64136e4c3cf0143bff93ab13d1b26",
"patch": "@@ -49,7 +49,7 @@ def run(self, force=False):\n if network_timezones.network_dict:\n curDate = (datetime.date.today() + datetime.timedelta(days=1)).toordinal()\n else:\n- curDate = (datetime.date.today() - datetime.timedelta(days=2)).toordinal()\n+ curDate = (datetime.date.today() + datetime.timedelta(days=2)).toordinal()\n \n curTime = datetime.datetime.now(network_timezones.sb_timezone)\n "
}
] |
SickRage
|
7b767c27a90c3ce22c41134afb7c0b3e69d5f15c
|
0f01638887d7cc11014a32c68f00ab0cef708d3d
|
sickbeard/tv.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -1273,7 +1273,7 @@ class TVShow(object):
if epStatus == FAILED:
return Overview.WANTED
- elif epStatus in (SNATCHED_BEST, SNATCHED, SNATCHED_PROPER ) and curQuality == maxBestQuality:
+ elif epStatus in (SNATCHED, SNATCHED_PROPER, SNATCHED_BEST):
return Overview.SNATCHED
# if they don't want re-downloads then we call it good if they have anything
elif maxBestQuality == None:
|
if epStatus == FAILED : return Overview . WANTED elif epStatus in ( SNATCHED_BEST , SNATCHED , SNATCHED_PROPER ) and curQuality == maxBestQuality : return Overview . SNATCHED elif maxBestQuality == None :
|
if epStatus == FAILED : return Overview . WANTED elif epStatus in ( SNATCHED , SNATCHED_PROPER , SNATCHED_BEST ) : return Overview . SNATCHED elif maxBestQuality == None :
|
SINGLE_STMT
|
[["Move", ["elif_clause", 3, 13, 4, 41], ["comparison_operator", 3, 18, 3, 73], 1], ["Update", ["identifier:SNATCHED_BEST", 3, 31, 3, 44], "SNATCHED"], ["Update", ["identifier:SNATCHED", 3, 46, 3, 54], "SNATCHED_PROPER"], ["Update", ["identifier:SNATCHED_PROPER", 3, 56, 3, 71], "SNATCHED_BEST"], ["Delete", ["and:and", 3, 74, 3, 77]], ["Delete", ["identifier:curQuality", 3, 78, 3, 88]], ["Delete", ["==:==", 3, 89, 3, 91]], ["Delete", ["identifier:maxBestQuality", 3, 92, 3, 106]], ["Delete", ["comparison_operator", 3, 78, 3, 106]], ["Delete", ["boolean_operator", 3, 18, 3, 106]]]
|
jackkiej/SickRage@7b767c27a90c3ce22c41134afb7c0b3e69d5f15c
|
Revert "Fix low quality snatched episode don't appear at backlog"
This reverts commit 9101f644f779d0c49825cce7b69997a34f5fab73.
|
[
{
"sha": "91c9d3bc2f1c4f3ab3dbf53f28c902e4792f0373",
"filename": "sickbeard/tv.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/7b767c27a90c3ce22c41134afb7c0b3e69d5f15c/sickbeard%2Ftv.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/7b767c27a90c3ce22c41134afb7c0b3e69d5f15c/sickbeard%2Ftv.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Ftv.py?ref=7b767c27a90c3ce22c41134afb7c0b3e69d5f15c",
"patch": "@@ -1273,7 +1273,7 @@ def getOverview(self, epStatus):\n \n if epStatus == FAILED:\n return Overview.WANTED\n- elif epStatus in (SNATCHED_BEST, SNATCHED, SNATCHED_PROPER ) and curQuality == maxBestQuality:\n+ elif epStatus in (SNATCHED, SNATCHED_PROPER, SNATCHED_BEST):\n return Overview.SNATCHED\n # if they don't want re-downloads then we call it good if they have anything\n elif maxBestQuality == None:"
}
] |
SickRage
|
2fe38ce1d90a7b2ceea72f78658fe2261ff52970
|
7d3382dc075d441920a55f2fece6315e71b708ea
|
sickbeard/sbdatetime.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -130,7 +130,7 @@ class sbdatetime(datetime.datetime):
try:
if sbdatetime.has_locale:
- locale.setlocale(locale.LC_TIME, 'us_US')
+ locale.setlocale(locale.LC_TIME, 'en_US')
except:
sbdatetime.has_locale = False
|
locale . setlocale ( locale . LC_TIME , 'us_US' )
|
locale . setlocale ( locale . LC_TIME , 'en_US' )
|
CHANGE_STRING_LITERAL
|
[["Update", ["string:'us_US'", 3, 50, 3, 57], "'en_US'"]]
|
jackkiej/SickRage@2fe38ce1d90a7b2ceea72f78658fe2261ff52970
|
Fix typo for locale from us_US to en_US
|
[
{
"sha": "52e862ab1dd7beeabc3fbb4cc315d7f9a0cfd8d7",
"filename": "sickbeard/sbdatetime.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/2fe38ce1d90a7b2ceea72f78658fe2261ff52970/sickbeard%2Fsbdatetime.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/2fe38ce1d90a7b2ceea72f78658fe2261ff52970/sickbeard%2Fsbdatetime.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fsbdatetime.py?ref=2fe38ce1d90a7b2ceea72f78658fe2261ff52970",
"patch": "@@ -130,7 +130,7 @@ def sbftime(self, dt=None, show_seconds=False, t_preset=None):\n \n try:\n if sbdatetime.has_locale:\n- locale.setlocale(locale.LC_TIME, 'us_US')\n+ locale.setlocale(locale.LC_TIME, 'en_US')\n except:\n sbdatetime.has_locale = False\n "
}
] |
SickRage
|
eebd5f3cd32ed91dbf422025358c2b7f33c850f8
|
c62d8f2c799edd7daad5648f45276a3464d83a9e
|
sickbeard/providers/torrentbytes.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -81,7 +81,7 @@ class TorrentBytesProvider(generic.TorrentProvider):
login_params = {'username': self.username,
'password': self.password,
- 'login': 'submit'
+ 'login': 'Log in!'
}
self.session = requests.Session()
|
login_params = { 'username' : self . username , 'password' : self . password , 'login' : 'submit' }
|
login_params = { 'username' : self . username , 'password' : self . password , 'login' : 'Log in!' }
|
CHANGE_STRING_LITERAL
|
[["Update", ["string:'submit'", 3, 34, 3, 42], "'Log in!'"]]
|
jackkiej/SickRage@eebd5f3cd32ed91dbf422025358c2b7f33c850f8
|
Updated login param value for torrentBytes provider. Fixes SiCKRAGETV/sickrage-issues#604.
|
[
{
"sha": "e62a91fbe953e5bf678fcef04989d431f22b6164",
"filename": "sickbeard/providers/torrentbytes.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/eebd5f3cd32ed91dbf422025358c2b7f33c850f8/sickbeard%2Fproviders%2Ftorrentbytes.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/eebd5f3cd32ed91dbf422025358c2b7f33c850f8/sickbeard%2Fproviders%2Ftorrentbytes.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Ftorrentbytes.py?ref=eebd5f3cd32ed91dbf422025358c2b7f33c850f8",
"patch": "@@ -81,7 +81,7 @@ def _doLogin(self):\n \n login_params = {'username': self.username,\n 'password': self.password,\n- 'login': 'submit'\n+ 'login': 'Log in!'\n }\n \n self.session = requests.Session()"
}
] |
SickRage
|
973a1a8bef5b195f9bede0450987e2868f7345dd
|
ba13cc532e9ace61c26e969011cbe619936e4695
|
sickbeard/providers/rarbg.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -198,7 +198,7 @@ class RarbgProvider(generic.TorrentProvider):
torrent_name = str(torrentName)
torrentId = result.find_all('td')[1].find_all('a')[0]['href'][1:].replace(
'torrent/', '')
- torrent_download_url = (self.urls['download'] % (torrentId, torrent_name + '-[rarbg.com].torrent')).encode('utf8')
+ torrent_download_url = (self.urls['download'] % (torrentId, urllib.quote(torrent_name) + '-[rarbg.com].torrent')).encode('utf8')
except (AttributeError, TypeError):
continue
|
torrent_download_url = ( self . urls [ 'download' ] % ( torrentId , torrent_name + '-[rarbg.com].torrent' ) ) . encode ( 'utf8' )
|
torrent_download_url = ( self . urls [ 'download' ] % ( torrentId , urllib . quote ( torrent_name ) + '-[rarbg.com].torrent' ) ) . encode ( 'utf8' )
|
ADD_FUNCTION_AROUND_EXPRESSION
|
[["Insert", ["binary_operator", 3, 101, 3, 138], ["call", "N0"], 0], ["Insert", "N0", ["attribute", "N1"], 0], ["Insert", "N0", ["argument_list", "N2"], 1], ["Insert", "N1", ["identifier:urllib", "T"], 0], ["Insert", "N1", [".:.", "T"], 1], ["Insert", "N1", ["identifier:quote", "T"], 2], ["Insert", "N2", ["(:(", "T"], 0], ["Move", "N2", ["identifier:torrent_name", 3, 101, 3, 113], 1], ["Insert", "N2", ["):)", "T"], 2]]
|
jackkiej/SickRage@973a1a8bef5b195f9bede0450987e2868f7345dd
|
Fix for RARBG provider
Manage the case where the torrent name got spaces in it
|
[
{
"sha": "493bc79d64b51b1ce030b77b01d6a2134855e756",
"filename": "sickbeard/providers/rarbg.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/973a1a8bef5b195f9bede0450987e2868f7345dd/sickbeard%2Fproviders%2Frarbg.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/973a1a8bef5b195f9bede0450987e2868f7345dd/sickbeard%2Fproviders%2Frarbg.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Frarbg.py?ref=973a1a8bef5b195f9bede0450987e2868f7345dd",
"patch": "@@ -198,7 +198,7 @@ def _doSearch(self, search_params, search_mode='eponly', epcount=0, age=0):\n torrent_name = str(torrentName)\n torrentId = result.find_all('td')[1].find_all('a')[0]['href'][1:].replace(\n 'torrent/', '')\n- torrent_download_url = (self.urls['download'] % (torrentId, torrent_name + '-[rarbg.com].torrent')).encode('utf8')\n+ torrent_download_url = (self.urls['download'] % (torrentId, urllib.quote(torrent_name) + '-[rarbg.com].torrent')).encode('utf8')\n except (AttributeError, TypeError):\n continue\n "
}
] |
SickRage
|
90cd0e017a70fd99f0531f8874c0801820f50ee0
|
e1ea0135441662fae914b7579aaa6485e6df806d
|
sickbeard/tv.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -1420,7 +1420,7 @@ class TVEpisode(object):
helpers.chmodAsParent(subtitle.path)
except Exception as e:
- logger.log("Error occurred when downloading subtitles: " + traceback.format_exc(), logger.ERROR)
+ logger.log("Error occurred when downloading subtitles: " + str(e), logger.ERROR)
return
if sickbeard.SUBTITLES_MULTI:
|
except Exception as e : logger . log ( "Error occurred when downloading subtitles: " + traceback . format_exc ( ) , logger . ERROR )
|
except Exception as e : logger . log ( "Error occurred when downloading subtitles: " + str ( e ) , logger . ERROR )
|
CHANGE_BINARY_OPERAND
|
[["Update", ["identifier:traceback", 3, 72, 3, 81], "str"], ["Move", ["call", 3, 72, 3, 94], ["identifier:traceback", 3, 72, 3, 81], 0], ["Insert", ["argument_list", 3, 92, 3, 94], ["identifier:e", "T"], 1], ["Delete", [".:.", 3, 81, 3, 82]], ["Delete", ["identifier:format_exc", 3, 82, 3, 92]], ["Delete", ["attribute", 3, 72, 3, 92]]]
|
jackkiej/SickRage@90cd0e017a70fd99f0531f8874c0801820f50ee0
|
Opensubtitle - show only error not traceback
|
[
{
"sha": "75358ae092f443298970ae2fe3f84f1669d8f198",
"filename": "sickbeard/tv.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/90cd0e017a70fd99f0531f8874c0801820f50ee0/sickbeard%2Ftv.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/90cd0e017a70fd99f0531f8874c0801820f50ee0/sickbeard%2Ftv.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Ftv.py?ref=90cd0e017a70fd99f0531f8874c0801820f50ee0",
"patch": "@@ -1420,7 +1420,7 @@ def downloadSubtitles(self, force=False):\n helpers.chmodAsParent(subtitle.path)\n \n except Exception as e:\n- logger.log(\"Error occurred when downloading subtitles: \" + traceback.format_exc(), logger.ERROR)\n+ logger.log(\"Error occurred when downloading subtitles: \" + str(e), logger.ERROR)\n return\n \n if sickbeard.SUBTITLES_MULTI:"
}
] |
SickRage
|
4efb39ce87040bea8d596671598f71bbe306663d
|
f04a3449ec5832ff0edaef6eaae71715c25eba43
|
sickbeard/webserve.py
|
https://github.com/jackkiej/SickRage
| true | false | false |
@@ -1368,7 +1368,7 @@ class Home(WebRoot):
shortBlacklist.append(groupName)
except Exception as e:
anidb_failed = True
- ui.notifications.error('Unable to retreive blacklist short name from AniDB.')
+ ui.notifications.error('Unable to retreive data from AniDB.')
shortBlacklist = blacklist
else:
shortBlacklist = blacklist
|
ui . notifications . error ( 'Unable to retreive blacklist short name from AniDB.' )
|
ui . notifications . error ( 'Unable to retreive data from AniDB.' )
|
CHANGE_STRING_LITERAL
|
[["Update", ["string:'Unable to retreive blacklist short name from AniDB.'", 3, 52, 3, 105], "'Unable to retreive data from AniDB.'"]]
|
jackkiej/SickRage@4efb39ce87040bea8d596671598f71bbe306663d
|
Fix string
|
[
{
"sha": "a0bb0699ea228bd67fadde0d498dfddb0d5fe488",
"filename": "sickbeard/webserve.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/4efb39ce87040bea8d596671598f71bbe306663d/sickbeard%2Fwebserve.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/4efb39ce87040bea8d596671598f71bbe306663d/sickbeard%2Fwebserve.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fwebserve.py?ref=4efb39ce87040bea8d596671598f71bbe306663d",
"patch": "@@ -1368,7 +1368,7 @@ def editShow(self, show=None, location=None, anyQualities=[], bestQualities=[],\n shortBlacklist.append(groupName)\n except Exception as e:\n anidb_failed = True\n- ui.notifications.error('Unable to retreive blacklist short name from AniDB.')\n+ ui.notifications.error('Unable to retreive data from AniDB.')\n shortBlacklist = blacklist\n else:\n shortBlacklist = blacklist"
}
] |
SickRage
|
8b69b2cc1069db8031bf6a47da70c7eb3db84b7d
|
62f45524eb9f1e3762a22af0bcd576e4285bad52
|
sickbeard/notifiers/kodi.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -397,7 +397,7 @@ class KODINotifier:
logger.log(u"KODI JSON response: " + str(result), logger.DEBUG)
return result # need to return response for parsing
except ValueError, e:
- logger.log(u"Unable to decode JSON: " + response, logger.WARNING)
+ logger.log(u"Unable to decode JSON: " + str(response), logger.WARNING)
return False
except IOError, e:
|
except ValueError , e : logger . log ( u"Unable to decode JSON: " + response , logger . WARNING )
|
except ValueError , e : logger . log ( u"Unable to decode JSON: " + str ( response ) , logger . WARNING )
|
ADD_FUNCTION_AROUND_EXPRESSION
|
[["Insert", ["binary_operator", 3, 28, 3, 65], ["call", "N0"], 2], ["Insert", "N0", ["identifier:str", "T"], 0], ["Insert", "N0", ["argument_list", "N1"], 1], ["Insert", "N1", ["(:(", "T"], 0], ["Move", "N1", ["identifier:response", 3, 57, 3, 65], 1], ["Insert", "N1", ["):)", "T"], 2]]
|
jackkiej/SickRage@8b69b2cc1069db8031bf6a47da70c7eb3db84b7d
|
Possible fix for kodi notify
|
[
{
"sha": "5d90533fee5449470acecd7969c91b6174815d9f",
"filename": "sickbeard/notifiers/kodi.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/8b69b2cc1069db8031bf6a47da70c7eb3db84b7d/sickbeard%2Fnotifiers%2Fkodi.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/8b69b2cc1069db8031bf6a47da70c7eb3db84b7d/sickbeard%2Fnotifiers%2Fkodi.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fnotifiers%2Fkodi.py?ref=8b69b2cc1069db8031bf6a47da70c7eb3db84b7d",
"patch": "@@ -397,7 +397,7 @@ def _send_to_kodi_json(self, command, host=None, username=None, password=None):\n logger.log(u\"KODI JSON response: \" + str(result), logger.DEBUG)\n return result # need to return response for parsing\n except ValueError, e:\n- logger.log(u\"Unable to decode JSON: \" + response, logger.WARNING)\n+ logger.log(u\"Unable to decode JSON: \" + str(response), logger.WARNING)\n return False\n \n except IOError, e:"
}
] |
SickRage
|
4ca2a432fc5fd1263068e721ac93b4e470f44aee
|
8b69b2cc1069db8031bf6a47da70c7eb3db84b7d
|
sickbeard/notifiers/kodi.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -397,7 +397,7 @@ class KODINotifier:
logger.log(u"KODI JSON response: " + str(result), logger.DEBUG)
return result # need to return response for parsing
except ValueError, e:
- logger.log(u"Unable to decode JSON: " + str(response), logger.WARNING)
+ logger.log(u"Unable to decode JSON: " + str(response.read()), logger.WARNING)
return False
except IOError, e:
|
except ValueError , e : logger . log ( u"Unable to decode JSON: " + str ( response ) , logger . WARNING )
|
except ValueError , e : logger . log ( u"Unable to decode JSON: " + str ( response . read ( ) ) , logger . WARNING )
|
ADD_METHOD_CALL
|
[["Insert", ["argument_list", 3, 61, 3, 71], ["call", "N0"], 1], ["Insert", ["argument_list", 3, 61, 3, 71], ["):)", "T"], 2], ["Insert", "N0", ["attribute", "N1"], 0], ["Insert", "N0", ["argument_list", "N2"], 1], ["Move", "N1", ["identifier:response", 3, 62, 3, 70], 0], ["Insert", "N1", [".:.", "T"], 1], ["Insert", "N1", ["identifier:read", "T"], 2], ["Insert", "N2", ["(:(", "T"], 0], ["Move", "N2", ["):)", 3, 70, 3, 71], 1]]
|
jackkiej/SickRage@4ca2a432fc5fd1263068e721ac93b4e470f44aee
|
Kodi fix
|
[
{
"sha": "7b4bd3c6e991d6a92ef28be450fea5e815b427e6",
"filename": "sickbeard/notifiers/kodi.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/4ca2a432fc5fd1263068e721ac93b4e470f44aee/sickbeard%2Fnotifiers%2Fkodi.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/4ca2a432fc5fd1263068e721ac93b4e470f44aee/sickbeard%2Fnotifiers%2Fkodi.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fnotifiers%2Fkodi.py?ref=4ca2a432fc5fd1263068e721ac93b4e470f44aee",
"patch": "@@ -397,7 +397,7 @@ def _send_to_kodi_json(self, command, host=None, username=None, password=None):\n logger.log(u\"KODI JSON response: \" + str(result), logger.DEBUG)\n return result # need to return response for parsing\n except ValueError, e:\n- logger.log(u\"Unable to decode JSON: \" + str(response), logger.WARNING)\n+ logger.log(u\"Unable to decode JSON: \" + str(response.read()), logger.WARNING)\n return False\n \n except IOError, e:"
}
] |
SickRage
|
293c10429ceb866f61182ae850b3cf81a4ceaa4c
|
4db476b2daa6fab16c887777d4900b1ea712c716
|
sickbeard/providers/generic.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -504,7 +504,7 @@ class ProviderProxy:
def _buildURL(self, url):
""" Return the Proxyfied URL of the page """
if self.isEnabled():
- url = self.getProxyURL() + self.param + urllib.quote_plus(url) + self.option
+ url = self.getProxyURL() + self.param + urllib.quote_plus(url.encode('UTF-8')) + self.option
logger.log(u"Proxified URL: " + url, logger.DEBUG)
|
url = self . getProxyURL ( ) + self . param + urllib . quote_plus ( url ) + self . option
|
url = self . getProxyURL ( ) + self . param + urllib . quote_plus ( url . encode ( 'UTF-8' ) ) + self . option
|
ADD_METHOD_CALL
|
[["Insert", ["argument_list", 3, 70, 3, 75], ["call", "N0"], 1], ["Insert", ["argument_list", 3, 70, 3, 75], ["):)", "T"], 2], ["Insert", "N0", ["attribute", "N1"], 0], ["Insert", "N0", ["argument_list", "N2"], 1], ["Move", "N1", ["identifier:url", 3, 71, 3, 74], 0], ["Insert", "N1", [".:.", "T"], 1], ["Insert", "N1", ["identifier:encode", "T"], 2], ["Insert", "N2", ["(:(", "T"], 0], ["Insert", "N2", ["string:'UTF-8'", "T"], 1], ["Move", "N2", ["):)", 3, 74, 3, 75], 2]]
|
jackkiej/SickRage@293c10429ceb866f61182ae850b3cf81a4ceaa4c
|
UTF-8 encode url that is used in urllib.quote_plus(url) to ensure unicode charachters don't cause a key error
|
[
{
"sha": "a835dad70095225e47b6fa55cb07bb62ab4a4fc1",
"filename": "sickbeard/providers/generic.py",
"status": "modified",
"additions": 2,
"deletions": 2,
"changes": 4,
"blob_url": "https://github.com/jackkiej/SickRage/blob/293c10429ceb866f61182ae850b3cf81a4ceaa4c/sickbeard%2Fproviders%2Fgeneric.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/293c10429ceb866f61182ae850b3cf81a4ceaa4c/sickbeard%2Fproviders%2Fgeneric.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Fgeneric.py?ref=293c10429ceb866f61182ae850b3cf81a4ceaa4c",
"patch": "@@ -504,7 +504,7 @@ def getProxyURL(self):\n def _buildURL(self, url):\n \"\"\" Return the Proxyfied URL of the page \"\"\"\n if self.isEnabled():\n- url = self.getProxyURL() + self.param + urllib.quote_plus(url) + self.option\n+ url = self.getProxyURL() + self.param + urllib.quote_plus(url.encode('UTF-8')) + self.option\n logger.log(u\"Proxified URL: \" + url, logger.DEBUG)\n \n return url\n@@ -517,4 +517,4 @@ def _buildRE(self, regx):\n else:\n regx = re.sub('//1', '', regx)\n \n- return regx\n\\ No newline at end of file\n+ return regx"
}
] |
SickRage
|
8f0508bf8ddec80271476339ea6621e0b288c644
|
edb337f4d3f89cdee4c2ed13668231fa7a241eec
|
sickbeard/providers/scc.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -176,7 +176,7 @@ class SCCProvider(generic.TorrentProvider):
if isinstance(search_string, unicode):
search_string = unidecode(search_string)
- if mode == 'Season':
+ if mode == 'Season' and search_mode == 'sponly':
searchURLS += [self.urls['archive'] % (search_string)]
else:
searchURLS += [self.urls['search'] % (search_string, self.categories)]
|
if mode == 'Season' : searchURLS += [ self . urls [ 'archive' ] % ( search_string ) ] else : searchURLS += [ self . urls [ 'search' ] % ( search_string , self . categories ) ]
|
if mode == 'Season' and search_mode == 'sponly' : searchURLS += [ self . urls [ 'archive' ] % ( search_string ) ] else : searchURLS += [ self . urls [ 'search' ] % ( search_string , self . categories ) ]
|
MORE_SPECIFIC_IF
|
[["Insert", ["if_statement", 3, 17, 6, 91], ["boolean_operator", "N0"], 1], ["Move", "N0", ["comparison_operator", 3, 20, 3, 36], 0], ["Insert", "N0", ["and:and", "T"], 1], ["Insert", "N0", ["comparison_operator", "N1"], 2], ["Insert", "N1", ["identifier:search_mode", "T"], 0], ["Insert", "N1", ["==:==", "T"], 1], ["Insert", "N1", ["string:'sponly'", "T"], 2]]
|
jackkiej/SickRage@8f0508bf8ddec80271476339ea6621e0b288c644
|
SCC: Fix season search only in sponly
|
[
{
"sha": "2e236441211c588153080445c147678435174fb3",
"filename": "sickbeard/providers/scc.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/8f0508bf8ddec80271476339ea6621e0b288c644/sickbeard%2Fproviders%2Fscc.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/8f0508bf8ddec80271476339ea6621e0b288c644/sickbeard%2Fproviders%2Fscc.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Fscc.py?ref=8f0508bf8ddec80271476339ea6621e0b288c644",
"patch": "@@ -176,7 +176,7 @@ def _doSearch(self, search_params, search_mode='eponly', epcount=0, age=0):\n if isinstance(search_string, unicode):\n search_string = unidecode(search_string)\n \n- if mode == 'Season':\n+ if mode == 'Season' and search_mode == 'sponly':\n searchURLS += [self.urls['archive'] % (search_string)]\n else:\n searchURLS += [self.urls['search'] % (search_string, self.categories)]"
}
] |
SickRage
|
3a9f137522feb6144e959fe93837bed6d02b5bf7
|
fdd1f63bdbf007df87943f9776ac9b80cc8e3353
|
sickbeard/metadata/mede8er.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -304,7 +304,7 @@ class Mede8erMetadata(mediabrowser.MediaBrowserMetadata):
Overview.text = ""
mpaa = etree.SubElement(episode, "mpaa")
- if myShow["contentrating"] != None:
+ if getattr(myShow, 'contentrating', None) is not None:
mpaa.text = myShow["contentrating"]
if not ep_obj.relatedEps:
|
if myShow [ "contentrating" ] != None : mpaa . text = myShow [ "contentrating" ]
|
if getattr ( myShow , 'contentrating' , None ) is not None : mpaa . text = myShow [ "contentrating" ]
|
SINGLE_STMT
|
[["Insert", ["comparison_operator", 3, 20, 3, 51], ["call", "N0"], 0], ["Insert", ["comparison_operator", 3, 20, 3, 51], ["is:is", "T"], 1], ["Insert", ["comparison_operator", 3, 20, 3, 51], ["not:not", "T"], 2], ["Insert", ["comparison_operator", 3, 20, 3, 51], ["none:None", "T"], 3], ["Insert", "N0", ["identifier:getattr", "T"], 0], ["Insert", "N0", ["argument_list", "N1"], 1], ["Insert", "N1", ["(:(", "T"], 0], ["Move", "N1", ["identifier:myShow", 3, 20, 3, 26], 1], ["Insert", "N1", [",:,", "T"], 2], ["Update", ["string:\"contentrating\"", 3, 27, 3, 42], "'contentrating'"], ["Move", "N1", ["string:\"contentrating\"", 3, 27, 3, 42], 3], ["Insert", "N1", [",:,", "T"], 4], ["Move", "N1", ["none:None", 3, 47, 3, 51], 5], ["Insert", "N1", ["):)", "T"], 6], ["Delete", ["[:[", 3, 26, 3, 27]], ["Delete", ["]:]", 3, 42, 3, 43]], ["Delete", ["subscript", 3, 20, 3, 43]], ["Delete", ["!=:!=", 3, 44, 3, 46]]]
|
jackkiej/SickRage@3a9f137522feb6144e959fe93837bed6d02b5bf7
|
Fix Exception generated: Cannot find attribute 'contentrating'
- Fixes POSTPROCESSER :: Exception generated in thread POSTPROCESSER:
Cannot find attribute 'contentrating' errors in Mede8ter metadata
creation.
|
[
{
"sha": "64db23f7c98aad2410fb806d1d117468290272f7",
"filename": "sickbeard/metadata/mede8er.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/3a9f137522feb6144e959fe93837bed6d02b5bf7/sickbeard%2Fmetadata%2Fmede8er.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/3a9f137522feb6144e959fe93837bed6d02b5bf7/sickbeard%2Fmetadata%2Fmede8er.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fmetadata%2Fmede8er.py?ref=3a9f137522feb6144e959fe93837bed6d02b5bf7",
"patch": "@@ -304,7 +304,7 @@ def _ep_data(self, ep_obj):\n Overview.text = \"\"\r\n \r\n mpaa = etree.SubElement(episode, \"mpaa\")\r\n- if myShow[\"contentrating\"] != None:\r\n+ if getattr(myShow, 'contentrating', None) is not None:\r\n mpaa.text = myShow[\"contentrating\"]\r\n \r\n if not ep_obj.relatedEps:\r"
}
] |
SickRage
|
675d48bcb07fc02889d5350c47bee873298830f1
|
68cd0fa18e3ae75a368728aeaaae7913caf13db4
|
sickbeard/__init__.py
|
https://github.com/jackkiej/SickRage
| true | false | false |
@@ -412,7 +412,7 @@ TRAKT_USE_RECOMMENDED = False
TRAKT_SYNC = False
TRAKT_DEFAULT_INDEXER = None
TRAKT_DISABLE_SSL_VERIFY = False
-TRAKT_TIMEOUT = 30
+TRAKT_TIMEOUT = 60
USE_PYTIVO = False
PYTIVO_NOTIFY_ONSNATCH = False
|
TRAKT_TIMEOUT = 30
|
TRAKT_TIMEOUT = 60
|
CHANGE_NUMERIC_LITERAL
|
[["Update", ["integer:30", 3, 17, 3, 19], "60"]]
|
jackkiej/SickRage@675d48bcb07fc02889d5350c47bee873298830f1
|
Update default trakt timeout
|
[
{
"sha": "9ca4047022bd7dbaed0924d9f5fd84610ca78320",
"filename": "sickbeard/__init__.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/675d48bcb07fc02889d5350c47bee873298830f1/sickbeard%2F__init__.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/675d48bcb07fc02889d5350c47bee873298830f1/sickbeard%2F__init__.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2F__init__.py?ref=675d48bcb07fc02889d5350c47bee873298830f1",
"patch": "@@ -412,7 +412,7 @@\n TRAKT_SYNC = False\n TRAKT_DEFAULT_INDEXER = None\n TRAKT_DISABLE_SSL_VERIFY = False\n-TRAKT_TIMEOUT = 30\n+TRAKT_TIMEOUT = 60\n \n USE_PYTIVO = False\n PYTIVO_NOTIFY_ONSNATCH = False"
}
] |
SickRage
|
8009aec65dc86586fcab058a3a5e51641ca4e19f
|
ae82dfd36c0a8736b91e4e74bc4e7ede7d606941
|
sickbeard/traktChecker.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -315,7 +315,7 @@ class TraktRolling():
def updateWantedList(self, indexer_id = None):
- if not sickbeard.USE_TRAKT:
+ if not sickbeard.TRAKT_USE_ROLLING_DOWNLOAD:
logger.log(u"Trakt integrazione disabled, quit", logger.DEBUG)
return True
|
if not sickbeard . USE_TRAKT : logger . log ( u"Trakt integrazione disabled, quit" , logger . DEBUG ) return True
|
if not sickbeard . TRAKT_USE_ROLLING_DOWNLOAD : logger . log ( u"Trakt integrazione disabled, quit" , logger . DEBUG ) return True
|
CHANGE_ATTRIBUTE_USED
|
[["Update", ["identifier:USE_TRAKT", 3, 26, 3, 35], "TRAKT_USE_ROLLING_DOWNLOAD"]]
|
jackkiej/SickRage@8009aec65dc86586fcab058a3a5e51641ca4e19f
|
Small fix
|
[
{
"sha": "e81c577b9fa241298bff8f83d3b3258eb2a6146f",
"filename": "sickbeard/traktChecker.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/8009aec65dc86586fcab058a3a5e51641ca4e19f/sickbeard%2FtraktChecker.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/8009aec65dc86586fcab058a3a5e51641ca4e19f/sickbeard%2FtraktChecker.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2FtraktChecker.py?ref=8009aec65dc86586fcab058a3a5e51641ca4e19f",
"patch": "@@ -315,7 +315,7 @@ def refreshEpisodeWatched(self):\n \n def updateWantedList(self, indexer_id = None):\n \n- if not sickbeard.USE_TRAKT:\n+ if not sickbeard.TRAKT_USE_ROLLING_DOWNLOAD:\n logger.log(u\"Trakt integrazione disabled, quit\", logger.DEBUG)\n return True\n "
}
] |
SickRage
|
cc9d2b3546180d9442ffd1438210058d08dc10e0
|
48cffdd9a6854a70b1fcb2e74b18d13b3ebffac6
|
sickbeard/clients/generic.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -199,7 +199,7 @@ class GenericClient(object):
except Exception, e:
logger.log(self.name + u': Failed Sending Torrent', logger.ERROR)
- logger.log(self.name + u': Exception raised when sending torrent: ' + str(e), logger.DEBUG)
+ logger.log(self.name + u': Exception raised when sending torrent: ' + str(result) + u'. Error: ' + str(e), logger.DEBUG)
return r_code
return r_code
|
logger . log ( self . name + u': Exception raised when sending torrent: ' + str ( e ) , logger . DEBUG )
|
logger . log ( self . name + u': Exception raised when sending torrent: ' + str ( result ) + u'. Error: ' + str ( e ) , logger . DEBUG )
|
CHANGE_BINARY_OPERAND
|
[["Insert", ["binary_operator", 3, 24, 3, 80], ["binary_operator", "N0"], 0], ["Insert", ["binary_operator", 3, 24, 3, 80], ["+:+", "T"], 1], ["Insert", ["binary_operator", 3, 24, 3, 80], ["string:u'. Error: '", "T"], 2], ["Move", "N0", ["binary_operator", 3, 24, 3, 80], 0], ["Insert", "N0", ["+:+", "T"], 1], ["Insert", "N0", ["call", "N1"], 2], ["Insert", "N1", ["identifier:str", "T"], 0], ["Insert", "N1", ["argument_list", "N2"], 1], ["Insert", "N2", ["(:(", "T"], 0], ["Insert", "N2", ["identifier:result", "T"], 1], ["Insert", "N2", ["):)", "T"], 2]]
|
jackkiej/SickRage@cc9d2b3546180d9442ffd1438210058d08dc10e0
|
Add "result" to log message.
To help debug
|
[
{
"sha": "aebecded3f039212402729e42910de7fbd336a0c",
"filename": "sickbeard/clients/generic.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/cc9d2b3546180d9442ffd1438210058d08dc10e0/sickbeard%2Fclients%2Fgeneric.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/cc9d2b3546180d9442ffd1438210058d08dc10e0/sickbeard%2Fclients%2Fgeneric.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fclients%2Fgeneric.py?ref=cc9d2b3546180d9442ffd1438210058d08dc10e0",
"patch": "@@ -199,7 +199,7 @@ def sendTORRENT(self, result):\n \n except Exception, e:\n logger.log(self.name + u': Failed Sending Torrent', logger.ERROR)\n- logger.log(self.name + u': Exception raised when sending torrent: ' + str(e), logger.DEBUG)\n+ logger.log(self.name + u': Exception raised when sending torrent: ' + str(result) + u'. Error: ' + str(e), logger.DEBUG)\n return r_code\n \n return r_code"
}
] |
SickRage
|
f94f11ccc174ddedccbff2231fb97ff688809386
|
df92cee84eff9c6d630110f67ebc0df022d4b7a6
|
sickbeard/notifiers/emailnotify.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -112,7 +112,7 @@ class EmailNotifier:
try:
msg = MIMEText(ep_name)
except:
- mag = MIMEText('Episode Downloaded')
+ msg = MIMEText('Episode Downloaded')
msg['Subject'] = 'Downloaded: ' + ep_name
msg['From'] = sickbeard.EMAIL_FROM
|
mag = MIMEText ( 'Episode Downloaded' )
|
msg = MIMEText ( 'Episode Downloaded' )
|
CHANGE_IDENTIFIER_USED
|
[["Update", ["identifier:mag", 3, 25, 3, 28], "msg"]]
|
jackkiej/SickRage@f94f11ccc174ddedccbff2231fb97ff688809386
|
Fix typo in emailnotify.py
|
[
{
"sha": "02255ac4da3584884880032ba7ad2f6590516193",
"filename": "sickbeard/notifiers/emailnotify.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/f94f11ccc174ddedccbff2231fb97ff688809386/sickbeard%2Fnotifiers%2Femailnotify.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/f94f11ccc174ddedccbff2231fb97ff688809386/sickbeard%2Fnotifiers%2Femailnotify.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fnotifiers%2Femailnotify.py?ref=f94f11ccc174ddedccbff2231fb97ff688809386",
"patch": "@@ -112,7 +112,7 @@ def notify_download(self, ep_name, title=\"Completed:\"):\n try:\n msg = MIMEText(ep_name)\n except:\n- mag = MIMEText('Episode Downloaded')\n+ msg = MIMEText('Episode Downloaded')\n \n msg['Subject'] = 'Downloaded: ' + ep_name\n msg['From'] = sickbeard.EMAIL_FROM"
}
] |
SickRage
|
ac1e2d47cd01bc1d0c08bdd0262a424d6ba9d974
|
5c3a536d86a6c85f2b6b4ac7fc5f929c3f8788f0
|
sickbeard/postProcessor.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -217,7 +217,7 @@ class PostProcessor(object):
# figure out which files we want to delete
file_list = [file_path]
if associated_files:
- file_list = file_list + self.list_associated_files(file_path)
+ file_list = file_list + self.list_associated_files(file_path, base_name_only=True, subfolders=True)
if not file_list:
self._log(u"There were no files associated with " + file_path + ", not deleting anything", logger.DEBUG)
|
file_list = file_list + self . list_associated_files ( file_path )
|
file_list = file_list + self . list_associated_files ( file_path , base_name_only = True , subfolders = True )
|
SAME_FUNCTION_MORE_ARGS
|
[["Insert", ["argument_list", 3, 63, 3, 74], [",:,", "T"], 2], ["Insert", ["argument_list", 3, 63, 3, 74], ["keyword_argument", "N0"], 3], ["Insert", ["argument_list", 3, 63, 3, 74], [",:,", "T"], 4], ["Insert", ["argument_list", 3, 63, 3, 74], ["keyword_argument", "N1"], 5], ["Insert", "N0", ["identifier:base_name_only", "T"], 0], ["Insert", "N0", ["=:=", "T"], 1], ["Insert", "N0", ["true:True", "T"], 2], ["Insert", "N1", ["identifier:subfolders", "T"], 0], ["Insert", "N1", ["=:=", "T"], 1], ["Insert", "N1", ["true:True", "T"], 2]]
|
jackkiej/SickRage@ac1e2d47cd01bc1d0c08bdd0262a424d6ba9d974
|
Change PostProcessor._delete function to delete ALL associated files
- Changed PostProcessor._delete to include base_name_only = True, and
subfolders = True
Makes sure that when replacing old episodes in PostProcessing ALL the
old metadata is deleted, including those that have an addition to the
filename (-thumb.jpg) or are in subfolders (.meta and .metadata
subfolders for some mediaplayers).
Fixes https://github.com/SiCKRAGETV/sickrage-issues/issues/842
|
[
{
"sha": "6ad182cc3713c84080269655069530b1290d2701",
"filename": "sickbeard/postProcessor.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/ac1e2d47cd01bc1d0c08bdd0262a424d6ba9d974/sickbeard%2FpostProcessor.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/ac1e2d47cd01bc1d0c08bdd0262a424d6ba9d974/sickbeard%2FpostProcessor.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2FpostProcessor.py?ref=ac1e2d47cd01bc1d0c08bdd0262a424d6ba9d974",
"patch": "@@ -217,7 +217,7 @@ def _delete(self, file_path, associated_files=False):\n # figure out which files we want to delete\n file_list = [file_path]\n if associated_files:\n- file_list = file_list + self.list_associated_files(file_path)\n+ file_list = file_list + self.list_associated_files(file_path, base_name_only=True, subfolders=True)\n \n if not file_list:\n self._log(u\"There were no files associated with \" + file_path + \", not deleting anything\", logger.DEBUG)"
}
] |
SickRage
|
138340fadd055a1ed92584b903efbb8430451394
|
59b2535c41390ccd3d6e13dd0463d58da8b86ced
|
sickbeard/notifiers/pushbullet.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -53,7 +53,7 @@ class PushbulletNotifier:
if sickbeard.USE_PUSHBULLET:
update_text=common.notifyStrings[common.NOTIFY_GIT_UPDATE_TEXT]
title=common.notifyStrings[common.NOTIFY_GIT_UPDATE]
- self._sendPushbullet(pushbullet_api=None, event=title, message=update_text + new_version, method="POST")
+ self._sendPushbullet(pushbullet_api=None, event=title, message=update_text + new_version, notificationType="note", method="POST")
def _sendPushbullet(self, pushbullet_api=None, pushbullet_device=None, event=None, message=None,
notificationType=None, method=None, force=False):
|
self . _sendPushbullet ( pushbullet_api = None , event = title , message = update_text + new_version , method = "POST" )
|
self . _sendPushbullet ( pushbullet_api = None , event = title , message = update_text + new_version , notificationType = "note" , method = "POST" )
|
SAME_FUNCTION_MORE_ARGS
|
[["Insert", ["argument_list", 3, 33, 3, 117], ["keyword_argument", "N0"], 7], ["Insert", ["argument_list", 3, 33, 3, 117], [",:,", "T"], 8], ["Insert", "N0", ["identifier:notificationType", "T"], 0], ["Insert", "N0", ["=:=", "T"], 1], ["Insert", "N0", ["string:\"note\"", "T"], 2]]
|
jackkiej/SickRage@138340fadd055a1ed92584b903efbb8430451394
|
Possible Fix for Pushbullet update notification
- notify_git_update missed the notificationType value on calling
_sendPushbullet, which may cause the Content-length header to be
corrupted.
Hopefully fixes:
2015-03-05 09:06:58 ERROR Thread-186 :: Pushbullet notification
failed.
AA
AA
POST requests require a Content-length header. That’s all we know.
AA
411. That’s an error.
AA
AA
|
[
{
"sha": "bb3a1f4e06edc3aecd255fd8b1ef030b67ba186b",
"filename": "sickbeard/notifiers/pushbullet.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/138340fadd055a1ed92584b903efbb8430451394/sickbeard%2Fnotifiers%2Fpushbullet.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/138340fadd055a1ed92584b903efbb8430451394/sickbeard%2Fnotifiers%2Fpushbullet.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fnotifiers%2Fpushbullet.py?ref=138340fadd055a1ed92584b903efbb8430451394",
"patch": "@@ -53,7 +53,7 @@ def notify_git_update(self, new_version = \"??\"):\n if sickbeard.USE_PUSHBULLET:\n update_text=common.notifyStrings[common.NOTIFY_GIT_UPDATE_TEXT]\n title=common.notifyStrings[common.NOTIFY_GIT_UPDATE]\n- self._sendPushbullet(pushbullet_api=None, event=title, message=update_text + new_version, method=\"POST\")\n+ self._sendPushbullet(pushbullet_api=None, event=title, message=update_text + new_version, notificationType=\"note\", method=\"POST\")\n \n def _sendPushbullet(self, pushbullet_api=None, pushbullet_device=None, event=None, message=None,\n notificationType=None, method=None, force=False):"
}
] |
SickRage
|
ad4dfa606691d21e51c1a9a92c84decb4d11d8f1
|
59b2535c41390ccd3d6e13dd0463d58da8b86ced
|
sickbeard/processTV.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -372,7 +372,7 @@ def unRAR(path, rarFiles, force, result):
result.result = False
continue
except NoFileToExtract:
- result.output += logHelper(u"Failed Unrar archive (0): Unrar: No file to extract, file already exist?".format(archive), logger.ERROR)
+ result.output += logHelper(u"Failed Unrar archive {0}: Unrar: No file to extract, file already exist?".format(archive), logger.ERROR)
result.result = False
continue
except GenericRARError:
|
NoFileToExtract : result . output += logHelper ( u"Failed Unrar archive (0): Unrar: No file to extract, file already exist?" . format ( archive ) , logger . ERROR )
|
NoFileToExtract : result . output += logHelper ( u"Failed Unrar archive {0}: Unrar: No file to extract, file already exist?" . format ( archive ) , logger . ERROR )
|
CHANGE_STRING_LITERAL
|
[["Update", ["string:u\"Failed Unrar archive (0): Unrar: No file to extract, file already exist?\"", 3, 44, 3, 119], "u\"Failed Unrar archive {0}: Unrar: No file to extract, file already exist?\""]]
|
jackkiej/SickRage@ad4dfa606691d21e51c1a9a92c84decb4d11d8f1
|
Fix brackets in UNRAR log message
|
[
{
"sha": "5d1ea2befbb48cfe6ed680df3d3678a78cf6b950",
"filename": "sickbeard/processTV.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/ad4dfa606691d21e51c1a9a92c84decb4d11d8f1/sickbeard%2FprocessTV.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/ad4dfa606691d21e51c1a9a92c84decb4d11d8f1/sickbeard%2FprocessTV.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2FprocessTV.py?ref=ad4dfa606691d21e51c1a9a92c84decb4d11d8f1",
"patch": "@@ -372,7 +372,7 @@ def unRAR(path, rarFiles, force, result):\n result.result = False\n continue\n except NoFileToExtract:\n- result.output += logHelper(u\"Failed Unrar archive (0): Unrar: No file to extract, file already exist?\".format(archive), logger.ERROR)\n+ result.output += logHelper(u\"Failed Unrar archive {0}: Unrar: No file to extract, file already exist?\".format(archive), logger.ERROR)\n result.result = False\n continue\n except GenericRARError:"
}
] |
SickRage
|
12351f18b04dbd714db67e204a1ed7708112b987
|
3e0ccb95aad2ed19a827b8ff936a32cb9fb98756
|
sickbeard/__init__.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -1511,7 +1511,7 @@ def save_config():
new_config['General'] = {}
new_config['General']['git_autoissues'] = int(GIT_AUTOISSUES)
new_config['General']['git_username'] = GIT_USERNAME
- new_config['General']['git_password'] = GIT_PASSWORD
+ new_config['General']['git_password'] = helpers.encrypt(GIT_PASSWORD, ENCRYPTION_VERSION)
new_config['General']['git_reset'] = int(GIT_RESET)
new_config['General']['branch'] = BRANCH
new_config['General']['git_remote'] = GIT_REMOTE
|
new_config [ 'General' ] [ 'git_password' ] = GIT_PASSWORD
|
new_config [ 'General' ] [ 'git_password' ] = helpers . encrypt ( GIT_PASSWORD , ENCRYPTION_VERSION )
|
ADD_FUNCTION_AROUND_EXPRESSION
|
[["Insert", ["assignment", 3, 5, 3, 57], ["call", "N0"], 2], ["Insert", "N0", ["attribute", "N1"], 0], ["Insert", "N0", ["argument_list", "N2"], 1], ["Insert", "N1", ["identifier:helpers", "T"], 0], ["Insert", "N1", [".:.", "T"], 1], ["Insert", "N1", ["identifier:encrypt", "T"], 2], ["Insert", "N2", ["(:(", "T"], 0], ["Move", "N2", ["identifier:GIT_PASSWORD", 3, 45, 3, 57], 1], ["Insert", "N2", [",:,", "T"], 2], ["Insert", "N2", ["identifier:ENCRYPTION_VERSION", "T"], 3], ["Insert", "N2", ["):)", "T"], 4]]
|
jackkiej/SickRage@12351f18b04dbd714db67e204a1ed7708112b987
|
Fix git password not encrypted
|
[
{
"sha": "0ed591483d544d01f585f3ae9052c471c82949d6",
"filename": "sickbeard/__init__.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/12351f18b04dbd714db67e204a1ed7708112b987/sickbeard%2F__init__.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/12351f18b04dbd714db67e204a1ed7708112b987/sickbeard%2F__init__.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2F__init__.py?ref=12351f18b04dbd714db67e204a1ed7708112b987",
"patch": "@@ -1511,7 +1511,7 @@ def save_config():\n new_config['General'] = {}\n new_config['General']['git_autoissues'] = int(GIT_AUTOISSUES)\n new_config['General']['git_username'] = GIT_USERNAME\n- new_config['General']['git_password'] = GIT_PASSWORD\n+ new_config['General']['git_password'] = helpers.encrypt(GIT_PASSWORD, ENCRYPTION_VERSION)\n new_config['General']['git_reset'] = int(GIT_RESET)\n new_config['General']['branch'] = BRANCH\n new_config['General']['git_remote'] = GIT_REMOTE"
}
] |
SickRage
|
d796e2a81d4641ca4e44a86b3ef82adb8ea3c4c4
|
37ca94c149ae2aa3ca54df76f63ed62b21d9c590
|
sickbeard/webserve.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -1798,7 +1798,7 @@ class Home(WebRoot):
if segments:
ui.notifications.message("Backlog started", msg)
- elif int(status) == Wanted and showObj.paused:
+ elif int(status) == WANTED and showObj.paused:
logger.log(u"Some episodes were set to wanted, but " + showObj.name + " is paused. Not adding to Backlog until show is unpaused")
if int(status) == FAILED:
|
if segments : ui . notifications . message ( "Backlog started" , msg ) elif int ( status ) == Wanted and showObj . paused : logger . log ( u"Some episodes were set to wanted, but " + showObj . name + " is paused. Not adding to Backlog until show is unpaused" )
|
if segments : ui . notifications . message ( "Backlog started" , msg ) elif int ( status ) == WANTED and showObj . paused : logger . log ( u"Some episodes were set to wanted, but " + showObj . name + " is paused. Not adding to Backlog until show is unpaused" )
|
CHANGE_IDENTIFIER_USED
|
[["Update", ["identifier:Wanted", 3, 29, 3, 35], "WANTED"]]
|
jackkiej/SickRage@d796e2a81d4641ca4e44a86b3ef82adb8ea3c4c4
|
Fixed a whoopsie in the naming of Wanted
|
[
{
"sha": "84cc049460325b556089ce6026a3a8b3a314846c",
"filename": "sickbeard/webserve.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/d796e2a81d4641ca4e44a86b3ef82adb8ea3c4c4/sickbeard%2Fwebserve.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/d796e2a81d4641ca4e44a86b3ef82adb8ea3c4c4/sickbeard%2Fwebserve.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fwebserve.py?ref=d796e2a81d4641ca4e44a86b3ef82adb8ea3c4c4",
"patch": "@@ -1798,7 +1798,7 @@ def setStatus(self, show=None, eps=None, status=None, direct=False):\n \n if segments:\n ui.notifications.message(\"Backlog started\", msg)\n- elif int(status) == Wanted and showObj.paused:\n+ elif int(status) == WANTED and showObj.paused:\n logger.log(u\"Some episodes were set to wanted, but \" + showObj.name + \" is paused. Not adding to Backlog until show is unpaused\")\n \n if int(status) == FAILED:"
}
] |
SickRage
|
f644e2c75bf2f258e978014c6c83b213190d22f2
|
2df54608e079cd694766608d156568daa06ea471
|
sickbeard/webserve.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -1139,7 +1139,7 @@ class Home(WebRoot):
# do a hard restart
sickbeard.events.put(sickbeard.events.SystemEvent.RESTART)
- t = PageTemplate(rh=self, file="restart_bare.tmpl")
+ t = PageTemplate(rh=self, file="restart.tmpl")
return t.respond()
else:
return self._genericMessage("Update Failed",
|
t = PageTemplate ( rh = self , file = "restart_bare.tmpl" )
|
t = PageTemplate ( rh = self , file = "restart.tmpl" )
|
CHANGE_STRING_LITERAL
|
[["Update", ["string:\"restart_bare.tmpl\"", 3, 44, 3, 63], "\"restart.tmpl\""]]
|
jackkiej/SickRage@f644e2c75bf2f258e978014c6c83b213190d22f2
|
Change update restart page to restart.tmpl instead of restart_bare.tmpl
- Fixes the update not using the inc_top.tmpl which handles the css
|
[
{
"sha": "b330c2a3b2756f3c49e950838c9de4bbcc2e6e85",
"filename": "sickbeard/webserve.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/f644e2c75bf2f258e978014c6c83b213190d22f2/sickbeard%2Fwebserve.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/f644e2c75bf2f258e978014c6c83b213190d22f2/sickbeard%2Fwebserve.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fwebserve.py?ref=f644e2c75bf2f258e978014c6c83b213190d22f2",
"patch": "@@ -1139,7 +1139,7 @@ def _backup(backupDir=None):\n # do a hard restart\n sickbeard.events.put(sickbeard.events.SystemEvent.RESTART)\n \n- t = PageTemplate(rh=self, file=\"restart_bare.tmpl\")\n+ t = PageTemplate(rh=self, file=\"restart.tmpl\")\n return t.respond()\n else:\n return self._genericMessage(\"Update Failed\","
}
] |
SickRage
|
02b541ee90a06f08668844af64719901d235b521
|
de3ae357f27c4c6c2f2b2869a2051fe620365d1e
|
sickbeard/versionChecker.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -580,7 +580,7 @@ class GitUpdateManager(UpdateManager):
output, err, exit_status = self._run_git(self._git_path, 'checkout -f ' + self.branch) # @UnusedVariable
if exit_status == 0:
- output, err, exit_status = self._run_git(self._git_path, 'submodule update --init --recursive --force')
+ output, err, exit_status = self._run_git(self._git_path, 'submodule update --init --recursive')
if exit_status == 0:
self._find_installed_version()
|
output , err , exit_status = self . _run_git ( self . _git_path , 'submodule update --init --recursive --force' )
|
output , err , exit_status = self . _run_git ( self . _git_path , 'submodule update --init --recursive' )
|
CHANGE_STRING_LITERAL
|
[["Update", ["string:'submodule update --init --recursive --force'", 3, 70, 3, 115], "'submodule update --init --recursive'"]]
|
jackkiej/SickRage@02b541ee90a06f08668844af64719901d235b521
|
Fix SiCKRAGETV/sickrage-issues/issues/2877
|
[
{
"sha": "e49d2eaddfaa0f764dba6ba2a3de8a39008020bc",
"filename": "sickbeard/versionChecker.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/02b541ee90a06f08668844af64719901d235b521/sickbeard%2FversionChecker.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/02b541ee90a06f08668844af64719901d235b521/sickbeard%2FversionChecker.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2FversionChecker.py?ref=02b541ee90a06f08668844af64719901d235b521",
"patch": "@@ -580,7 +580,7 @@ def update(self):\n output, err, exit_status = self._run_git(self._git_path, 'checkout -f ' + self.branch) # @UnusedVariable\n \n if exit_status == 0:\n- output, err, exit_status = self._run_git(self._git_path, 'submodule update --init --recursive --force')\n+ output, err, exit_status = self._run_git(self._git_path, 'submodule update --init --recursive')\n \n if exit_status == 0:\n self._find_installed_version()"
}
] |
SickRage
|
8a4796337b76e3eb3af24e74f4952414b6c2b0db
|
425ae078c84207b36832eb98bf0bab581a5eb38b
|
SickBeard.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -139,7 +139,7 @@ class SickRage(object):
]
for filename in filenames:
- filename = ek(os.path.join, sickbeard.PROG_DIR, file)
+ filename = ek(os.path.join, sickbeard.PROG_DIR, filename)
try:
if ek(os.path.exists, filename):
ek(os.remove, filename)
|
filename = ek ( os . path . join , sickbeard . PROG_DIR , file )
|
filename = ek ( os . path . join , sickbeard . PROG_DIR , filename )
|
CHANGE_IDENTIFIER_USED
|
[["Update", ["identifier:file", 3, 61, 3, 65], "filename"]]
|
jackkiej/SickRage@8a4796337b76e3eb3af24e74f4952414b6c2b0db
|
Fixes SiCKRAGETV/sickrage-issues/issues/2883
|
[
{
"sha": "f6ed7ef2c8759c68a2c3958a3a04322817fb2bc2",
"filename": "SickBeard.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/8a4796337b76e3eb3af24e74f4952414b6c2b0db/SickBeard.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/8a4796337b76e3eb3af24e74f4952414b6c2b0db/SickBeard.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/SickBeard.py?ref=8a4796337b76e3eb3af24e74f4952414b6c2b0db",
"patch": "@@ -139,7 +139,7 @@ def fix_clients_nonsense():\n ]\n \n for filename in filenames:\n- filename = ek(os.path.join, sickbeard.PROG_DIR, file)\n+ filename = ek(os.path.join, sickbeard.PROG_DIR, filename)\n try:\n if ek(os.path.exists, filename):\n ek(os.remove, filename)"
}
] |
SickRage
|
62ff5cf139c2516e1a074c26203e6733c4c9a8a2
|
e37a760bd10b8ef34051001226ee43b5cf59c222
|
sickbeard/webserve.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -1492,7 +1492,7 @@ class Home(WebRoot):
ui.notifications.message('%s has been %s' % (show.name, ('resumed', 'paused')[show.paused]))
- return self.redirect("/home/displayShow?show=" + show)
+ return self.redirect("/home/displayShow?show=%i" % show.indexerid)
def deleteShow(self, show=None, full=0):
error, show = Show.delete(show, full)
|
return self . redirect ( "/home/displayShow?show=" + show )
|
return self . redirect ( "/home/displayShow?show=%i" % show . indexerid )
|
SINGLE_STMT
|
[["Update", ["string:\"/home/displayShow?show=\"", 3, 30, 3, 55], "\"/home/displayShow?show=%i\""], ["Insert", ["binary_operator", 3, 30, 3, 62], ["%:%", "T"], 1], ["Insert", ["binary_operator", 3, 30, 3, 62], ["attribute", "N0"], 2], ["Move", "N0", ["identifier:show", 3, 58, 3, 62], 0], ["Insert", "N0", [".:.", "T"], 1], ["Insert", "N0", ["identifier:indexerid", "T"], 2], ["Delete", ["+:+", 3, 56, 3, 57]]]
|
jackkiej/SickRage@62ff5cf139c2516e1a074c26203e6733c4c9a8a2
|
Fixes SiCKRAGETV/sickrage-issues/issues/2892
|
[
{
"sha": "bf8538388d0a1e8dc13f38d9c9987694b0c2d64e",
"filename": "sickbeard/webserve.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/62ff5cf139c2516e1a074c26203e6733c4c9a8a2/sickbeard%2Fwebserve.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/62ff5cf139c2516e1a074c26203e6733c4c9a8a2/sickbeard%2Fwebserve.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fwebserve.py?ref=62ff5cf139c2516e1a074c26203e6733c4c9a8a2",
"patch": "@@ -1492,7 +1492,7 @@ def togglePause(self, show=None):\n \n ui.notifications.message('%s has been %s' % (show.name, ('resumed', 'paused')[show.paused]))\n \n- return self.redirect(\"/home/displayShow?show=\" + show)\n+ return self.redirect(\"/home/displayShow?show=%i\" % show.indexerid)\n \n def deleteShow(self, show=None, full=0):\n error, show = Show.delete(show, full)"
}
] |
SickRage
|
0d6aea4351f3ed924d80642a04730bdc46caf09a
|
45d9009b88b88ace885ab2fb1135eea06ac2cd54
|
sickbeard/webapi.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -111,7 +111,7 @@ class ApiHandler(RequestHandler):
# default json
outputCallbackDict = {
'default': self._out_as_json,
- 'image': self.out_as_image,
+ 'image': self._out_as_image,
}
accessMsg = u"API :: " + self.request.remote_ip + " - gave correct API KEY. ACCESS GRANTED"
|
outputCallbackDict = { 'default' : self . _out_as_json , 'image' : self . out_as_image , }
|
outputCallbackDict = { 'default' : self . _out_as_json , 'image' : self . _out_as_image , }
|
CHANGE_ATTRIBUTE_USED
|
[["Update", ["identifier:out_as_image", 3, 27, 3, 39], "_out_as_image"]]
|
jackkiej/SickRage@0d6aea4351f3ed924d80642a04730bdc46caf09a
|
API images fix
|
[
{
"sha": "8f98be9a042776185c3982e47bad6e9e22222ad8",
"filename": "sickbeard/webapi.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/0d6aea4351f3ed924d80642a04730bdc46caf09a/sickbeard%2Fwebapi.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/0d6aea4351f3ed924d80642a04730bdc46caf09a/sickbeard%2Fwebapi.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fwebapi.py?ref=0d6aea4351f3ed924d80642a04730bdc46caf09a",
"patch": "@@ -111,7 +111,7 @@ def get(self, *args, **kwargs):\n # default json\n outputCallbackDict = {\n 'default': self._out_as_json,\n- 'image': self.out_as_image,\n+ 'image': self._out_as_image,\n }\n \n accessMsg = u\"API :: \" + self.request.remote_ip + \" - gave correct API KEY. ACCESS GRANTED\""
}
] |
SickRage
|
1e4dbff5e225c41edd0e4f2a843069783c99a941
|
c2990ec8800ba135319998a00bfabd607aea2fde
|
sickbeard/providers/xthor.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -47,7 +47,7 @@ class XthorProvider(generic.TorrentProvider):
self.cj = cookielib.CookieJar()
self.url = "https://xthor.bz"
- self.urlsearch = "https://xthor.bz/browse.php?search=\"%s%s\""
+ self.urlsearch = "https://xthor.bz/browse.php?search=\"%s\"%s"
self.categories = "&searchin=title&incldead=0"
self.enabled = False
|
self . urlsearch = "https://xthor.bz/browse.php?search=\"%s%s\""
|
self . urlsearch = "https://xthor.bz/browse.php?search=\"%s\"%s"
|
CHANGE_STRING_LITERAL
|
[["Update", ["string:\"https://xthor.bz/browse.php?search=\\\"%s%s\\\"\"", 3, 26, 3, 71], "\"https://xthor.bz/browse.php?search=\\\"%s\\\"%s\""]]
|
jackkiej/SickRage@1e4dbff5e225c41edd0e4f2a843069783c99a941
|
Fix urlsearch
urlsearch was malformed, turning quesrystring into :
?search="<search>&searchin=title&incldead=0"
instead of search="<search>"&searchin=title&incldead=0
|
[
{
"sha": "bdb587eece5cc5759162f44f540805e8e09d1f8e",
"filename": "sickbeard/providers/xthor.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/1e4dbff5e225c41edd0e4f2a843069783c99a941/sickbeard%2Fproviders%2Fxthor.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/1e4dbff5e225c41edd0e4f2a843069783c99a941/sickbeard%2Fproviders%2Fxthor.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Fxthor.py?ref=1e4dbff5e225c41edd0e4f2a843069783c99a941",
"patch": "@@ -47,7 +47,7 @@ def __init__(self):\n self.cj = cookielib.CookieJar()\n \n self.url = \"https://xthor.bz\"\n- self.urlsearch = \"https://xthor.bz/browse.php?search=\\\"%s%s\\\"\"\n+ self.urlsearch = \"https://xthor.bz/browse.php?search=\\\"%s\\\"%s\"\n self.categories = \"&searchin=title&incldead=0\"\n \n self.enabled = False"
}
] |
SickRage
|
fb5484d59089f82b00f91a656ee139d7051b120b
|
bde05b4852faac85c0c31e65a26372e8e99609e9
|
sickbeard/helpers.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -221,7 +221,7 @@ def isSyncFile(filename):
extension = filename.rpartition(".")[2].lower()
#if extension == '!sync' or extension == 'lftp-pget-status' or extension == 'part' or extension == 'bts':
syncfiles = sickbeard.SYNC_FILES
- if extension in syncfiles.split(","):
+ if extension in syncfiles.split(",") or filename.startswith('.syncthing'):
return True
else:
return False
|
if extension in syncfiles . split ( "," ) : return True else : return False
|
if extension in syncfiles . split ( "," ) or filename . startswith ( '.syncthing' ) : return True else : return False
|
LESS_SPECIFIC_IF
|
[["Insert", ["if_statement", 3, 5, 6, 21], ["boolean_operator", "N0"], 1], ["Move", "N0", ["comparison_operator", 3, 8, 3, 41], 0], ["Insert", "N0", ["or:or", "T"], 1], ["Insert", "N0", ["call", "N1"], 2], ["Insert", "N1", ["attribute", "N2"], 0], ["Insert", "N1", ["argument_list", "N3"], 1], ["Insert", "N2", ["identifier:filename", "T"], 0], ["Insert", "N2", [".:.", "T"], 1], ["Insert", "N2", ["identifier:startswith", "T"], 2], ["Insert", "N3", ["(:(", "T"], 0], ["Insert", "N3", ["string:'.syncthing'", "T"], 1], ["Insert", "N3", ["):)", "T"], 2]]
|
jackkiej/SickRage@fb5484d59089f82b00f91a656ee139d7051b120b
|
Syncthing uses prefix for sync files, not extension/suffix
|
[
{
"sha": "b60ddf5486bcfa39629119a3b91ca106eba219b8",
"filename": "sickbeard/helpers.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/fb5484d59089f82b00f91a656ee139d7051b120b/sickbeard%2Fhelpers.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/fb5484d59089f82b00f91a656ee139d7051b120b/sickbeard%2Fhelpers.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fhelpers.py?ref=fb5484d59089f82b00f91a656ee139d7051b120b",
"patch": "@@ -221,7 +221,7 @@ def isSyncFile(filename):\n extension = filename.rpartition(\".\")[2].lower()\n #if extension == '!sync' or extension == 'lftp-pget-status' or extension == 'part' or extension == 'bts':\n syncfiles = sickbeard.SYNC_FILES\n- if extension in syncfiles.split(\",\"):\n+ if extension in syncfiles.split(\",\") or filename.startswith('.syncthing'):\n return True\n else:\n return False"
}
] |
SickRage
|
9e1b2424d6b483e2f15b300fbf2d94232fb30e39
|
e76510ec513ba51b6a528d1ecee426bbe02114c4
|
sickbeard/common.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -265,7 +265,7 @@ class Quality:
return ret
- if checkName([r"(pdtv|hd.?tv|dsr|tv(rip|mux)).(xvid|x26[45]|h.?26[45])"], all) and not checkName([r"(720|1080)[pi]"], all) and\
+ if checkName([r"([sp]d.?tv|hd.?tv|dsr|tv(rip|mux)).(xvid|x26[45]|h.?26[45])"], all) and not checkName([r"(720|1080)[pi]"], all) and\
not checkName([r"hr.ws.pdtv.x26[45]"], any):
ret = Quality.SDTV
elif checkName([r"web.?dl|web(rip|mux)", r"xvid|x26[45]|h.?26[45]"], all) and not checkName([r"(720|1080)[pi]"], all):
|
if checkName ( [ r"(pdtv|hd.?tv|dsr|tv(rip|mux)).(xvid|x26[45]|h.?26[45])" ] , all ) and not checkName ( [ r"(720|1080)[pi]" ] , all ) and not checkName ( [ r"hr.ws.pdtv.x26[45]" ] , any ) : ret = Quality . SDTV elif checkName ( [ r"web.?dl|web(rip|mux)" , r"xvid|x26[45]|h.?26[45]" ] , all ) and not checkName ( [ r"(720|1080)[pi]" ] , all ) :
|
if checkName ( [ r"([sp]d.?tv|hd.?tv|dsr|tv(rip|mux)).(xvid|x26[45]|h.?26[45])" ] , all ) and not checkName ( [ r"(720|1080)[pi]" ] , all ) and not checkName ( [ r"hr.ws.pdtv.x26[45]" ] , any ) : ret = Quality . SDTV elif checkName ( [ r"web.?dl|web(rip|mux)" , r"xvid|x26[45]|h.?26[45]" ] , all ) and not checkName ( [ r"(720|1080)[pi]" ] , all ) :
|
CHANGE_STRING_LITERAL
|
[["Update", ["string:r\"(pdtv|hd.?tv|dsr|tv(rip|mux)).(xvid|x26[45]|h.?26[45])\"", 3, 23, 3, 80], "r\"([sp]d.?tv|hd.?tv|dsr|tv(rip|mux)).(xvid|x26[45]|h.?26[45])\""]]
|
jackkiej/SickRage@9e1b2424d6b483e2f15b300fbf2d94232fb30e39
|
SDTV was not part of the sdtv tag? Fixes SiCKRAGETV/sickrage-issues/issues/3089
|
[
{
"sha": "a535d872752bd851a12b0ff8cf8ddd183b60f7a3",
"filename": "sickbeard/common.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/9e1b2424d6b483e2f15b300fbf2d94232fb30e39/sickbeard%2Fcommon.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/9e1b2424d6b483e2f15b300fbf2d94232fb30e39/sickbeard%2Fcommon.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fcommon.py?ref=9e1b2424d6b483e2f15b300fbf2d94232fb30e39",
"patch": "@@ -265,7 +265,7 @@ def sceneQuality(name, anime=False):\n \n return ret\n \n- if checkName([r\"(pdtv|hd.?tv|dsr|tv(rip|mux)).(xvid|x26[45]|h.?26[45])\"], all) and not checkName([r\"(720|1080)[pi]\"], all) and\\\n+ if checkName([r\"([sp]d.?tv|hd.?tv|dsr|tv(rip|mux)).(xvid|x26[45]|h.?26[45])\"], all) and not checkName([r\"(720|1080)[pi]\"], all) and\\\n not checkName([r\"hr.ws.pdtv.x26[45]\"], any):\n ret = Quality.SDTV\n elif checkName([r\"web.?dl|web(rip|mux)\", r\"xvid|x26[45]|h.?26[45]\"], all) and not checkName([r\"(720|1080)[pi]\"], all):"
}
] |
SickRage
|
0824eb50e521e08b5e6a89b34ce1142fe5384883
|
8bcd2fbb035e501d70d0e2e4e8eea9ef5749fdcc
|
sickbeard/webserve.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -2913,7 +2913,7 @@ class Manage(Home, WebRoot):
sorted_show_ids.append(cur_indexer_id)
return t.render(whichSubs=whichSubs, show_names=show_names, ep_counts=ep_counts, sorted_show_ids=sorted_show_ids,
- title='Episode Overview', header='Episode Overview', topmenu='manage')
+ title='Missing Subtitles', header='Missing Subtitles', topmenu='manage')
def downloadSubtitleMissed(self, *args, **kwargs):
|
return t . render ( whichSubs = whichSubs , show_names = show_names , ep_counts = ep_counts , sorted_show_ids = sorted_show_ids , title = 'Episode Overview' , header = 'Episode Overview' , topmenu = 'manage' )
|
return t . render ( whichSubs = whichSubs , show_names = show_names , ep_counts = ep_counts , sorted_show_ids = sorted_show_ids , title = 'Missing Subtitles' , header = 'Missing Subtitles' , topmenu = 'manage' )
|
SINGLE_STMT
|
[["Update", ["string:'Episode Overview'", 3, 31, 3, 49], "'Missing Subtitles'"], ["Update", ["string:'Episode Overview'", 3, 58, 3, 76], "'Missing Subtitles'"]]
|
jackkiej/SickRage@0824eb50e521e08b5e6a89b34ce1142fe5384883
|
Fix title and header on missed subtitles page.
|
[
{
"sha": "b7bf5bf0622ec076856e256a29d6d2783ae02323",
"filename": "sickbeard/webserve.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/0824eb50e521e08b5e6a89b34ce1142fe5384883/sickbeard%2Fwebserve.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/0824eb50e521e08b5e6a89b34ce1142fe5384883/sickbeard%2Fwebserve.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fwebserve.py?ref=0824eb50e521e08b5e6a89b34ce1142fe5384883",
"patch": "@@ -2913,7 +2913,7 @@ def subtitleMissed(self, whichSubs=None):\n sorted_show_ids.append(cur_indexer_id)\n \n return t.render(whichSubs=whichSubs, show_names=show_names, ep_counts=ep_counts, sorted_show_ids=sorted_show_ids,\n- title='Episode Overview', header='Episode Overview', topmenu='manage')\n+ title='Missing Subtitles', header='Missing Subtitles', topmenu='manage')\n \n \n def downloadSubtitleMissed(self, *args, **kwargs):"
}
] |
SickRage
|
30640ccbf170f6a05dd7f956b1df22b14ac1f484
|
8d5bd6afc7436ceefc79033b325fdf98925e055c
|
sickbeard/webserve.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -4909,7 +4909,7 @@ class ErrorLogs(WebRoot):
else:
classes.ErrorViewer.clear()
- return self.redirect("/errorlogs/")
+ return self.redirect("/errorlogs/viewlog/")
def viewlog(self, minLevel=logger.INFO, logFilter="<NONE>",logSearch=None, maxLines=500):
|
return self . redirect ( "/errorlogs/" )
|
return self . redirect ( "/errorlogs/viewlog/" )
|
CHANGE_STRING_LITERAL
|
[["Update", ["string:\"/errorlogs/\"", 3, 30, 3, 43], "\"/errorlogs/viewlog/\""]]
|
jackkiej/SickRage@30640ccbf170f6a05dd7f956b1df22b14ac1f484
|
Redirect to /errorlogs/viewlog/ when clearing errors
|
[
{
"sha": "6a8802d9d0828916cc8208476b0c9984680ad302",
"filename": "sickbeard/webserve.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/30640ccbf170f6a05dd7f956b1df22b14ac1f484/sickbeard%2Fwebserve.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/30640ccbf170f6a05dd7f956b1df22b14ac1f484/sickbeard%2Fwebserve.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fwebserve.py?ref=30640ccbf170f6a05dd7f956b1df22b14ac1f484",
"patch": "@@ -4909,7 +4909,7 @@ def clearerrors(self, level=logger.ERROR):\n else:\n classes.ErrorViewer.clear()\n \n- return self.redirect(\"/errorlogs/\")\n+ return self.redirect(\"/errorlogs/viewlog/\")\n \n def viewlog(self, minLevel=logger.INFO, logFilter=\"<NONE>\",logSearch=None, maxLines=500):\n "
}
] |
SickRage
|
c92f56ccfcbbdb22b5098113e0ec95a0cb6fccbf
|
2380148b926e0e731d7fbac805d3a88c42cf1e31
|
sickbeard/versionChecker.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -510,7 +510,7 @@ class GitUpdateManager(UpdateManager):
self.update_remote_origin()
# get all new info from github
- output, err, exit_status = self._run_git(self._git_path, 'fetch --all -q -u')
+ output, err, exit_status = self._run_git(self._git_path, 'fetch %s' % sickbeard.GIT_REMOTE)
if not exit_status == 0:
logger.log(u"Unable to contact github, can't check for update", logger.WARNING)
return
|
output , err , exit_status = self . _run_git ( self . _git_path , 'fetch --all -q -u' )
|
output , err , exit_status = self . _run_git ( self . _git_path , 'fetch %s' % sickbeard . GIT_REMOTE )
|
SINGLE_STMT
|
[["Insert", ["argument_list", 3, 49, 3, 86], ["binary_operator", "N0"], 3], ["Update", ["string:'fetch --all -q -u'", 3, 66, 3, 85], "'fetch %s'"], ["Move", "N0", ["string:'fetch --all -q -u'", 3, 66, 3, 85], 0], ["Insert", "N0", ["%:%", "T"], 1], ["Insert", "N0", ["attribute", "N1"], 2], ["Insert", "N1", ["identifier:sickbeard", "T"], 0], ["Insert", "N1", [".:.", "T"], 1], ["Insert", "N1", ["identifier:GIT_REMOTE", "T"], 2]]
|
jackkiej/SickRage@c92f56ccfcbbdb22b5098113e0ec95a0cb6fccbf
|
pushurl error on some installs? strange.
Fixes SiCKRAGETV/sickrage-issues/issues/3129
|
[
{
"sha": "505d335d0d823f4860d901e8ba06eee7053dc9e9",
"filename": "sickbeard/versionChecker.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/c92f56ccfcbbdb22b5098113e0ec95a0cb6fccbf/sickbeard%2FversionChecker.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/c92f56ccfcbbdb22b5098113e0ec95a0cb6fccbf/sickbeard%2FversionChecker.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2FversionChecker.py?ref=c92f56ccfcbbdb22b5098113e0ec95a0cb6fccbf",
"patch": "@@ -510,7 +510,7 @@ def _check_github_for_update(self):\n self.update_remote_origin()\n \n # get all new info from github\n- output, err, exit_status = self._run_git(self._git_path, 'fetch --all -q -u')\n+ output, err, exit_status = self._run_git(self._git_path, 'fetch %s' % sickbeard.GIT_REMOTE)\n if not exit_status == 0:\n logger.log(u\"Unable to contact github, can't check for update\", logger.WARNING)\n return"
}
] |
SickRage
|
9d2437854d5b5d523a7b06f98da4a53bb9dddc84
|
ff68f70d4d49385876069809f502e6dca85075e1
|
sickbeard/providers/btdigg.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -84,7 +84,7 @@ class BTDIGGProvider(generic.TorrentProvider):
for torrent in jdata:
if not torrent['ff']:
if mode != 'RSS':
- logger.log(u"Found result: %s " % title, logger.DEBUG)
+ logger.log(u"Found result: %s " % torrent['name'], logger.DEBUG)
results.append((torrent['name'], torrent['magnet'], torrent['size']))
return results
|
logger . log ( u"Found result: %s " % title , logger . DEBUG )
|
logger . log ( u"Found result: %s " % torrent [ 'name' ] , logger . DEBUG )
|
CHANGE_BINARY_OPERAND
|
[["Insert", ["binary_operator", 3, 40, 3, 68], ["subscript", "N0"], 2], ["Update", ["identifier:title", 3, 63, 3, 68], "torrent"], ["Move", "N0", ["identifier:title", 3, 63, 3, 68], 0], ["Insert", "N0", ["[:[", "T"], 1], ["Insert", "N0", ["string:'name'", "T"], 2], ["Insert", "N0", ["]:]", "T"], 3]]
|
jackkiej/SickRage@9d2437854d5b5d523a7b06f98da4a53bb9dddc84
|
Fixes SiCKRAGETV/sickrage-issues/issues/3177
|
[
{
"sha": "e4a4012b5adad8360684e92155cdb6c63fa68055",
"filename": "sickbeard/providers/btdigg.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/9d2437854d5b5d523a7b06f98da4a53bb9dddc84/sickbeard%2Fproviders%2Fbtdigg.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/9d2437854d5b5d523a7b06f98da4a53bb9dddc84/sickbeard%2Fproviders%2Fbtdigg.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Fbtdigg.py?ref=9d2437854d5b5d523a7b06f98da4a53bb9dddc84",
"patch": "@@ -84,7 +84,7 @@ def _doSearch(self, search_strings, search_mode='eponly', epcount=0, age=0, epOb\n for torrent in jdata:\n if not torrent['ff']:\n if mode != 'RSS':\n- logger.log(u\"Found result: %s \" % title, logger.DEBUG)\n+ logger.log(u\"Found result: %s \" % torrent['name'], logger.DEBUG)\n results.append((torrent['name'], torrent['magnet'], torrent['size']))\n return results\n "
}
] |
SickRage
|
dbdab7c2c26f418e5a80f19a540ab5b5d519d971
|
b091e2937510126e775ec97caf853de9c749e705
|
sickbeard/tv.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -1500,7 +1500,7 @@ class TVEpisode(object):
logger.log(u'%s: No subtitles found for S%02dE%02d on any provider' % (self.show.indexerid, self.season, self.episode), logger.DEBUG)
return
- subliminal.save_subtitles(foundSubs, directory=subs_path, single=not sickbeard.SUBTITLES_MULTI)
+ subliminal.save_subtitles(foundSubs, directory=subs_path.encode(sickbeard.SYS_ENCODING), single=not sickbeard.SUBTITLES_MULTI)
for video, subs in foundSubs.iteritems():
for sub in subs:
|
subliminal . save_subtitles ( foundSubs , directory = subs_path , single = not sickbeard . SUBTITLES_MULTI )
|
subliminal . save_subtitles ( foundSubs , directory = subs_path . encode ( sickbeard . SYS_ENCODING ) , single = not sickbeard . SUBTITLES_MULTI )
|
ADD_METHOD_CALL
|
[["Insert", ["keyword_argument", 3, 50, 3, 69], ["call", "N0"], 2], ["Insert", "N0", ["attribute", "N1"], 0], ["Insert", "N0", ["argument_list", "N2"], 1], ["Move", "N1", ["identifier:subs_path", 3, 60, 3, 69], 0], ["Insert", "N1", [".:.", "T"], 1], ["Insert", "N1", ["identifier:encode", "T"], 2], ["Insert", "N2", ["(:(", "T"], 0], ["Insert", "N2", ["attribute", "N3"], 1], ["Insert", "N2", ["):)", "T"], 2], ["Insert", "N3", ["identifier:sickbeard", "T"], 0], ["Insert", "N3", [".:.", "T"], 1], ["Insert", "N3", ["identifier:SYS_ENCODING", "T"], 2]]
|
jackkiej/SickRage@dbdab7c2c26f418e5a80f19a540ab5b5d519d971
|
Fixes SiCKRAGETV/sickrage-issues/issues/3176
|
[
{
"sha": "34f54e8a4e12ff9e4972f5085d953b85c541caa6",
"filename": "sickbeard/tv.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/dbdab7c2c26f418e5a80f19a540ab5b5d519d971/sickbeard%2Ftv.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/dbdab7c2c26f418e5a80f19a540ab5b5d519d971/sickbeard%2Ftv.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Ftv.py?ref=dbdab7c2c26f418e5a80f19a540ab5b5d519d971",
"patch": "@@ -1500,7 +1500,7 @@ def downloadSubtitles(self, force=False):\n logger.log(u'%s: No subtitles found for S%02dE%02d on any provider' % (self.show.indexerid, self.season, self.episode), logger.DEBUG)\n return\n \n- subliminal.save_subtitles(foundSubs, directory=subs_path, single=not sickbeard.SUBTITLES_MULTI)\n+ subliminal.save_subtitles(foundSubs, directory=subs_path.encode(sickbeard.SYS_ENCODING), single=not sickbeard.SUBTITLES_MULTI)\n \n for video, subs in foundSubs.iteritems():\n for sub in subs:"
}
] |
SickRage
|
b27b7ba5337151dd88c4db77facb7f84b3a13df8
|
9d7fa5d0f876cf8897b2905c5dee159a89dd2f8a
|
sickbeard/webserve.py
|
https://github.com/jackkiej/SickRage
| true | false | false |
@@ -4013,7 +4013,7 @@ class ConfigSearch(Config):
sickbeard.TORRENT_LABEL = torrent_label
sickbeard.TORRENT_LABEL_ANIME = torrent_label_anime
sickbeard.TORRENT_VERIFY_CERT = config.checkbox_to_value(torrent_verify_cert)
- sickbeard.TORRENT_PATH = torrent_path
+ sickbeard.TORRENT_PATH = torrent_path.rstrip('/\\')
sickbeard.TORRENT_SEED_TIME = torrent_seed_time
sickbeard.TORRENT_PAUSED = config.checkbox_to_value(torrent_paused)
sickbeard.TORRENT_HIGH_BANDWIDTH = config.checkbox_to_value(torrent_high_bandwidth)
|
sickbeard . TORRENT_PATH = torrent_path
|
sickbeard . TORRENT_PATH = torrent_path . rstrip ( '/\\' )
|
ADD_METHOD_CALL
|
[["Insert", ["assignment", 3, 9, 3, 46], ["call", "N0"], 2], ["Insert", "N0", ["attribute", "N1"], 0], ["Insert", "N0", ["argument_list", "N2"], 1], ["Move", "N1", ["identifier:torrent_path", 3, 34, 3, 46], 0], ["Insert", "N1", [".:.", "T"], 1], ["Insert", "N1", ["identifier:rstrip", "T"], 2], ["Insert", "N2", ["(:(", "T"], 0], ["Insert", "N2", ["string:'/\\\\'", "T"], 1], ["Insert", "N2", ["):)", "T"], 2]]
|
jackkiej/SickRage@b27b7ba5337151dd88c4db77facb7f84b3a13df8
|
Remove trailing '/' from torrent path because some clients don't like it
Closes SiCKRAGETV/sickrage-issues#2425
|
[
{
"sha": "da5e563afffb30171582d4f9f778481eeffeea50",
"filename": "sickbeard/webserve.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/b27b7ba5337151dd88c4db77facb7f84b3a13df8/sickbeard%2Fwebserve.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/b27b7ba5337151dd88c4db77facb7f84b3a13df8/sickbeard%2Fwebserve.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fwebserve.py?ref=b27b7ba5337151dd88c4db77facb7f84b3a13df8",
"patch": "@@ -4013,7 +4013,7 @@ def saveSearch(self, use_nzbs=None, use_torrents=None, nzb_dir=None, sab_usernam\n sickbeard.TORRENT_LABEL = torrent_label\n sickbeard.TORRENT_LABEL_ANIME = torrent_label_anime\n sickbeard.TORRENT_VERIFY_CERT = config.checkbox_to_value(torrent_verify_cert)\n- sickbeard.TORRENT_PATH = torrent_path\n+ sickbeard.TORRENT_PATH = torrent_path.rstrip('/\\\\')\n sickbeard.TORRENT_SEED_TIME = torrent_seed_time\n sickbeard.TORRENT_PAUSED = config.checkbox_to_value(torrent_paused)\n sickbeard.TORRENT_HIGH_BANDWIDTH = config.checkbox_to_value(torrent_high_bandwidth)"
}
] |
SickRage
|
2034443f36c11a7abf927bbd5e4fca4694883516
|
4238c5d7a845fe57e9cb01dee7694b55ad856824
|
sickbeard/versionChecker.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -194,7 +194,7 @@ class CheckVersion():
def getDBcompare(self):
try:
- response = requests.get("http://cdn.rawgit.com/SICKRAGETV/SickRage/" + str(self._newest_commit_hash) +"/sickbeard/databases/mainDB.py")
+ response = requests.get("http://cdn.rawgit.com/SICKRAGETV/SickRage/" + str(self.updater.get_newest_commit_hash()) +"/sickbeard/databases/mainDB.py")
response.raise_for_status()
match = re.search(r"MAX_DB_VERSION\s=\s(?P<version>\d{2,3})",response.text)
|
response = requests . get ( "http://cdn.rawgit.com/SICKRAGETV/SickRage/" + str ( self . _newest_commit_hash ) + "/sickbeard/databases/mainDB.py" )
|
response = requests . get ( "http://cdn.rawgit.com/SICKRAGETV/SickRage/" + str ( self . updater . get_newest_commit_hash ( ) ) + "/sickbeard/databases/mainDB.py" )
|
SINGLE_STMT
|
[["Insert", ["argument_list", 3, 87, 3, 113], ["call", "N0"], 1], ["Insert", ["argument_list", 3, 87, 3, 113], ["):)", "T"], 2], ["Insert", "N0", ["attribute", "N1"], 0], ["Insert", "N0", ["argument_list", "N2"], 1], ["Move", "N1", ["attribute", 3, 88, 3, 112], 0], ["Insert", "N1", [".:.", "T"], 1], ["Insert", "N1", ["identifier:get_newest_commit_hash", "T"], 2], ["Insert", "N2", ["(:(", "T"], 0], ["Move", "N2", ["):)", 3, 112, 3, 113], 1], ["Update", ["identifier:_newest_commit_hash", 3, 93, 3, 112], "updater"]]
|
jackkiej/SickRage@2034443f36c11a7abf927bbd5e4fca4694883516
|
Fix commit hash in updater
|
[
{
"sha": "897b04b0573e44b40274f7e9b40a986ed5570db7",
"filename": "sickbeard/versionChecker.py",
"status": "modified",
"additions": 10,
"deletions": 10,
"changes": 20,
"blob_url": "https://github.com/jackkiej/SickRage/blob/2034443f36c11a7abf927bbd5e4fca4694883516/sickbeard%2FversionChecker.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/2034443f36c11a7abf927bbd5e4fca4694883516/sickbeard%2FversionChecker.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2FversionChecker.py?ref=2034443f36c11a7abf927bbd5e4fca4694883516",
"patch": "@@ -49,7 +49,7 @@ class CheckVersion():\n \n def __init__(self):\n self.updater = None\n- self.install_type = None \n+ self.install_type = None\n self.amActive = False\n if sickbeard.gh:\n self.install_type = self.find_install_type()\n@@ -88,7 +88,7 @@ def _runbackup(self):\n backupDir = os.path.join(sickbeard.DATA_DIR, 'backup')\n if not os.path.isdir(backupDir):\n os.mkdir(backupDir)\n- \n+\n if self._keeplatestbackup(backupDir) == True and self._backup(backupDir) == True:\n logger.log(u\"Config backup successful, updating...\")\n ui.notifications.message('Backup', 'Config backup successful, updating...')\n@@ -115,13 +115,13 @@ def _keeplatestbackup(self,backupDir=None):\n if age < newest[1]:\n newest = file, age\n files.remove(newest[0])\n- \n+\n for file in files:\n os.remove(file)\n return True\n else:\n return False\n- \n+\n # TODO: Merge with backup in helpers\n def _backup(self,backupDir=None):\n if backupDir:\n@@ -164,15 +164,15 @@ def db_safe(self):\n except:\n logger.log(u\"We can't proceed with the update. Unable to compare DB version\", logger.ERROR)\n return False\n- \n+\n def postprocessor_safe(self):\n if not sickbeard.autoPostProcesserScheduler.action.amActive:\n logger.log(u\"We can proceed with the update. Post-Processor is not running\", logger.DEBUG)\n return True\n else:\n logger.log(u\"We can't proceed with the update. Post-Processor is running\", logger.DEBUG)\n return False\n- \n+\n def showupdate_safe(self):\n if not sickbeard.showUpdateScheduler.action.amActive:\n logger.log(u\"We can proceed with the update. Shows are not being updated\", logger.DEBUG)\n@@ -194,7 +194,7 @@ def showupdate_safe(self):\n \n def getDBcompare(self):\n try:\n- response = requests.get(\"http://cdn.rawgit.com/SICKRAGETV/SickRage/\" + str(self._newest_commit_hash) +\"/sickbeard/databases/mainDB.py\")\n+ response = requests.get(\"http://cdn.rawgit.com/SICKRAGETV/SickRage/\" + str(self.updater.get_newest_commit_hash()) +\"/sickbeard/databases/mainDB.py\")\n response.raise_for_status()\n match = re.search(r\"MAX_DB_VERSION\\s=\\s(?P<version>\\d{2,3})\",response.text)\n branchDestDBversion = int(match.group('version'))\n@@ -447,9 +447,9 @@ def _find_installed_branch(self):\n if branch:\n sickbeard.BRANCH = branch\n return branch\n- \n+\n return \"\"\n- \n+\n def _check_github_for_update(self):\n \"\"\"\n Uses git commands to check if there is a newer version that the provided\n@@ -804,7 +804,7 @@ def update(self):\n \n sickbeard.CUR_COMMIT_HASH = self._newest_commit_hash\n sickbeard.CUR_COMMIT_BRANCH = self.branch\n- \n+\n except Exception, e:\n logger.log(u\"Error while trying to update: \" + ex(e), logger.ERROR)\n logger.log(u\"Traceback: \" + traceback.format_exc(), logger.DEBUG)"
}
] |
SickRage
|
5770d33ef96e619af764b452ea35ad33e5755add
|
7a432bd2eab0f74f89cdf330b0e1af342cf25030
|
sickbeard/scheduler.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -80,7 +80,7 @@ class Scheduler(threading.Thread):
# check if interval has passed
elif current_time - self.lastRun >= self.cycleTime:
# check if wanting to start around certain time taking interval into account
- if self.start_time:
+ if self.start_time is not None:
hour_diff = current_time.time().hour - self.start_time.hour
if not hour_diff < 0 and hour_diff < self.cycleTime.seconds / 3600:
|
if self . start_time : hour_diff = current_time . time ( ) . hour - self . start_time . hour if not hour_diff < 0 and hour_diff < self . cycleTime . seconds / 3600 :
|
if self . start_time is not None : hour_diff = current_time . time ( ) . hour - self . start_time . hour if not hour_diff < 0 and hour_diff < self . cycleTime . seconds / 3600 :
|
SINGLE_STMT
|
[["Insert", ["if_statement", 3, 25, 5, 96], ["comparison_operator", "N0"], 1], ["Move", "N0", ["attribute", 3, 28, 3, 43], 0], ["Insert", "N0", ["is:is", "T"], 1], ["Insert", "N0", ["not:not", "T"], 2], ["Insert", "N0", ["none:None", "T"], 3]]
|
jackkiej/SickRage@5770d33ef96e619af764b452ea35ad33e5755add
|
Hotfix - Fixes SiCKRAGETV/sickrage-issues/issues/2492
|
[
{
"sha": "32c08ffa69b647ba386917d1a77f8b057cf95f8d",
"filename": "sickbeard/scheduler.py",
"status": "modified",
"additions": 2,
"deletions": 2,
"changes": 4,
"blob_url": "https://github.com/jackkiej/SickRage/blob/5770d33ef96e619af764b452ea35ad33e5755add/sickbeard%2Fscheduler.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/5770d33ef96e619af764b452ea35ad33e5755add/sickbeard%2Fscheduler.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fscheduler.py?ref=5770d33ef96e619af764b452ea35ad33e5755add",
"patch": "@@ -80,7 +80,7 @@ def run(self):\n # check if interval has passed\n elif current_time - self.lastRun >= self.cycleTime:\n # check if wanting to start around certain time taking interval into account\n- if self.start_time:\n+ if self.start_time is not None:\n hour_diff = current_time.time().hour - self.start_time.hour\n if not hour_diff < 0 and hour_diff < self.cycleTime.seconds / 3600:\n should_run = True\n@@ -104,4 +104,4 @@ def run(self):\n self.stop.clear()\n except Exception, e:\n logger.log(u\"Exception generated in thread \" + self.name + \": \" + ex(e), logger.ERROR)\n- logger.log(repr(traceback.format_exc()), logger.DEBUG)\n\\ No newline at end of file\n+ logger.log(repr(traceback.format_exc()), logger.DEBUG)"
}
] |
SickRage
|
356f857a0450191355b2a84abb48d188636df526
|
5770d33ef96e619af764b452ea35ad33e5755add
|
sickbeard/search.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -593,8 +593,9 @@ def searchProviders(show, episodes, manualSearch=False, downCurQuality=False):
if MULTI_EP_RESULT in foundResults[curProvider.name]:
for _multiResult in foundResults[curProvider.name][MULTI_EP_RESULT]:
- logger.log(u"Seeing if we want to bother with multi-episode result " + multiResult.name, logger.DEBUG)
+ logger.log(u"Seeing if we want to bother with multi-episode result " + _multiResult.name, logger.DEBUG)
+ # Filter result by ignore/required/whitelist/blacklist/quality, etc
multiResult = pickBestResult(_multiResult, show)
if not multiResult:
continue
|
logger . log ( u"Seeing if we want to bother with multi-episode result " + multiResult . name , logger . DEBUG )
|
logger . log ( u"Seeing if we want to bother with multi-episode result " + _multiResult . name , logger . DEBUG )
|
CHANGE_IDENTIFIER_USED
|
[["Update", ["identifier:multiResult", 3, 88, 3, 99], "_multiResult"]]
|
jackkiej/SickRage@356f857a0450191355b2a84abb48d188636df526
|
Fix typoe about multiresults in search.py, Fixes SiCKRAGETV/sickrage-issues#2554
|
[
{
"sha": "3969b457b502b48e7fa710b0b24c11e829f9d6ae",
"filename": "sickbeard/search.py",
"status": "modified",
"additions": 2,
"deletions": 1,
"changes": 3,
"blob_url": "https://github.com/jackkiej/SickRage/blob/356f857a0450191355b2a84abb48d188636df526/sickbeard%2Fsearch.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/356f857a0450191355b2a84abb48d188636df526/sickbeard%2Fsearch.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fsearch.py?ref=356f857a0450191355b2a84abb48d188636df526",
"patch": "@@ -593,8 +593,9 @@ def searchProviders(show, episodes, manualSearch=False, downCurQuality=False):\n if MULTI_EP_RESULT in foundResults[curProvider.name]:\n for _multiResult in foundResults[curProvider.name][MULTI_EP_RESULT]:\n \n- logger.log(u\"Seeing if we want to bother with multi-episode result \" + multiResult.name, logger.DEBUG)\n+ logger.log(u\"Seeing if we want to bother with multi-episode result \" + _multiResult.name, logger.DEBUG)\n \n+\t\t# Filter result by ignore/required/whitelist/blacklist/quality, etc\n multiResult = pickBestResult(_multiResult, show)\n if not multiResult:\n continue"
}
] |
SickRage
|
84b993356e23227bfe646d2cc6998844771c89b4
|
fdb2fe5e40fd2410a6605acad62a2ad49e98de31
|
sickbeard/notifiers/emby.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -45,7 +45,7 @@ class EMBYNotifier:
if not host:
host = sickbeard.EMBY_HOST
if not emby_apikey:
- username = sickbeard.EMBY_APIKEY
+ emby_apikey = sickbeard.EMBY_APIKEY
url = 'http://%s/emby/Notifications/Admin' % (host)
values = {'Name': 'SickRage', 'Description': message, 'ImageUrl': 'https://raw.githubusercontent.com/SiCKRAGETV/SickRage/master/gui/slick/images/sickrage-shark-mascot.png'}
|
username = sickbeard . EMBY_APIKEY
|
emby_apikey = sickbeard . EMBY_APIKEY
|
CHANGE_IDENTIFIER_USED
|
[["Update", ["identifier:username", 3, 13, 3, 21], "emby_apikey"]]
|
jackkiej/SickRage@84b993356e23227bfe646d2cc6998844771c89b4
|
Bug in emby notifier
|
[
{
"sha": "2b810abf0b1c9c85738974ab5e639df417d58a63",
"filename": "sickbeard/notifiers/emby.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/84b993356e23227bfe646d2cc6998844771c89b4/sickbeard%2Fnotifiers%2Femby.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/84b993356e23227bfe646d2cc6998844771c89b4/sickbeard%2Fnotifiers%2Femby.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fnotifiers%2Femby.py?ref=84b993356e23227bfe646d2cc6998844771c89b4",
"patch": "@@ -45,7 +45,7 @@ def _notify_emby(self, message, host=None, emby_apikey=None):\n if not host:\n host = sickbeard.EMBY_HOST\n if not emby_apikey:\n- username = sickbeard.EMBY_APIKEY\n+ emby_apikey = sickbeard.EMBY_APIKEY\n \n url = 'http://%s/emby/Notifications/Admin' % (host)\n values = {'Name': 'SickRage', 'Description': message, 'ImageUrl': 'https://raw.githubusercontent.com/SiCKRAGETV/SickRage/master/gui/slick/images/sickrage-shark-mascot.png'}"
}
] |
SickRage
|
a6a3f89af5cf8930e22677b15087fb96246edaeb
|
8409dc3812483ea12017f1202707f784ae2b4221
|
sickbeard/__init__.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -1954,7 +1954,7 @@ def save_config():
new_config['Pushover']['pushover_userkey'] = PUSHOVER_USERKEY
new_config['Pushover']['pushover_apikey'] = PUSHOVER_APIKEY
new_config['Pushover']['pushover_device'] = PUSHOVER_DEVICE
- new_config['Pushover']['pushover_sound]'] = PUSHOVER_SOUND
+ new_config['Pushover']['pushover_sound'] = PUSHOVER_SOUND
new_config['Libnotify'] = {}
new_config['Libnotify']['use_libnotify'] = int(USE_LIBNOTIFY)
|
new_config [ 'Pushover' ] [ 'pushover_sound]' ] = PUSHOVER_SOUND
|
new_config [ 'Pushover' ] [ 'pushover_sound' ] = PUSHOVER_SOUND
|
CHANGE_STRING_LITERAL
|
[["Update", ["string:'pushover_sound]'", 3, 28, 3, 45], "'pushover_sound'"]]
|
jackkiej/SickRage@a6a3f89af5cf8930e22677b15087fb96246edaeb
|
Fix typo that prevents sound from saving
Fixes SiCKRAGETV/sickrage-issues#2663
|
[
{
"sha": "ea9a15fa11627f9ff1d4348f9289a726613125cb",
"filename": "sickbeard/__init__.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/a6a3f89af5cf8930e22677b15087fb96246edaeb/sickbeard%2F__init__.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/a6a3f89af5cf8930e22677b15087fb96246edaeb/sickbeard%2F__init__.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2F__init__.py?ref=a6a3f89af5cf8930e22677b15087fb96246edaeb",
"patch": "@@ -1954,7 +1954,7 @@ def save_config():\n new_config['Pushover']['pushover_userkey'] = PUSHOVER_USERKEY\n new_config['Pushover']['pushover_apikey'] = PUSHOVER_APIKEY\n new_config['Pushover']['pushover_device'] = PUSHOVER_DEVICE\n- new_config['Pushover']['pushover_sound]'] = PUSHOVER_SOUND\n+ new_config['Pushover']['pushover_sound'] = PUSHOVER_SOUND\n \n new_config['Libnotify'] = {}\n new_config['Libnotify']['use_libnotify'] = int(USE_LIBNOTIFY)"
}
] |
SickRage
|
e50285dfd8b3ef74a7349abe5c2a2ba11db55c0d
|
8409dc3812483ea12017f1202707f784ae2b4221
|
sickbeard/notifiers/libnotify.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -71,7 +71,7 @@ class LibnotifyNotifier:
logger.log(u"Unable to import Notify from gi.repository. libnotify notifications won't work.", logger.ERROR)
return False
try:
- import gobject
+ from gi.repository import GObject
except ImportError:
logger.log(u"Unable to import gobject. We can't catch a GError in display.", logger.ERROR)
return False
|
import gobject
|
from gi . repository import GObject
|
SINGLE_STMT
|
[["Insert", ["block", 3, 13, 3, 27], ["import_from_statement", "N0"], 0], ["Insert", "N0", ["from:from", "T"], 0], ["Insert", "N0", ["dotted_name", "N1"], 1], ["Move", "N0", ["import:import", 3, 13, 3, 19], 2], ["Move", "N0", ["dotted_name", 3, 20, 3, 27], 3], ["Insert", "N1", ["identifier:gi", "T"], 0], ["Insert", "N1", [".:.", "T"], 1], ["Insert", "N1", ["identifier:repository", "T"], 2], ["Update", ["identifier:gobject", 3, 20, 3, 27], "GObject"], ["Delete", ["import_statement", 3, 13, 3, 27]]]
|
jackkiej/SickRage@e50285dfd8b3ef74a7349abe5c2a2ba11db55c0d
|
Change libnotify import. Fixes SiCKRAGETV/sickrage-issues#2648
|
[
{
"sha": "027dab7f45c3b9ce3600a109b26e9fc1bde985f4",
"filename": "sickbeard/notifiers/libnotify.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/e50285dfd8b3ef74a7349abe5c2a2ba11db55c0d/sickbeard%2Fnotifiers%2Flibnotify.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/e50285dfd8b3ef74a7349abe5c2a2ba11db55c0d/sickbeard%2Fnotifiers%2Flibnotify.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fnotifiers%2Flibnotify.py?ref=e50285dfd8b3ef74a7349abe5c2a2ba11db55c0d",
"patch": "@@ -71,7 +71,7 @@ def init_notify(self):\n logger.log(u\"Unable to import Notify from gi.repository. libnotify notifications won't work.\", logger.ERROR)\n return False\n try:\n- import gobject\n+ from gi.repository import GObject\n except ImportError:\n logger.log(u\"Unable to import gobject. We can't catch a GError in display.\", logger.ERROR)\n return False"
}
] |
SickRage
|
17bb9194713d8a7709d3987d97ff40f460328cf9
|
8a56a91d99d5eeb7b68f7146c14b22b5e81aa6e8
|
sickbeard/postProcessor.py
|
https://github.com/jackkiej/SickRage
| true | false | false |
@@ -298,7 +298,7 @@ class PostProcessor(object):
# check if file have subtitles language
if os.path.splitext(cur_extension)[1][1:] in common.subtitleExtensions:
cur_lang = os.path.splitext(cur_extension)[0]
- if cur_lang in subtitles.wantedSubtitles():
+ if cur_lang in subtitles.wantedLanguages():
cur_extension = cur_lang + os.path.splitext(cur_extension)[1]
# replace .nfo with .nfo-orig to avoid conflicts
|
if cur_lang in subtitles . wantedSubtitles ( ) : cur_extension = cur_lang + os . path . splitext ( cur_extension ) [ 1 ]
|
if cur_lang in subtitles . wantedLanguages ( ) : cur_extension = cur_lang + os . path . splitext ( cur_extension ) [ 1 ]
|
WRONG_FUNCTION_NAME
|
[["Update", ["identifier:wantedSubtitles", 3, 42, 3, 57], "wantedLanguages"]]
|
jackkiej/SickRage@17bb9194713d8a7709d3987d97ff40f460328cf9
|
Fix for PP not moving subtitles
|
[
{
"sha": "b57a4e3dbddbf4bc2652546509b113f00b8efaf4",
"filename": "sickbeard/postProcessor.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/17bb9194713d8a7709d3987d97ff40f460328cf9/sickbeard%2FpostProcessor.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/17bb9194713d8a7709d3987d97ff40f460328cf9/sickbeard%2FpostProcessor.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2FpostProcessor.py?ref=17bb9194713d8a7709d3987d97ff40f460328cf9",
"patch": "@@ -298,7 +298,7 @@ def _combined_file_operation(self, file_path, new_path, new_base_name, associate\n # check if file have subtitles language\n if os.path.splitext(cur_extension)[1][1:] in common.subtitleExtensions:\n cur_lang = os.path.splitext(cur_extension)[0]\n- if cur_lang in subtitles.wantedSubtitles():\n+ if cur_lang in subtitles.wantedLanguages():\n cur_extension = cur_lang + os.path.splitext(cur_extension)[1]\n \n # replace .nfo with .nfo-orig to avoid conflicts"
}
] |
SickRage
|
67f62d703c84d1a1cf800fe53b58b621ace1c004
|
6dac7b7d614ce503b4dd523f900a0275d38da6b2
|
sickbeard/notifiers/tweet.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -162,7 +162,7 @@ class TwitterNotifier:
return False
if sickbeard.TWITTER_USEDM and sickbeard.TWITTER_DMTO:
- return self._send_dm(self, sickbeard.TWITTER_DMTO, prefix + ": " + message)
+ return self._send_dm(prefix + ": " + message)
else:
return self._send_tweet(prefix + ": " + message)
|
return self . _send_dm ( self , sickbeard . TWITTER_DMTO , prefix + ": " + message )
|
return self . _send_dm ( prefix + ": " + message )
|
SAME_FUNCTION_LESS_ARGS
|
[["Delete", ["identifier:self", 3, 34, 3, 38]], ["Delete", [",:,", 3, 38, 3, 39]], ["Delete", ["identifier:sickbeard", 3, 40, 3, 49]], ["Delete", [".:.", 3, 49, 3, 50]], ["Delete", ["identifier:TWITTER_DMTO", 3, 50, 3, 62]], ["Delete", ["attribute", 3, 40, 3, 62]], ["Delete", [",:,", 3, 62, 3, 63]]]
|
jackkiej/SickRage@67f62d703c84d1a1cf800fe53b58b621ace1c004
|
Fix twitter DM notifier
|
[
{
"sha": "f699f55aaa6b3ff751f68b764299654e557b0846",
"filename": "sickbeard/notifiers/tweet.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/67f62d703c84d1a1cf800fe53b58b621ace1c004/sickbeard%2Fnotifiers%2Ftweet.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/67f62d703c84d1a1cf800fe53b58b621ace1c004/sickbeard%2Fnotifiers%2Ftweet.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fnotifiers%2Ftweet.py?ref=67f62d703c84d1a1cf800fe53b58b621ace1c004",
"patch": "@@ -162,7 +162,7 @@ def _notifyTwitter(self, message='', force=False):\n return False\n \n if sickbeard.TWITTER_USEDM and sickbeard.TWITTER_DMTO:\n- return self._send_dm(self, sickbeard.TWITTER_DMTO, prefix + \": \" + message)\n+ return self._send_dm(prefix + \": \" + message)\n else:\n return self._send_tweet(prefix + \": \" + message)\n "
}
] |
SickRage
|
9b017ba090abec59e01cd0889c560583cbdb04a2
|
67f62d703c84d1a1cf800fe53b58b621ace1c004
|
sickbeard/notifiers/boxcar.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -31,7 +31,7 @@ API_URL = "https://boxcar.io/devices/providers/fWc4sgSmpcN6JujtBmR6/notification
class BoxcarNotifier:
def test_notify(self, boxcar_username):
- return self._notify("This is a test notification from Sick Beard", "Test", boxcar_username, force=True)
+ return self._notifyBoxcar("This is a test notification from Sick Beard", "Test", boxcar_username, force=True)
def _sendBoxcar(self, msg, title, email, subscribe=False):
|
return self . _notify ( "This is a test notification from Sick Beard" , "Test" , boxcar_username , force = True )
|
return self . _notifyBoxcar ( "This is a test notification from Sick Beard" , "Test" , boxcar_username , force = True )
|
WRONG_FUNCTION_NAME
|
[["Update", ["identifier:_notify", 3, 21, 3, 28], "_notifyBoxcar"]]
|
jackkiej/SickRage@9b017ba090abec59e01cd0889c560583cbdb04a2
|
Fix Boxcar test notification
|
[
{
"sha": "9bff9bf834a2b277c17078a2f95efdb10f7e6247",
"filename": "sickbeard/notifiers/boxcar.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/9b017ba090abec59e01cd0889c560583cbdb04a2/sickbeard%2Fnotifiers%2Fboxcar.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/9b017ba090abec59e01cd0889c560583cbdb04a2/sickbeard%2Fnotifiers%2Fboxcar.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fnotifiers%2Fboxcar.py?ref=9b017ba090abec59e01cd0889c560583cbdb04a2",
"patch": "@@ -31,7 +31,7 @@\n \n class BoxcarNotifier:\n def test_notify(self, boxcar_username):\n- return self._notify(\"This is a test notification from Sick Beard\", \"Test\", boxcar_username, force=True)\n+ return self._notifyBoxcar(\"This is a test notification from Sick Beard\", \"Test\", boxcar_username, force=True)\n \n def _sendBoxcar(self, msg, title, email, subscribe=False):\n \"\"\""
}
] |
SickRage
|
4d8e203f14562179d7df6a1da8eea597ffab0ce0
|
e8d24fd0a72d462f0fcd9ab5a2050eccb488e24b
|
sickbeard/webapi.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -1586,7 +1586,7 @@ class CMD_SickBeardGetMessages(ApiCall):
def run(self):
messages = []
- for cur_notification in ui.notifications.get_notifications(self.request.remote_ip):
+ for cur_notification in ui.notifications.get_notifications(self.rh.request.remote_ip):
messages.append({"title": cur_notification.title,
"message": cur_notification.message,
"type": cur_notification.type})
|
for cur_notification in ui . notifications . get_notifications ( self . request . remote_ip ) : messages . append ( { "title" : cur_notification . title , "message" : cur_notification . message , "type" : cur_notification . type } )
|
for cur_notification in ui . notifications . get_notifications ( self . rh . request . remote_ip ) : messages . append ( { "title" : cur_notification . title , "message" : cur_notification . message , "type" : cur_notification . type } )
|
ADD_ATTRIBUTE_ACCESS
|
[["Insert", ["attribute", 3, 68, 3, 80], ["attribute", "N0"], 0], ["Insert", ["attribute", 3, 68, 3, 80], [".:.", "T"], 1], ["Move", "N0", ["identifier:self", 3, 68, 3, 72], 0], ["Move", "N0", [".:.", 3, 72, 3, 73], 1], ["Insert", "N0", ["identifier:rh", "T"], 2]]
|
jackkiej/SickRage@4d8e203f14562179d7df6a1da8eea597ffab0ce0
|
Fix SiCKRAGETV/sickrage-issues#2671
|
[
{
"sha": "af239874ea24a478a9f51e6e75d89ed614099e2e",
"filename": "sickbeard/webapi.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/4d8e203f14562179d7df6a1da8eea597ffab0ce0/sickbeard%2Fwebapi.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/4d8e203f14562179d7df6a1da8eea597ffab0ce0/sickbeard%2Fwebapi.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fwebapi.py?ref=4d8e203f14562179d7df6a1da8eea597ffab0ce0",
"patch": "@@ -1586,7 +1586,7 @@ def __init__(self, args, kwargs):\n \n def run(self):\n messages = []\n- for cur_notification in ui.notifications.get_notifications(self.request.remote_ip):\n+ for cur_notification in ui.notifications.get_notifications(self.rh.request.remote_ip):\n messages.append({\"title\": cur_notification.title,\n \"message\": cur_notification.message,\n \"type\": cur_notification.type})"
}
] |
SickRage
|
fd7506bef613c7994bf346119a8c04ab6583cfed
|
e5d11de3f614506aa5f8f54eb0657f829e3d53bd
|
sickbeard/__init__.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -1576,7 +1576,7 @@ def halt():
def sig_handler(signum=None, frame=None):
- if isinstance(signum, None):
+ if not isinstance(signum, type(None)):
logger.log(u"Signal %i caught, saving and exiting..." % int(signum))
Shutdown.stop(PID)
|
if isinstance ( signum , None ) : logger . log ( u"Signal %i caught, saving and exiting..." % int ( signum ) ) Shutdown . stop ( PID )
|
if not isinstance ( signum , type ( None ) ) : logger . log ( u"Signal %i caught, saving and exiting..." % int ( signum ) ) Shutdown . stop ( PID )
|
SINGLE_STMT
|
[["Insert", ["if_statement", 3, 5, 5, 27], ["not_operator", "N0"], 1], ["Insert", "N0", ["not:not", "T"], 0], ["Move", "N0", ["call", 3, 8, 3, 32], 1], ["Insert", ["argument_list", 3, 18, 3, 32], ["call", "N1"], 3], ["Insert", ["argument_list", 3, 18, 3, 32], ["):)", "T"], 4], ["Insert", "N1", ["identifier:type", "T"], 0], ["Insert", "N1", ["argument_list", "N2"], 1], ["Insert", "N2", ["(:(", "T"], 0], ["Move", "N2", ["none:None", 3, 27, 3, 31], 1], ["Move", "N2", ["):)", 3, 31, 3, 32], 2]]
|
jackkiej/SickRage@fd7506bef613c7994bf346119a8c04ab6583cfed
|
Fix SiCKRAGETV/sickrage-issues/issues/2683
|
[
{
"sha": "523e52e78e92c9bd4a6ae01e9c2919ac97103266",
"filename": "sickbeard/__init__.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/fd7506bef613c7994bf346119a8c04ab6583cfed/sickbeard%2F__init__.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/fd7506bef613c7994bf346119a8c04ab6583cfed/sickbeard%2F__init__.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2F__init__.py?ref=fd7506bef613c7994bf346119a8c04ab6583cfed",
"patch": "@@ -1576,7 +1576,7 @@ def halt():\n \n \n def sig_handler(signum=None, frame=None):\n- if isinstance(signum, None):\n+ if not isinstance(signum, type(None)):\n logger.log(u\"Signal %i caught, saving and exiting...\" % int(signum))\n Shutdown.stop(PID)\n "
}
] |
SickRage
|
378f9818cb06867f777fa06a5bb03fba469b8ebd
|
f98726f69ccfc1eaaa337a0d33ee2ef93c60131a
|
sickbeard/databases/mainDB.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -73,7 +73,7 @@ class MainSanityCheck(db.DBSanityCheck):
logger.log('Mapping %s to tvdb id %i' % (tvrage_show['show_name'], mapping[0]['mindexer_id']))
self.connection.action(
- "UPDATE tv_shows SET indexer=%i, indexer_id=%i WHERE indexer_id=%i" %
+ "UPDATE OR IGNORE tv_shows SET indexer=%i, indexer_id=%i WHERE indexer_id=%i" %
(INDEXER_TVDB, mapping[0]['mindexer_id'], tvrage_show['indexer_id'])
)
|
self . connection . action ( "UPDATE tv_shows SET indexer=%i, indexer_id=%i WHERE indexer_id=%i" % ( INDEXER_TVDB , mapping [ 0 ] [ 'mindexer_id' ] , tvrage_show [ 'indexer_id' ] ) )
|
self . connection . action ( "UPDATE OR IGNORE tv_shows SET indexer=%i, indexer_id=%i WHERE indexer_id=%i" % ( INDEXER_TVDB , mapping [ 0 ] [ 'mindexer_id' ] , tvrage_show [ 'indexer_id' ] ) )
|
CHANGE_BINARY_OPERAND
|
[["Update", ["string:\"UPDATE tv_shows SET indexer=%i, indexer_id=%i WHERE indexer_id=%i\"", 3, 17, 3, 84], "\"UPDATE OR IGNORE tv_shows SET indexer=%i, indexer_id=%i WHERE indexer_id=%i\""]]
|
jackkiej/SickRage@378f9818cb06867f777fa06a5bb03fba469b8ebd
|
Temporarily workaround SiCKRAGETV/sickrage-issues/issues/2693
|
[
{
"sha": "745350cab666c97fc984bfea4c4608715a29c437",
"filename": "sickbeard/databases/mainDB.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/378f9818cb06867f777fa06a5bb03fba469b8ebd/sickbeard%2Fdatabases%2FmainDB.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/378f9818cb06867f777fa06a5bb03fba469b8ebd/sickbeard%2Fdatabases%2FmainDB.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fdatabases%2FmainDB.py?ref=378f9818cb06867f777fa06a5bb03fba469b8ebd",
"patch": "@@ -73,7 +73,7 @@ def convert_tvrage_to_tvdb(self):\n logger.log('Mapping %s to tvdb id %i' % (tvrage_show['show_name'], mapping[0]['mindexer_id']))\n \n self.connection.action(\n- \"UPDATE tv_shows SET indexer=%i, indexer_id=%i WHERE indexer_id=%i\" %\n+ \"UPDATE OR IGNORE tv_shows SET indexer=%i, indexer_id=%i WHERE indexer_id=%i\" %\n (INDEXER_TVDB, mapping[0]['mindexer_id'], tvrage_show['indexer_id'])\n )\n "
}
] |
SickRage
|
166203c6eca54032636e7223e9f8000a3ad819ad
|
04ead3a2e2ba2bfd3d6dbe65b160f2fa8cf2cf2c
|
sickbeard/webserve.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -2468,7 +2468,7 @@ class HomeAddShows(Home):
posts them to addNewShow
"""
t = PageTemplate(rh=self, file="home_trendingShows.mako")
- return t.render(submenu=self.HomeMenu(), enable_anime_options=False)
+ return t.render(title="Trending Shows", header="Trending Shows", submenu=self.HomeMenu(), enable_anime_options=False)
def getTrendingShows(self):
"""
|
"""
t = PageTemplate(rh=self, file="home_trendingShows.mako")
return t.render(submenu=self.HomeMenu(), enable_anime_options=False)
def getTrendingShows(self):
"""
|
"""
t = PageTemplate(rh=self, file="home_trendingShows.mako")
return t.render(title="Trending Shows", header="Trending Shows", submenu=self.HomeMenu(), enable_anime_options=False)
def getTrendingShows(self):
"""
|
CHANGE_STRING_LITERAL
|
[["Update", ["string:\"\"\"\n t = PageTemplate(rh=self, file=\"home_trendingShows.mako\")\n return t.render(submenu=self.HomeMenu(), enable_anime_options=False)\n \n def getTrendingShows(self):\n \"\"\"", 1, 9, 6, 12], "\"\"\"\n t = PageTemplate(rh=self, file=\"home_trendingShows.mako\")\n return t.render(title=\"Trending Shows\", header=\"Trending Shows\", submenu=self.HomeMenu(), enable_anime_options=False)\n \n def getTrendingShows(self):\n \"\"\""]]
|
jackkiej/SickRage@166203c6eca54032636e7223e9f8000a3ad819ad
|
Fixes Page Title for Trending Shows
Trending shows was displaying FixMe as the page title. Changed to 'Trending Shows'
|
[
{
"sha": "22d03b213e62dc5538395a08624c0c9ec4b6bcd5",
"filename": "sickbeard/webserve.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/166203c6eca54032636e7223e9f8000a3ad819ad/sickbeard%2Fwebserve.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/166203c6eca54032636e7223e9f8000a3ad819ad/sickbeard%2Fwebserve.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fwebserve.py?ref=166203c6eca54032636e7223e9f8000a3ad819ad",
"patch": "@@ -2468,7 +2468,7 @@ def trendingShows(self):\n posts them to addNewShow\n \"\"\"\n t = PageTemplate(rh=self, file=\"home_trendingShows.mako\")\n- return t.render(submenu=self.HomeMenu(), enable_anime_options=False)\n+ return t.render(title=\"Trending Shows\", header=\"Trending Shows\", submenu=self.HomeMenu(), enable_anime_options=False)\n \n def getTrendingShows(self):\n \"\"\""
}
] |
SickRage
|
0fe56f49d3bc8ac66b37f923d9ab854bc82a7c64
|
06f9ebea11556a5785af456a626c6ef1852b241a
|
sickbeard/postProcessor.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -188,7 +188,7 @@ class PostProcessor(object):
else: # this is called when PP, so we need to do the filename check case-insensitive
filelist = []
- checklist = ek.ek(glob.glob, helpers.fixGlob(ek.ek(os.path.join, ek.ek(os.path.dirname, file_path)), '*')) # get a list of all the files in the folder
+ checklist = ek.ek(glob.glob, helpers.fixGlob(ek.ek(os.path.join, ek.ek(os.path.dirname, file_path))), '*') # get a list of all the files in the folder
for filefound in checklist: # loop through all the files in the folder, and check if they are the same name even when the cases don't match
file_name = filefound.rpartition('.')[0]
if not base_name_only:
|
checklist = ek . ek ( glob . glob , helpers . fixGlob ( ek . ek ( os . path . join , ek . ek ( os . path . dirname , file_path ) ) , '*' ) )
|
checklist = ek . ek ( glob . glob , helpers . fixGlob ( ek . ek ( os . path . join , ek . ek ( os . path . dirname , file_path ) ) ) , '*' )
|
SINGLE_STMT
|
[["Insert", ["argument_list", 3, 30, 3, 119], [",:,", "T"], 4], ["Insert", ["argument_list", 3, 30, 3, 119], ["string:'*'", "T"], 5], ["Delete", [",:,", 3, 112, 3, 113]], ["Delete", ["string:'*'", 3, 114, 3, 117]]]
|
jackkiej/SickRage@0fe56f49d3bc8ac66b37f923d9ab854bc82a7c64
|
Fix SiCKRAGETV/sickrage-issues#1930
|
[
{
"sha": "4ba6b06c1e8fd9167c77e9aa795ff0df88bb7f57",
"filename": "sickbeard/postProcessor.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/0fe56f49d3bc8ac66b37f923d9ab854bc82a7c64/sickbeard%2FpostProcessor.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/0fe56f49d3bc8ac66b37f923d9ab854bc82a7c64/sickbeard%2FpostProcessor.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2FpostProcessor.py?ref=0fe56f49d3bc8ac66b37f923d9ab854bc82a7c64",
"patch": "@@ -188,7 +188,7 @@ def recursive_glob(treeroot, pattern):\n else: # this is called when PP, so we need to do the filename check case-insensitive\n filelist = []\n \n- checklist = ek.ek(glob.glob, helpers.fixGlob(ek.ek(os.path.join, ek.ek(os.path.dirname, file_path)), '*')) # get a list of all the files in the folder\n+ checklist = ek.ek(glob.glob, helpers.fixGlob(ek.ek(os.path.join, ek.ek(os.path.dirname, file_path))), '*') # get a list of all the files in the folder\n for filefound in checklist: # loop through all the files in the folder, and check if they are the same name even when the cases don't match\n file_name = filefound.rpartition('.')[0]\n if not base_name_only:"
}
] |
SickRage
|
3f294bc7c9f6f4b8f599ef7ec883fe963baf8368
|
42e3cea1e537a8c051e649d4e7f8d3b8df708eea
|
sickbeard/tv.py
|
https://github.com/jackkiej/SickRage
| true | false | true |
@@ -1458,7 +1458,7 @@ class TVEpisode(object):
try:
dir, name = ek.ek(os.path.split, self.location)
tmp = ek.ek(os.path.join, dir, self.release_name)
- if not len(ek.ek(os.path.splitext, tmp)[-1]):
+ if ek.ek(os.path.splitext, tmp)[-1] is not ek.ek(os.path.splitext, self.location)[-1]:
tmp += ek.ek(os.path.splitext, self.location)[-1]
create_link = not ek.ek(os.path.exists, tmp)
|
if not len ( ek . ek ( os . path . splitext , tmp ) [ - 1 ] ) : tmp += ek . ek ( os . path . splitext , self . location ) [ - 1 ]
|
if ek . ek ( os . path . splitext , tmp ) [ - 1 ] is not ek . ek ( os . path . splitext , self . location ) [ - 1 ] : tmp += ek . ek ( os . path . splitext , self . location ) [ - 1 ]
|
SINGLE_STMT
|
[["Insert", ["if_statement", 3, 21, 4, 74], ["comparison_operator", "N0"], 1], ["Move", "N0", ["subscript", 3, 32, 3, 64], 0], ["Insert", "N0", ["is:is", "T"], 1], ["Insert", "N0", ["not:not", "T"], 2], ["Insert", "N0", ["subscript", "N1"], 3], ["Insert", "N1", ["call", "N2"], 0], ["Insert", "N1", ["[:[", "T"], 1], ["Insert", "N1", ["unary_operator", "N3"], 2], ["Insert", "N1", ["]:]", "T"], 3], ["Insert", "N2", ["attribute", "N4"], 0], ["Insert", "N2", ["argument_list", "N5"], 1], ["Insert", "N3", ["-:-", "T"], 0], ["Insert", "N3", ["integer:1", "T"], 1], ["Insert", "N4", ["identifier:ek", "T"], 0], ["Insert", "N4", [".:.", "T"], 1], ["Insert", "N4", ["identifier:ek", "T"], 2], ["Insert", "N5", ["(:(", "T"], 0], ["Insert", "N5", ["attribute", "N6"], 1], ["Insert", "N5", [",:,", "T"], 2], ["Insert", "N5", ["attribute", "N7"], 3], ["Insert", "N5", ["):)", "T"], 4], ["Insert", "N6", ["attribute", "N8"], 0], ["Insert", "N6", [".:.", "T"], 1], ["Insert", "N6", ["identifier:splitext", "T"], 2], ["Insert", "N7", ["identifier:self", "T"], 0], ["Insert", "N7", [".:.", "T"], 1], ["Insert", "N7", ["identifier:location", "T"], 2], ["Insert", "N8", ["identifier:os", "T"], 0], ["Insert", "N8", [".:.", "T"], 1], ["Insert", "N8", ["identifier:path", "T"], 2], ["Delete", ["not:not", 3, 24, 3, 27]], ["Delete", ["identifier:len", 3, 28, 3, 31]], ["Delete", ["(:(", 3, 31, 3, 32]], ["Delete", ["):)", 3, 64, 3, 65]], ["Delete", ["argument_list", 3, 31, 3, 65]], ["Delete", ["call", 3, 28, 3, 65]], ["Delete", ["not_operator", 3, 24, 3, 65]]]
|
jackkiej/SickRage@3f294bc7c9f6f4b8f599ef7ec883fe963baf8368
|
Fix release_name extension detection for subtitle downloads
|
[
{
"sha": "2d7cccfc4ceda0b6fde9ac07b8617bd18ec4902c",
"filename": "sickbeard/tv.py",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/jackkiej/SickRage/blob/3f294bc7c9f6f4b8f599ef7ec883fe963baf8368/sickbeard%2Ftv.py",
"raw_url": "https://github.com/jackkiej/SickRage/raw/3f294bc7c9f6f4b8f599ef7ec883fe963baf8368/sickbeard%2Ftv.py",
"contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Ftv.py?ref=3f294bc7c9f6f4b8f599ef7ec883fe963baf8368",
"patch": "@@ -1458,7 +1458,7 @@ def downloadSubtitles(self, force=False):\n try:\n dir, name = ek.ek(os.path.split, self.location)\n tmp = ek.ek(os.path.join, dir, self.release_name)\n- if not len(ek.ek(os.path.splitext, tmp)[-1]):\n+ if ek.ek(os.path.splitext, tmp)[-1] is not ek.ek(os.path.splitext, self.location)[-1]:\n tmp += ek.ek(os.path.splitext, self.location)[-1]\n \n create_link = not ek.ek(os.path.exists, tmp)"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.