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
asciidoc
69490c73374e40718c316da26692424232bf1c0b
bde1531b057d623e77be44dda8ffca202e3ad4b5
filters/music/music2png.py
https://github.com/pepr/asciidoc
true
false
true
@@ -135,7 +135,7 @@ def music2png(format, infile, outfile, modified): os.chdir(outdir) try: if format == 'abc': - run('abc2ly --beams=None -o "%s" "%s"' % (ly,abc)) + run('abc2ly -o "%s" "%s"' % (ly,abc)) run('lilypond --png -o "%s" "%s"' % (basefile,ly)) os.rename(png, outfile) finally:
run ( 'abc2ly --beams=None -o "%s" "%s"' % ( ly , abc ) )
run ( 'abc2ly -o "%s" "%s"' % ( ly , abc ) )
CHANGE_BINARY_OPERAND
[["Update", ["string:'abc2ly --beams=None -o \"%s\" \"%s\"'", 3, 17, 3, 51], "'abc2ly -o \"%s\" \"%s\"'"]]
pepr/asciidoc@69490c73374e40718c316da26692424232bf1c0b
music filter: Removed --beams=None option from abc2ly invokation because it is broken on Lilypond 2.14 (Ubuntu 12.04) -- get 'abc2ly: error: --beams option does not take a value' (the man page says --beams is the correct syntax but on the info page says --beams=None is). I've never understood what this option is supposed to do.
[ { "sha": "278b1a9df9fc87adeae8f53adab0ee8a5b321961", "filename": "filters/music/music2png.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/pepr/asciidoc/blob/69490c73374e40718c316da26692424232bf1c0b/filters%2Fmusic%2Fmusic2png.py", "raw_url": "https://github.com/pepr/asciidoc/raw/69490c73374e40718c316da26692424232bf1c0b/filters%2Fmusic%2Fmusic2png.py", "contents_url": "https://api.github.com/repos/pepr/asciidoc/contents/filters%2Fmusic%2Fmusic2png.py?ref=69490c73374e40718c316da26692424232bf1c0b", "patch": "@@ -135,7 +135,7 @@ def music2png(format, infile, outfile, modified):\n os.chdir(outdir)\n try:\n if format == 'abc':\n- run('abc2ly --beams=None -o \"%s\" \"%s\"' % (ly,abc))\n+ run('abc2ly -o \"%s\" \"%s\"' % (ly,abc))\n run('lilypond --png -o \"%s\" \"%s\"' % (basefile,ly))\n os.rename(png, outfile)\n finally:" } ]
asciidoc
a5f42419713ca2875ddf53385f07b9eff29941fc
2d10eb2bc94a88bfdae2ce19809b8c9723966ca2
filters/latex/latex2png.py
https://github.com/pepr/asciidoc
true
false
true
@@ -128,7 +128,7 @@ def latex2png(infile, outfile, dpi, modified): if infile == '-': tex = sys.stdin.read() if modified: - checksum = md5.new(tex).digest() + checksum = md5.new(tex + str(dpi)).digest() md5_file = os.path.splitext(outfile)[0] + '.md5' if os.path.isfile(md5_file) and os.path.isfile(outfile) and \ checksum == read_file(md5_file,'rb'):
checksum = md5 . new ( tex ) . digest ( )
checksum = md5 . new ( tex + str ( dpi ) ) . digest ( )
SINGLE_STMT
[["Insert", ["argument_list", 3, 31, 3, 36], ["binary_operator", "N0"], 1], ["Insert", ["argument_list", 3, 31, 3, 36], ["):)", "T"], 2], ["Move", "N0", ["identifier:tex", 3, 32, 3, 35], 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:dpi", "T"], 1], ["Move", "N2", ["):)", 3, 35, 3, 36], 2]]
pepr/asciidoc@a5f42419713ca2875ddf53385f07b9eff29941fc
Latex filter fix: The image file is now regenerated if DPI is changed.
[ { "sha": "476e03f437dc5d6dc4b7af458583ea2d7c8e8ca5", "filename": "filters/latex/latex2png.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/pepr/asciidoc/blob/a5f42419713ca2875ddf53385f07b9eff29941fc/filters%2Flatex%2Flatex2png.py", "raw_url": "https://github.com/pepr/asciidoc/raw/a5f42419713ca2875ddf53385f07b9eff29941fc/filters%2Flatex%2Flatex2png.py", "contents_url": "https://api.github.com/repos/pepr/asciidoc/contents/filters%2Flatex%2Flatex2png.py?ref=a5f42419713ca2875ddf53385f07b9eff29941fc", "patch": "@@ -128,7 +128,7 @@ def latex2png(infile, outfile, dpi, modified):\n if infile == '-':\n tex = sys.stdin.read()\n if modified:\n- checksum = md5.new(tex).digest()\n+ checksum = md5.new(tex + str(dpi)).digest()\n md5_file = os.path.splitext(outfile)[0] + '.md5'\n if os.path.isfile(md5_file) and os.path.isfile(outfile) and \\\n checksum == read_file(md5_file,'rb'):" } ]
asciidoc
0dd0caeb35c405c08df15cecb7a9184b54d02e18
b74c54b53264b6f05acb34e3f0815809de8856a5
a2x.py
https://github.com/pepr/asciidoc
true
false
true
@@ -457,7 +457,7 @@ class A2X(AttrDict): if not os.path.isdir(self.destination_dir): die('missing --destination-dir: %s' % self.destination_dir) self.destination_dir = os.path.abspath(self.destination_dir) - if not self.format in ('chunked','epub','htmlhelp','xhtml'): + if not self.format in ('chunked','epub','htmlhelp','xhtml','manpage'): warning('--destination-dir option is only applicable to HTML based outputs') self.resource_dirs = [] self.resource_files = []
if not self . format in ( 'chunked' , 'epub' , 'htmlhelp' , 'xhtml' ) : warning ( '--destination-dir option is only applicable to HTML based outputs' )
if not self . format in ( 'chunked' , 'epub' , 'htmlhelp' , 'xhtml' , 'manpage' ) : warning ( '--destination-dir option is only applicable to HTML based outputs' )
ADD_ELEMENTS_TO_ITERABLE
[["Insert", ["tuple", 3, 35, 3, 72], [",:,", "T"], 8], ["Insert", ["tuple", 3, 35, 3, 72], ["string:'manpage'", "T"], 9]]
pepr/asciidoc@0dd0caeb35c405c08df15cecb7a9184b54d02e18
Fix A2X directory warning Fix issue #44. The a2x --destination-dir warning is fixed by adding 'manpage' as an option to the condition check on line 460.
[ { "sha": "8111018effc3591523295aa455eb9a4cf5a44b05", "filename": "a2x.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/pepr/asciidoc/blob/0dd0caeb35c405c08df15cecb7a9184b54d02e18/a2x.py", "raw_url": "https://github.com/pepr/asciidoc/raw/0dd0caeb35c405c08df15cecb7a9184b54d02e18/a2x.py", "contents_url": "https://api.github.com/repos/pepr/asciidoc/contents/a2x.py?ref=0dd0caeb35c405c08df15cecb7a9184b54d02e18", "patch": "@@ -457,7 +457,7 @@ def process_options(self):\n if not os.path.isdir(self.destination_dir):\n die('missing --destination-dir: %s' % self.destination_dir)\n self.destination_dir = os.path.abspath(self.destination_dir)\n- if not self.format in ('chunked','epub','htmlhelp','xhtml'):\n+ if not self.format in ('chunked','epub','htmlhelp','xhtml','manpage'):\n warning('--destination-dir option is only applicable to HTML based outputs')\n self.resource_dirs = []\n self.resource_files = []" } ]
GIS-Helper
00ab06686028ed7d8e69b22317ac255d3b933848
1a98584f1f3d8002585a09e9ce6ad85c4dc9a72c
gh.py
https://github.com/minorsecond/GIS-Helper
true
false
true
@@ -82,7 +82,7 @@ class GisHelper(QtWidgets.QMainWindow, Ui_MainWindow): - openfile = QtWidgets.QFileDialog.getOpenFileName(self) + openfile = QtWidgets.QFileDialog.getOpenFileName(self)[0] # This now returns a tuple as of Qt5 self.shapefileViewPath.setText(openfile) def browse_for_raster(self):
openfile = QtWidgets . QFileDialog . getOpenFileName ( self )
openfile = QtWidgets . QFileDialog . getOpenFileName ( self ) [ 0 ]
SINGLE_STMT
[["Insert", ["assignment", 1, 9, 1, 63], ["subscript", "N0"], 2], ["Move", "N0", ["call", 1, 20, 1, 63], 0], ["Insert", "N0", ["[:[", "T"], 1], ["Insert", "N0", ["integer:0", "T"], 2], ["Insert", "N0", ["]:]", "T"], 3]]
minorsecond/GIS-Helper@00ab06686028ed7d8e69b22317ac255d3b933848
GH-1 TypeError when opening shapefiles. Use 0th index of getOpenFileName result to pass to setText.
[ { "sha": "1c1bd281be7299a66148cc1439a62253e93121f5", "filename": "gh.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/minorsecond/GIS-Helper/blob/00ab06686028ed7d8e69b22317ac255d3b933848/gh.py", "raw_url": "https://github.com/minorsecond/GIS-Helper/raw/00ab06686028ed7d8e69b22317ac255d3b933848/gh.py", "contents_url": "https://api.github.com/repos/minorsecond/GIS-Helper/contents/gh.py?ref=00ab06686028ed7d8e69b22317ac255d3b933848", "patch": "@@ -82,7 +82,7 @@ def browse_for_shp(self):\n :return:\n \"\"\"\n \n- openfile = QtWidgets.QFileDialog.getOpenFileName(self)\n+ openfile = QtWidgets.QFileDialog.getOpenFileName(self)[0] # This now returns a tuple as of Qt5\n self.shapefileViewPath.setText(openfile)\n \n def browse_for_raster(self):" } ]
GIS-Helper
3157375875909862bccba087cdb041f7048814ed
d318c923aaf6b54e304886fa68abe6e91cf2ccbe
gh.py
https://github.com/minorsecond/GIS-Helper
true
false
true
@@ -102,7 +102,7 @@ class GisHelper(QtWidgets.QMainWindow, Ui_MainWindow): error_popup.setInformativeText(info) error_popup.setStandardButtons(error_popup.Ok) - error_popup.exec() + error_popup.show() def clear_origin_fields(self): self.northYEntry.clear()
error_popup . exec ( )
error_popup . show ( )
WRONG_FUNCTION_NAME
[["Update", ["identifier:exec", 3, 21, 3, 25], "show"]]
minorsecond/GIS-Helper@3157375875909862bccba087cdb041f7048814ed
GH-9 Build CI pipeline in Jenkins move error_popup.exec() to error_popup.show() to try and satisfy Jenkins.
[ { "sha": "f4fd21a9d75bc8a88402c9b74d3d5dff9081efb1", "filename": "gh.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/minorsecond/GIS-Helper/blob/3157375875909862bccba087cdb041f7048814ed/gh.py", "raw_url": "https://github.com/minorsecond/GIS-Helper/raw/3157375875909862bccba087cdb041f7048814ed/gh.py", "contents_url": "https://api.github.com/repos/minorsecond/GIS-Helper/contents/gh.py?ref=3157375875909862bccba087cdb041f7048814ed", "patch": "@@ -102,7 +102,7 @@ def error_popup(self, title, message, info):\n error_popup.setInformativeText(info)\n error_popup.setStandardButtons(error_popup.Ok)\n \n- error_popup.exec()\n+ error_popup.show()\n \n def clear_origin_fields(self):\n self.northYEntry.clear()" } ]
SickRage
bc05a9f6fad2ab77f38c7877879c992260566c56
fc58a44ba23ef03eb740b247212fdc09b388d1d0
sickbeard/search_queue.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -330,7 +330,7 @@ class BacklogQueueItem(generic_queue.QueueItem): with ThreadPoolExecutor(sickbeard.NUM_OF_THREADS) as executor: for provider in providers: didSearch = True - logger.log("Beginning backlog search for [" + self.segment + "] on " + provider.name) + logger.log("Beginning backlog search for [" + str(self.segment) + "] on " + provider.name) executor.submit( search.searchProviders, self, self.show, self.segment, self.wantedEpisodes, provider, seasonSearch, False).add_done_callback(snatch_results)
logger . log ( "Beginning backlog search for [" + self . segment + "] on " + provider . name )
logger . log ( "Beginning backlog search for [" + str ( self . segment ) + "] on " + provider . name )
ADD_FUNCTION_AROUND_EXPRESSION
[["Insert", ["binary_operator", 3, 32, 3, 79], ["call", "N0"], 2], ["Insert", "N0", ["identifier:str", "T"], 0], ["Insert", "N0", ["argument_list", "N1"], 1], ["Insert", "N1", ["(:(", "T"], 0], ["Move", "N1", ["attribute", 3, 67, 3, 79], 1], ["Insert", "N1", ["):)", "T"], 2]]
jackkiej/SickRage@bc05a9f6fad2ab77f38c7877879c992260566c56
Fixed issue #473
[ { "sha": "fd5b6cc3c6bc7a15e4ea26b0a0c03244c719a726", "filename": "sickbeard/search_queue.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/bc05a9f6fad2ab77f38c7877879c992260566c56/sickbeard%2Fsearch_queue.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/bc05a9f6fad2ab77f38c7877879c992260566c56/sickbeard%2Fsearch_queue.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fsearch_queue.py?ref=bc05a9f6fad2ab77f38c7877879c992260566c56", "patch": "@@ -330,7 +330,7 @@ def execute(self):\n with ThreadPoolExecutor(sickbeard.NUM_OF_THREADS) as executor:\n for provider in providers:\n didSearch = True\n- logger.log(\"Beginning backlog search for [\" + self.segment + \"] on \" + provider.name)\n+ logger.log(\"Beginning backlog search for [\" + str(self.segment) + \"] on \" + provider.name)\n executor.submit(\n search.searchProviders, self, self.show, self.segment, self.wantedEpisodes, provider,\n seasonSearch, False).add_done_callback(snatch_results)" } ]
SickRage
85019f07e4694d9d939113982b83edbe702985a7
e9777507020fc1380f5492680545d58bdd088755
sickbeard/searchBacklog.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -125,8 +125,7 @@ class BacklogSearcher: backlog_queue_item = search_queue.BacklogQueueItem(curShow, cur_segment) if backlog_queue_item.wantedEpisodes: - backlog_queue_item = search_queue.BacklogQueueItem(curShow, cur_segment) - #sickbeard.searchQueueScheduler.action.add_item(backlog_queue_item) #@UndefinedVariable + sickbeard.searchQueueScheduler.action.add_item(backlog_queue_item) #@UndefinedVariable else: logger.log( u"Nothing in season " + str(cur_segment) + " needs to be downloaded, skipping this season",
backlog_queue_item = search_queue . BacklogQueueItem ( curShow , cur_segment )
sickbeard . searchQueueScheduler . action . add_item ( backlog_queue_item )
SINGLE_STMT
[["Move", ["expression_statement", 3, 21, 3, 93], ["call", 3, 42, 3, 93], 0], ["Insert", ["call", 3, 42, 3, 93], ["attribute", "N0"], 0], ["Insert", "N0", ["attribute", "N1"], 0], ["Insert", "N0", [".:.", "T"], 1], ["Insert", "N0", ["identifier:add_item", "T"], 2], ["Move", ["argument_list", 3, 71, 3, 93], ["identifier:backlog_queue_item", 3, 21, 3, 39], 1], ["Move", "N1", ["attribute", 3, 42, 3, 71], 0], ["Move", "N1", [".:.", 3, 54, 3, 55], 1], ["Insert", "N1", ["identifier:action", "T"], 2], ["Update", ["identifier:search_queue", 3, 42, 3, 54], "sickbeard"], ["Insert", ["attribute", 3, 42, 3, 71], [".:.", "T"], 1], ["Update", ["identifier:BacklogQueueItem", 3, 55, 3, 71], "searchQueueScheduler"], ["Delete", ["=:=", 3, 40, 3, 41]], ["Delete", ["identifier:curShow", 3, 72, 3, 79]], ["Delete", [",:,", 3, 79, 3, 80]], ["Delete", ["identifier:cur_segment", 3, 81, 3, 92]], ["Delete", ["assignment", 3, 21, 3, 93]]]
jackkiej/SickRage@85019f07e4694d9d939113982b83edbe702985a7
Fixed backlog searches
[ { "sha": "b1c230f1e71ab3d2b02203cc753bde4d8f4d73be", "filename": "sickbeard/searchBacklog.py", "status": "modified", "additions": 1, "deletions": 2, "changes": 3, "blob_url": "https://github.com/jackkiej/SickRage/blob/85019f07e4694d9d939113982b83edbe702985a7/sickbeard%2FsearchBacklog.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/85019f07e4694d9d939113982b83edbe702985a7/sickbeard%2FsearchBacklog.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2FsearchBacklog.py?ref=85019f07e4694d9d939113982b83edbe702985a7", "patch": "@@ -125,8 +125,7 @@ def searchBacklog(self, which_shows=None):\n backlog_queue_item = search_queue.BacklogQueueItem(curShow, cur_segment)\n \n if backlog_queue_item.wantedEpisodes:\n- backlog_queue_item = search_queue.BacklogQueueItem(curShow, cur_segment)\n- #sickbeard.searchQueueScheduler.action.add_item(backlog_queue_item) #@UndefinedVariable\n+ sickbeard.searchQueueScheduler.action.add_item(backlog_queue_item) #@UndefinedVariable\n else:\n logger.log(\n u\"Nothing in season \" + str(cur_segment) + \" needs to be downloaded, skipping this season\"," } ]
SickRage
cd04d79af5b9bb69670c516501f9ca60e7a25217
85019f07e4694d9d939113982b83edbe702985a7
sickbeard/search_queue.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -192,7 +192,7 @@ class BacklogQueueItem(generic_queue.QueueItem): try: for provider in providers: - logger.log("Beginning backlog search for [" + str(self.segment) + "] on " + provider.name) + logger.log("Beginning backlog search for episodes from [" + self.show.name + "] - Season[" + str(self.segment) + "] on " + provider.name) searchResult = search.searchProviders(self, self.show, self.segment, self.wantedEpisodes, provider, seasonSearch, False)
logger . log ( "Beginning backlog search for [" + str ( self . segment ) + "] on " + provider . name )
logger . log ( "Beginning backlog search for episodes from [" + self . show . name + "] - Season[" + str ( self . segment ) + "] on " + provider . name )
CHANGE_BINARY_OPERAND
[["Insert", ["binary_operator", 3, 28, 3, 80], ["binary_operator", "N0"], 0], ["Insert", ["binary_operator", 3, 28, 3, 80], ["+:+", "T"], 1], ["Insert", "N0", ["binary_operator", "N1"], 0], ["Insert", "N0", ["+:+", "T"], 1], ["Insert", "N0", ["string:\"] - Season[\"", "T"], 2], ["Update", ["string:\"Beginning backlog search for [\"", 3, 28, 3, 60], "\"Beginning backlog search for episodes from [\""], ["Move", "N1", ["string:\"Beginning backlog search for [\"", 3, 28, 3, 60], 0], ["Move", "N1", ["+:+", 3, 61, 3, 62], 1], ["Insert", "N1", ["attribute", "N2"], 2], ["Insert", "N2", ["attribute", "N3"], 0], ["Insert", "N2", [".:.", "T"], 1], ["Insert", "N2", ["identifier:name", "T"], 2], ["Insert", "N3", ["identifier:self", "T"], 0], ["Insert", "N3", [".:.", "T"], 1], ["Insert", "N3", ["identifier:show", "T"], 2]]
jackkiej/SickRage@cd04d79af5b9bb69670c516501f9ca60e7a25217
Fixed backlog search details
[ { "sha": "d195d610484f06918c083f840fc5bdfe9442ffbe", "filename": "sickbeard/search_queue.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/cd04d79af5b9bb69670c516501f9ca60e7a25217/sickbeard%2Fsearch_queue.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/cd04d79af5b9bb69670c516501f9ca60e7a25217/sickbeard%2Fsearch_queue.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fsearch_queue.py?ref=cd04d79af5b9bb69670c516501f9ca60e7a25217", "patch": "@@ -192,7 +192,7 @@ def execute(self):\n \n try:\n for provider in providers:\n- logger.log(\"Beginning backlog search for [\" + str(self.segment) + \"] on \" + provider.name)\n+ logger.log(\"Beginning backlog search for episodes from [\" + self.show.name + \"] - Season[\" + str(self.segment) + \"] on \" + provider.name)\n searchResult = search.searchProviders(self, self.show, self.segment, self.wantedEpisodes, provider,\n seasonSearch, False)\n " } ]
SickRage
cd91e2430f1c7744667ce0cda8d2c0bb1dfa3213
448a45cf4076218f8744cbf095b22e4a7d2d0df8
sickbeard/search.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -441,7 +441,7 @@ def searchProviders(queueItem, show, season, episodes, curProvider, seasonSearch for curEpNum in allEps: epObjs.append(show.getEpisode(season, curEpNum)) bestSeasonNZB.episodes = epObjs - queueItem.results = bestSeasonNZB + queueItem.results = [bestSeasonNZB] return queueItem elif not anyWanted:
queueItem . results = bestSeasonNZB
queueItem . results = [ bestSeasonNZB ]
SINGLE_STMT
[["Insert", ["assignment", 3, 13, 3, 46], ["list", "N0"], 2], ["Insert", "N0", ["[:[", "T"], 0], ["Move", "N0", ["identifier:bestSeasonNZB", 3, 33, 3, 46], 1], ["Insert", "N0", ["]:]", "T"], 2]]
jackkiej/SickRage@cd91e2430f1c7744667ce0cda8d2c0bb1dfa3213
Fixed typo
[ { "sha": "2f111443a7ad1ce005d0bbf8f5e3a381abe688a7", "filename": "sickbeard/search.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/cd91e2430f1c7744667ce0cda8d2c0bb1dfa3213/sickbeard%2Fsearch.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/cd91e2430f1c7744667ce0cda8d2c0bb1dfa3213/sickbeard%2Fsearch.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fsearch.py?ref=cd91e2430f1c7744667ce0cda8d2c0bb1dfa3213", "patch": "@@ -441,7 +441,7 @@ def searchProviders(queueItem, show, season, episodes, curProvider, seasonSearch\n for curEpNum in allEps:\n epObjs.append(show.getEpisode(season, curEpNum))\n bestSeasonNZB.episodes = epObjs\n- queueItem.results = bestSeasonNZB\n+ queueItem.results = [bestSeasonNZB]\n return queueItem\n \n elif not anyWanted:" } ]
SickRage
5ec5dde9bab216e8168dda89b6b394c9b39be035
e05344d571758609cb271fe79914b2e346e46721
sickbeard/show_queue.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -42,7 +42,7 @@ class ShowQueue(generic_queue.GenericQueue): def _isInQueue(self, show, actions): shows = [x.show for x in self.queue.queue if x.action_id in actions] if not self.queue.empty() else [] - if self.currentItem.action_id in actions: + if self.currentItem != None and self.currentItem.action_id in actions: shows.append(self.currentItem) return show in shows
if self . currentItem . action_id in actions : shows . append ( self . currentItem )
if self . currentItem != None and self . currentItem . action_id in actions : shows . append ( self . currentItem )
MORE_SPECIFIC_IF
[["Insert", ["if_statement", 3, 9, 4, 43], ["boolean_operator", "N0"], 1], ["Insert", "N0", ["comparison_operator", "N1"], 0], ["Insert", "N0", ["and:and", "T"], 1], ["Move", "N0", ["comparison_operator", 3, 12, 3, 49], 2], ["Insert", "N1", ["attribute", "N2"], 0], ["Insert", "N1", ["!=:!=", "T"], 1], ["Insert", "N1", ["none:None", "T"], 2], ["Insert", "N2", ["identifier:self", "T"], 0], ["Insert", "N2", [".:.", "T"], 1], ["Insert", "N2", ["identifier:currentItem", "T"], 2]]
jackkiej/SickRage@5ec5dde9bab216e8168dda89b6b394c9b39be035
Fix for show_queue errors when loading a show
[ { "sha": "74ab73fb9f2ffafdd7ce9c288d2d564e42adba4c", "filename": "sickbeard/show_queue.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/5ec5dde9bab216e8168dda89b6b394c9b39be035/sickbeard%2Fshow_queue.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/5ec5dde9bab216e8168dda89b6b394c9b39be035/sickbeard%2Fshow_queue.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fshow_queue.py?ref=5ec5dde9bab216e8168dda89b6b394c9b39be035", "patch": "@@ -42,7 +42,7 @@ def __init__(self):\n \n def _isInQueue(self, show, actions):\n shows = [x.show for x in self.queue.queue if x.action_id in actions] if not self.queue.empty() else []\n- if self.currentItem.action_id in actions:\n+ if self.currentItem != None and self.currentItem.action_id in actions:\n shows.append(self.currentItem)\n \n return show in shows" } ]
SickRage
7ce27b72f5944f1115b37f713ba72b44f63cfa1e
694b210f2dcd0f537e48f3368f6c2f2bbd895b52
sickbeard/providers/generic.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -277,7 +277,7 @@ class GenericProvider: if ep_obj.season == ep_obj.scene_season and ep_obj.episode == ep_obj.scene_episode: parse_result = myParser.parse(title) else: - parse_result = myParser.parse(title) + parse_result = myParser.parse(title).convert() except InvalidNameException: logger.log(u"Unable to parse the filename " + title + " into a valid episode", logger.WARNING) continue
parse_result = myParser . parse ( title )
parse_result = myParser . parse ( title ) . convert ( )
ADD_METHOD_CALL
[["Insert", ["call", 3, 40, 3, 61], ["attribute", "N0"], 0], ["Insert", ["call", 3, 40, 3, 61], ["argument_list", "N1"], 1], ["Move", "N0", ["call", 3, 40, 3, 61], 0], ["Insert", "N0", [".:.", "T"], 1], ["Insert", "N0", ["identifier:convert", "T"], 2], ["Insert", "N1", ["(:(", "T"], 0], ["Insert", "N1", ["):)", "T"], 1]]
jackkiej/SickRage@7ce27b72f5944f1115b37f713ba72b44f63cfa1e
Fix for scene numbering issues
[ { "sha": "31c5945cfda78bce8a069f959d3fd360185f0554", "filename": "sickbeard/providers/generic.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/7ce27b72f5944f1115b37f713ba72b44f63cfa1e/sickbeard%2Fproviders%2Fgeneric.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/7ce27b72f5944f1115b37f713ba72b44f63cfa1e/sickbeard%2Fproviders%2Fgeneric.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Fgeneric.py?ref=7ce27b72f5944f1115b37f713ba72b44f63cfa1e", "patch": "@@ -277,7 +277,7 @@ def findSearchResults(self, show, season, episodes, seasonSearch=False, manualSe\n if ep_obj.season == ep_obj.scene_season and ep_obj.episode == ep_obj.scene_episode:\n parse_result = myParser.parse(title)\n else:\n- parse_result = myParser.parse(title)\n+ parse_result = myParser.parse(title).convert()\n except InvalidNameException:\n logger.log(u\"Unable to parse the filename \" + title + \" into a valid episode\", logger.WARNING)\n continue" } ]
SickRage
48b4abffa51ec6e7d2653af4f022f9539cb38942
a9e8c17fdfd67260a51923bcdf2fed29b8ba9b65
sickbeard/__init__.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -634,7 +634,7 @@ def initialize(consoleLogging=True): QUALITY_DEFAULT = check_setting_int(CFG, 'General', 'quality_default', SD) STATUS_DEFAULT = check_setting_int(CFG, 'General', 'status_default', SKIPPED) VERSION_NOTIFY = check_setting_int(CFG, 'General', 'version_notify', 1) - AUTO_UPDATE = check_setting_int(CFG, 'General', 'auto_update', 1) + AUTO_UPDATE = check_setting_int(CFG, 'General', 'auto_update', 0) FLATTEN_FOLDERS_DEFAULT = bool(check_setting_int(CFG, 'General', 'flatten_folders_default', 0)) INDEXER_DEFAULT = check_setting_int(CFG, 'General', 'indexer_default', 0)
AUTO_UPDATE = check_setting_int ( CFG , 'General' , 'auto_update' , 1 )
AUTO_UPDATE = check_setting_int ( CFG , 'General' , 'auto_update' , 0 )
CHANGE_NUMERIC_LITERAL
[["Update", ["integer:1", 3, 72, 3, 73], "0"]]
jackkiej/SickRage@48b4abffa51ec6e7d2653af4f022f9539cb38942
Changing default auto-update to disabled, while we're pushing many updates
[ { "sha": "78edcf265c1ef1cba16fd749863677e215cf45bb", "filename": "sickbeard/__init__.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/48b4abffa51ec6e7d2653af4f022f9539cb38942/sickbeard%2F__init__.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/48b4abffa51ec6e7d2653af4f022f9539cb38942/sickbeard%2F__init__.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2F__init__.py?ref=48b4abffa51ec6e7d2653af4f022f9539cb38942", "patch": "@@ -634,7 +634,7 @@ def initialize(consoleLogging=True):\n QUALITY_DEFAULT = check_setting_int(CFG, 'General', 'quality_default', SD)\n STATUS_DEFAULT = check_setting_int(CFG, 'General', 'status_default', SKIPPED)\n VERSION_NOTIFY = check_setting_int(CFG, 'General', 'version_notify', 1)\n- AUTO_UPDATE = check_setting_int(CFG, 'General', 'auto_update', 1)\n+ AUTO_UPDATE = check_setting_int(CFG, 'General', 'auto_update', 0)\n FLATTEN_FOLDERS_DEFAULT = bool(check_setting_int(CFG, 'General', 'flatten_folders_default', 0))\n INDEXER_DEFAULT = check_setting_int(CFG, 'General', 'indexer_default', 0)\n " } ]
SickRage
e02110a0424df524b41e2eb4b50df2717a516c5c
8f2663da553378e3deb633d379c166753538699d
sickbeard/notifiers/xbmc.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -543,7 +543,7 @@ class XBMCNotifier: return True else: if sickbeard.XBMC_ALWAYS_ON: - logger.log(u"Failed to detect XBMC version for '" + curHost + "', check configuration and try again.", logger.ERROR) + logger.log(u"Failed to detect XBMC version for '" + host + "', check configuration and try again.", logger.ERROR) result = result + 1 # needed for the 'update xbmc' submenu command
sickbeard . XBMC_ALWAYS_ON : logger . log ( u"Failed to detect XBMC version for '" + curHost + "', check configuration and try again." , logger . ERROR )
sickbeard . XBMC_ALWAYS_ON : logger . log ( u"Failed to detect XBMC version for '" + host + "', check configuration and try again." , logger . ERROR )
CHANGE_BINARY_OPERAND
[["Update", ["identifier:curHost", 3, 77, 3, 84], "host"]]
jackkiej/SickRage@e02110a0424df524b41e2eb4b50df2717a516c5c
fix typo in xbmc notifier
[ { "sha": "a3a8ae66193e797fd536a5e65357214f48e3581e", "filename": "sickbeard/notifiers/xbmc.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/e02110a0424df524b41e2eb4b50df2717a516c5c/sickbeard%2Fnotifiers%2Fxbmc.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/e02110a0424df524b41e2eb4b50df2717a516c5c/sickbeard%2Fnotifiers%2Fxbmc.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fnotifiers%2Fxbmc.py?ref=e02110a0424df524b41e2eb4b50df2717a516c5c", "patch": "@@ -543,7 +543,7 @@ def update_library(self, showName=None):\n return True\n else:\n if sickbeard.XBMC_ALWAYS_ON:\n- logger.log(u\"Failed to detect XBMC version for '\" + curHost + \"', check configuration and try again.\", logger.ERROR)\n+ logger.log(u\"Failed to detect XBMC version for '\" + host + \"', check configuration and try again.\", logger.ERROR)\n result = result + 1\n \n # needed for the 'update xbmc' submenu command" } ]
SickRage
651e71082eeae643edae6255ec810acd4a252c45
858ac3af1821990fdf1577c9e64f5e18a17d58d3
sickbeard/search.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -344,7 +344,7 @@ def searchProviders(queueItem, show, season, episodes, seasonSearch=False, manua # pick the best season NZB bestSeasonNZB = None if SEASON_RESULT in foundResults: - bestSeasonNZB = pickBestResult(foundResults[SEASON_RESULT], show, anyQualities + bestQualities) + bestSeasonNZB = pickBestResult(foundResults[provider.name][SEASON_RESULT], show, anyQualities + bestQualities) highest_quality_overall = 0 for cur_episode in foundResults[provider.name]:
bestSeasonNZB = pickBestResult ( foundResults [ SEASON_RESULT ] , show , anyQualities + bestQualities )
bestSeasonNZB = pickBestResult ( foundResults [ provider . name ] [ SEASON_RESULT ] , show , anyQualities + bestQualities )
SINGLE_STMT
[["Insert", ["subscript", 3, 44, 3, 71], ["subscript", "N0"], 0], ["Insert", ["subscript", 3, 44, 3, 71], ["[:[", "T"], 1], ["Insert", ["subscript", 3, 44, 3, 71], ["]:]", "T"], 4], ["Move", "N0", ["identifier:foundResults", 3, 44, 3, 56], 0], ["Move", "N0", ["[:[", 3, 56, 3, 57], 1], ["Insert", "N0", ["attribute", "N1"], 2], ["Move", "N0", ["]:]", 3, 70, 3, 71], 3], ["Insert", "N1", ["identifier:provider", "T"], 0], ["Insert", "N1", [".:.", "T"], 1], ["Insert", "N1", ["identifier:name", "T"], 2]]
jackkiej/SickRage@651e71082eeae643edae6255ec810acd4a252c45
Fix for season pack searches ... ALL PROVIDERS!
[ { "sha": "dee81d418950c87b9a7dc54dbcba5d2ef35dd1aa", "filename": "sickbeard/search.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/651e71082eeae643edae6255ec810acd4a252c45/sickbeard%2Fsearch.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/651e71082eeae643edae6255ec810acd4a252c45/sickbeard%2Fsearch.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fsearch.py?ref=651e71082eeae643edae6255ec810acd4a252c45", "patch": "@@ -344,7 +344,7 @@ def searchProviders(queueItem, show, season, episodes, seasonSearch=False, manua\n # pick the best season NZB\n bestSeasonNZB = None\n if SEASON_RESULT in foundResults:\n- bestSeasonNZB = pickBestResult(foundResults[SEASON_RESULT], show, anyQualities + bestQualities)\n+ bestSeasonNZB = pickBestResult(foundResults[provider.name][SEASON_RESULT], show, anyQualities + bestQualities)\n \n highest_quality_overall = 0\n for cur_episode in foundResults[provider.name]:" } ]
SickRage
6dee2439040d6e3b3a4b7acaf71ac27b8a17d34d
1d339b97f6bb0a295951103f8430e1c467795993
sickbeard/search.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -343,7 +343,7 @@ def searchProviders(queueItem, show, season, episodes, seasonSearch=False, manua # pick the best season NZB bestSeasonNZB = None - if SEASON_RESULT in foundResults: + if SEASON_RESULT in foundResults[provider.name]: bestSeasonNZB = pickBestResult(foundResults[provider.name][SEASON_RESULT], show, anyQualities + bestQualities) highest_quality_overall = 0
if SEASON_RESULT in foundResults : bestSeasonNZB = pickBestResult ( foundResults [ provider . name ] [ SEASON_RESULT ] , show , anyQualities + bestQualities )
if SEASON_RESULT in foundResults [ provider . name ] : bestSeasonNZB = pickBestResult ( foundResults [ provider . name ] [ SEASON_RESULT ] , show , anyQualities + bestQualities )
SINGLE_STMT
[["Insert", ["comparison_operator", 3, 12, 3, 41], ["subscript", "N0"], 2], ["Move", "N0", ["identifier:foundResults", 3, 29, 3, 41], 0], ["Insert", "N0", ["[:[", "T"], 1], ["Insert", "N0", ["attribute", "N1"], 2], ["Insert", "N0", ["]:]", "T"], 3], ["Insert", "N1", ["identifier:provider", "T"], 0], ["Insert", "N1", [".:.", "T"], 1], ["Insert", "N1", ["identifier:name", "T"], 2]]
jackkiej/SickRage@6dee2439040d6e3b3a4b7acaf71ac27b8a17d34d
Season pack fix 1200
[ { "sha": "1d3bec5a88995a48046bd4f644f7a77eff7e6eb8", "filename": "sickbeard/search.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/6dee2439040d6e3b3a4b7acaf71ac27b8a17d34d/sickbeard%2Fsearch.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/6dee2439040d6e3b3a4b7acaf71ac27b8a17d34d/sickbeard%2Fsearch.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fsearch.py?ref=6dee2439040d6e3b3a4b7acaf71ac27b8a17d34d", "patch": "@@ -343,7 +343,7 @@ def searchProviders(queueItem, show, season, episodes, seasonSearch=False, manua\n \n # pick the best season NZB\n bestSeasonNZB = None\n- if SEASON_RESULT in foundResults:\n+ if SEASON_RESULT in foundResults[provider.name]:\n bestSeasonNZB = pickBestResult(foundResults[provider.name][SEASON_RESULT], show, anyQualities + bestQualities)\n \n highest_quality_overall = 0" } ]
SickRage
7f31c1e2c1d908f4bd19754b1eef7a3b4ed2c3ba
734de67684f494442e7f4eabf89fb81cf29d09ed
sickbeard/providers/__init__.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -123,7 +123,7 @@ def makeTorrentRssProvider(configString): def getDefaultNewznabProviders(): - return 'Sick Beard Index|http://lolo.sickbeard.com/|0|5030,5040,5060|0!!!NZBs.org|http://nzbs.org/||5030,5040,5060,5070,5090|0!!!Usenet-Crawler|https://www.usenet-crawler.com/||5030,5040,5060|0' + return 'Sick Beard Index|http://lolo.sickbeard.com/|0|5030,5040,5060|0!!!NZBs.org|https://nzbs.org/||5030,5040,5060,5070,5090|0!!!Usenet-Crawler|https://www.usenet-crawler.com/||5030,5040,5060|0' def getProviderModule(name):
return 'Sick Beard Index|http://lolo.sickbeard.com/|0|5030,5040,5060|0!!!NZBs.org|http://nzbs.org/||5030,5040,5060,5070,5090|0!!!Usenet-Crawler|https://www.usenet-crawler.com/||5030,5040,5060|0'
return 'Sick Beard Index|http://lolo.sickbeard.com/|0|5030,5040,5060|0!!!NZBs.org|https://nzbs.org/||5030,5040,5060,5070,5090|0!!!Usenet-Crawler|https://www.usenet-crawler.com/||5030,5040,5060|0'
CHANGE_STRING_LITERAL
[["Update", ["string:'Sick Beard Index|http://lolo.sickbeard.com/|0|5030,5040,5060|0!!!NZBs.org|http://nzbs.org/||5030,5040,5060,5070,5090|0!!!Usenet-Crawler|https://www.usenet-crawler.com/||5030,5040,5060|0'", 3, 12, 3, 199], "'Sick Beard Index|http://lolo.sickbeard.com/|0|5030,5040,5060|0!!!NZBs.org|https://nzbs.org/||5030,5040,5060,5070,5090|0!!!Usenet-Crawler|https://www.usenet-crawler.com/||5030,5040,5060|0'"]]
jackkiej/SickRage@7f31c1e2c1d908f4bd19754b1eef7a3b4ed2c3ba
Fix one of the default providers to use SSL.
[ { "sha": "9233ab27822b43a28ab693bd548e11069a1279b4", "filename": "sickbeard/providers/__init__.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/7f31c1e2c1d908f4bd19754b1eef7a3b4ed2c3ba/sickbeard%2Fproviders%2F__init__.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/7f31c1e2c1d908f4bd19754b1eef7a3b4ed2c3ba/sickbeard%2Fproviders%2F__init__.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2F__init__.py?ref=7f31c1e2c1d908f4bd19754b1eef7a3b4ed2c3ba", "patch": "@@ -123,7 +123,7 @@ def makeTorrentRssProvider(configString):\n \n \n def getDefaultNewznabProviders():\n- return 'Sick Beard Index|http://lolo.sickbeard.com/|0|5030,5040,5060|0!!!NZBs.org|http://nzbs.org/||5030,5040,5060,5070,5090|0!!!Usenet-Crawler|https://www.usenet-crawler.com/||5030,5040,5060|0'\n+ return 'Sick Beard Index|http://lolo.sickbeard.com/|0|5030,5040,5060|0!!!NZBs.org|https://nzbs.org/||5030,5040,5060,5070,5090|0!!!Usenet-Crawler|https://www.usenet-crawler.com/||5030,5040,5060|0'\n \n \n def getProviderModule(name):" } ]
SickRage
628fe23f8d5ed548bfe30030ca61e612b969f5b7
1fcfa4c70a86bfd51b123017bdfb5591c4bc3fdb
sickbeard/name_cache.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -65,7 +65,7 @@ def syncNameCache(): for curShow in sickbeard.showList: for show_name in set(sickbeard.show_name_helpers.allPossibleShowNames(curShow)): sqlResult = cacheDB.action("DELETE FROM scene_names WHERE name = ? and indexer_id = ?", [show_name, 0]) - if sqlResult: + if sqlResult.rowcount > 0: logger.log(u"Removing invalid record for [" + show_name + "] from cache ...") break
if sqlResult : logger . log ( u"Removing invalid record for [" + show_name + "] from cache ..." ) break
if sqlResult . rowcount > 0 : logger . log ( u"Removing invalid record for [" + show_name + "] from cache ..." ) break
SINGLE_STMT
[["Insert", ["if_statement", 3, 13, 5, 22], ["comparison_operator", "N0"], 1], ["Insert", "N0", ["attribute", "N1"], 0], ["Insert", "N0", [">:>", "T"], 1], ["Insert", "N0", ["integer:0", "T"], 2], ["Move", "N1", ["identifier:sqlResult", 3, 16, 3, 25], 0], ["Insert", "N1", [".:.", "T"], 1], ["Insert", "N1", ["identifier:rowcount", "T"], 2]]
jackkiej/SickRage@628fe23f8d5ed548bfe30030ca61e612b969f5b7
Fix to stop removal message of cache items from occuring when untrue
[ { "sha": "df916ad0a25dff92c187c1b2ae0b9be75a2ec1b1", "filename": "sickbeard/name_cache.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/628fe23f8d5ed548bfe30030ca61e612b969f5b7/sickbeard%2Fname_cache.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/628fe23f8d5ed548bfe30030ca61e612b969f5b7/sickbeard%2Fname_cache.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fname_cache.py?ref=628fe23f8d5ed548bfe30030ca61e612b969f5b7", "patch": "@@ -65,7 +65,7 @@ def syncNameCache():\n for curShow in sickbeard.showList:\n for show_name in set(sickbeard.show_name_helpers.allPossibleShowNames(curShow)):\n sqlResult = cacheDB.action(\"DELETE FROM scene_names WHERE name = ? and indexer_id = ?\", [show_name, 0])\n- if sqlResult:\n+ if sqlResult.rowcount > 0:\n logger.log(u\"Removing invalid record for [\" + show_name + \"] from cache ...\")\n break\n " } ]
SickRage
32cf17c638dd6a5cddba951762e5238c1151e255
55f27c4f400934c68147e7ea96c8fe4b16c389b8
sickbeard/webserve.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -1564,7 +1564,7 @@ class ConfigProviders: try: curTorrentProvider.ratio = float(str(kwargs[curTorrentProvider.getID() + '_ratio']).strip()) except: - curTorrentProvider.ratio = None + curTorrentProvider.ratio = 0 if hasattr(curTorrentProvider, 'digest'): try:
curTorrentProvider . ratio = None
curTorrentProvider . ratio = 0
SINGLE_TOKEN
[["Insert", ["assignment", 3, 21, 3, 52], ["integer:0", "T"], 2], ["Delete", ["none:None", 3, 48, 3, 52]]]
jackkiej/SickRage@32cf17c638dd6a5cddba951762e5238c1151e255
Fixed error when saving blank ratio's
[ { "sha": "cc31f5a5499bc9ba42848b1d4294634eb377ea27", "filename": "sickbeard/webserve.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/32cf17c638dd6a5cddba951762e5238c1151e255/sickbeard%2Fwebserve.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/32cf17c638dd6a5cddba951762e5238c1151e255/sickbeard%2Fwebserve.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fwebserve.py?ref=32cf17c638dd6a5cddba951762e5238c1151e255", "patch": "@@ -1564,7 +1564,7 @@ def saveProviders(self, newznab_string='', torrentrss_string='', provider_order=\n try:\n curTorrentProvider.ratio = float(str(kwargs[curTorrentProvider.getID() + '_ratio']).strip())\n except:\n- curTorrentProvider.ratio = None\n+ curTorrentProvider.ratio = 0\n \n if hasattr(curTorrentProvider, 'digest'):\n try:" } ]
SickRage
cf18b3eec83011e642669edb7fc001062e1ceb80
0830de89cd4eaf1c14e4e1dd38c0977157dca6ac
sickbeard/databases/mainDB.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -129,7 +129,7 @@ class MainSanityCheck(db.DBSanityCheck): curDate = datetime.date.today() sqlResults = self.connection.select( - "SELECT episode_id, showid FROM tv_episodes WHERE airdate > ? ", [curDate.toordinal()]) + "SELECT episode_id, showid FROM tv_episodes WHERE airdate > ? AND status != ?", [curDate.toordinal(), common.UNAIRED]) for cur_orphan in sqlResults: logger.log(u"UNAIRED episode detected! episode_id: " + str(cur_orphan["episode_id"]) + " showid: " + str(
sqlResults = self . connection . select ( "SELECT episode_id, showid FROM tv_episodes WHERE airdate > ? " , [ curDate . toordinal ( ) ] )
sqlResults = self . connection . select ( "SELECT episode_id, showid FROM tv_episodes WHERE airdate > ? AND status != ?" , [ curDate . toordinal ( ) , common . UNAIRED ] )
SINGLE_STMT
[["Update", ["string:\"SELECT episode_id, showid FROM tv_episodes WHERE airdate > ? \"", 3, 13, 3, 76], "\"SELECT episode_id, showid FROM tv_episodes WHERE airdate > ? AND status != ?\""], ["Insert", ["list", 3, 78, 3, 99], [",:,", "T"], 2], ["Insert", ["list", 3, 78, 3, 99], ["attribute", "N0"], 3], ["Insert", "N0", ["identifier:common", "T"], 0], ["Insert", "N0", [".:.", "T"], 1], ["Insert", "N0", ["identifier:UNAIRED", "T"], 2]]
jackkiej/SickRage@cf18b3eec83011e642669edb7fc001062e1ceb80
Fix to ensure unaired fix for mainDB only happens for shows without a already set UNAIRED status
[ { "sha": "5a81a55e613fd553854faf511a320a11f68e5061", "filename": "sickbeard/databases/mainDB.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/cf18b3eec83011e642669edb7fc001062e1ceb80/sickbeard%2Fdatabases%2FmainDB.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/cf18b3eec83011e642669edb7fc001062e1ceb80/sickbeard%2Fdatabases%2FmainDB.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fdatabases%2FmainDB.py?ref=cf18b3eec83011e642669edb7fc001062e1ceb80", "patch": "@@ -129,7 +129,7 @@ def fix_unaired_episodes(self):\n curDate = datetime.date.today()\n \n sqlResults = self.connection.select(\n- \"SELECT episode_id, showid FROM tv_episodes WHERE airdate > ? \", [curDate.toordinal()])\n+ \"SELECT episode_id, showid FROM tv_episodes WHERE airdate > ? AND status != ?\", [curDate.toordinal(), common.UNAIRED])\n \n for cur_orphan in sqlResults:\n logger.log(u\"UNAIRED episode detected! episode_id: \" + str(cur_orphan[\"episode_id\"]) + \" showid: \" + str(" } ]
SickRage
71604b576994c0987623830c2e82086515479cbc
51540993be74e42ec72d31bf9bb7b70249771bbd
sickbeard/search.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -434,7 +434,7 @@ def searchProviders(show, season, episodes, manualSearch=False): search_mode = 'eponly' else: logger.log(u"FALLBACK SEASON PACK SEARCH INITIATED ...") - search_mode = 'eponly' + search_mode = 'sponly' # skip to next provider if we have no results to process if not len(foundResults[provider.name]):
search_mode = 'eponly'
search_mode = 'sponly'
CHANGE_STRING_LITERAL
[["Update", ["string:'eponly'", 3, 31, 3, 39], "'sponly'"]]
jackkiej/SickRage@71604b576994c0987623830c2e82086515479cbc
Fixed issue for season searches using episode only mode but fallback to season only mode, was small typo correction
[ { "sha": "5457ab45c3b803f2182d533bec65fbac3e0de064", "filename": "sickbeard/search.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/71604b576994c0987623830c2e82086515479cbc/sickbeard%2Fsearch.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/71604b576994c0987623830c2e82086515479cbc/sickbeard%2Fsearch.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fsearch.py?ref=71604b576994c0987623830c2e82086515479cbc", "patch": "@@ -434,7 +434,7 @@ def searchProviders(show, season, episodes, manualSearch=False):\n search_mode = 'eponly'\n else:\n logger.log(u\"FALLBACK SEASON PACK SEARCH INITIATED ...\")\n- search_mode = 'eponly'\n+ search_mode = 'sponly'\n \n # skip to next provider if we have no results to process\n if not len(foundResults[provider.name]):" } ]
SickRage
753be6409031002b7f0eca289461836a6ca0950b
d37a992508507998a37a2b1092855133fafc63b8
sickbeard/versionChecker.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -120,7 +120,7 @@ class CheckVersion(): if not sickbeard.AUTO_UPDATE: logger.log(u"No update needed") - if force and not sickbeard.AUTO_UPDATE: + if force: ui.notifications.message('No update needed') return False
if force and not sickbeard . AUTO_UPDATE : ui . notifications . message ( 'No update needed' )
if force : ui . notifications . message ( 'No update needed' )
SINGLE_STMT
[["Move", ["if_statement", 3, 13, 4, 61], ["identifier:force", 3, 16, 3, 21], 1], ["Delete", ["and:and", 3, 22, 3, 25]], ["Delete", ["not:not", 3, 26, 3, 29]], ["Delete", ["identifier:sickbeard", 3, 30, 3, 39]], ["Delete", [".:.", 3, 39, 3, 40]], ["Delete", ["identifier:AUTO_UPDATE", 3, 40, 3, 51]], ["Delete", ["attribute", 3, 30, 3, 51]], ["Delete", ["not_operator", 3, 26, 3, 51]], ["Delete", ["boolean_operator", 3, 16, 3, 51]]]
jackkiej/SickRage@753be6409031002b7f0eca289461836a6ca0950b
Fixes issue of missing ui notification to let you know that there was no update needed when forcing a version check.
[ { "sha": "a79a80d750c6530bf01fe71366003c3d7685a605", "filename": "sickbeard/versionChecker.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/753be6409031002b7f0eca289461836a6ca0950b/sickbeard%2FversionChecker.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/753be6409031002b7f0eca289461836a6ca0950b/sickbeard%2FversionChecker.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2FversionChecker.py?ref=753be6409031002b7f0eca289461836a6ca0950b", "patch": "@@ -120,7 +120,7 @@ def check_for_new_version(self, force=False):\n if not sickbeard.AUTO_UPDATE:\n logger.log(u\"No update needed\")\n \n- if force and not sickbeard.AUTO_UPDATE:\n+ if force:\n ui.notifications.message('No update needed')\n return False\n " } ]
SickRage
3b6534ca1de719f68a4f4b7824bcd5e8b4824147
a350be339c6e035ff082fb505b1ff974a03de8d9
sickbeard/webapi.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -905,7 +905,7 @@ class CMD_EpisodeSearch(ApiCall): return _responds(RESULT_FAILURE, msg="Episode not found") # make a queue item for it and put it on the queue - ep_queue_item = search_queue.ManualSearchQueueItem(epObj) + ep_queue_item = search_queue.ManualSearchQueueItem(showObj, epObj) sickbeard.searchQueueScheduler.action.add_item(ep_queue_item) #@UndefinedVariable # wait until the queue item tells us whether it worked or not
ep_queue_item = search_queue . ManualSearchQueueItem ( epObj )
ep_queue_item = search_queue . ManualSearchQueueItem ( showObj , epObj )
SAME_FUNCTION_MORE_ARGS
[["Insert", ["argument_list", 3, 59, 3, 66], ["identifier:showObj", "T"], 1], ["Insert", ["argument_list", 3, 59, 3, 66], [",:,", "T"], 2]]
jackkiej/SickRage@3b6534ca1de719f68a4f4b7824bcd5e8b4824147
Fix for issues relating to webAPI and episode searching.
[ { "sha": "122e197df4426b7c90bda423e8361c6b84363238", "filename": "sickbeard/webapi.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/3b6534ca1de719f68a4f4b7824bcd5e8b4824147/sickbeard%2Fwebapi.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/3b6534ca1de719f68a4f4b7824bcd5e8b4824147/sickbeard%2Fwebapi.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fwebapi.py?ref=3b6534ca1de719f68a4f4b7824bcd5e8b4824147", "patch": "@@ -905,7 +905,7 @@ def run(self):\n return _responds(RESULT_FAILURE, msg=\"Episode not found\")\n \n # make a queue item for it and put it on the queue\n- ep_queue_item = search_queue.ManualSearchQueueItem(epObj)\n+ ep_queue_item = search_queue.ManualSearchQueueItem(showObj, epObj)\n sickbeard.searchQueueScheduler.action.add_item(ep_queue_item) #@UndefinedVariable\n \n # wait until the queue item tells us whether it worked or not" } ]
SickRage
840f7c7bdfa9999a0fcda4ca1c8da72d8edad842
4da248ef9b0c7a4ccc72fb9fb65d7f02575c7e46
sickbeard/webserve.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -205,7 +205,7 @@ class ManageSearches: #t.backlogPI = sickbeard.backlogSearchScheduler.action.getProgressIndicator() t.backlogPaused = sickbeard.searchQueueScheduler.action.is_backlog_paused() # @UndefinedVariable t.backlogRunning = sickbeard.searchQueueScheduler.action.is_backlog_in_progress() # @UndefinedVariable - t.dailySearchStatus = sickbeard.searchQueueScheduler.action.amActive # @UndefinedVariable + t.dailySearchStatus = sickbeard.dailySearchScheduler.action.amActive # @UndefinedVariable t.findPropersStatus = sickbeard.properFinderScheduler.action.amActive # @UndefinedVariable t.submenu = ManageMenu()
t . dailySearchStatus = sickbeard . searchQueueScheduler . action . amActive
t . dailySearchStatus = sickbeard . dailySearchScheduler . action . amActive
CHANGE_ATTRIBUTE_USED
[["Update", ["identifier:searchQueueScheduler", 3, 41, 3, 61], "dailySearchScheduler"]]
jackkiej/SickRage@840f7c7bdfa9999a0fcda4ca1c8da72d8edad842
Fixed issue with daily search progress monitoring.
[ { "sha": "a6cdbe0be559b9f50866db13dc3bc6466586dd71", "filename": "sickbeard/webserve.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/840f7c7bdfa9999a0fcda4ca1c8da72d8edad842/sickbeard%2Fwebserve.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/840f7c7bdfa9999a0fcda4ca1c8da72d8edad842/sickbeard%2Fwebserve.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fwebserve.py?ref=840f7c7bdfa9999a0fcda4ca1c8da72d8edad842", "patch": "@@ -205,7 +205,7 @@ def index(self):\n #t.backlogPI = sickbeard.backlogSearchScheduler.action.getProgressIndicator()\n t.backlogPaused = sickbeard.searchQueueScheduler.action.is_backlog_paused() # @UndefinedVariable\n t.backlogRunning = sickbeard.searchQueueScheduler.action.is_backlog_in_progress() # @UndefinedVariable\n- t.dailySearchStatus = sickbeard.searchQueueScheduler.action.amActive # @UndefinedVariable\n+ t.dailySearchStatus = sickbeard.dailySearchScheduler.action.amActive # @UndefinedVariable\n t.findPropersStatus = sickbeard.properFinderScheduler.action.amActive # @UndefinedVariable\n \n t.submenu = ManageMenu()" } ]
SickRage
370c6d6f73371105315453418dec67abd03b5f13
34da3f53d80b71d5f0522d151bdaecb2be3aba31
lib/rtorrent/__init__.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -216,7 +216,7 @@ class RTorrent: while i < MAX_RETRIES: for torrent in self.get_torrents(): if torrent.info_hash != info_hash: - break + continue time.sleep(1) i += 1
break
continue
SINGLE_TOKEN
[["Insert", ["block", 3, 25, 3, 30], ["continue_statement", "N0"], 0], ["Insert", "N0", ["continue:continue", "T"], 0], ["Delete", ["break:break", 3, 25, 3, 30]], ["Delete", ["break_statement", 3, 25, 3, 30]]]
jackkiej/SickRage@370c6d6f73371105315453418dec67abd03b5f13
Fixed infinite loop in lib/rtorrent This code works when there is only one torrent in rtorrent. As soon as there are multiple torrents, this just spins on the same torrent IF the first torrent isn't the one it is looking for. In general this function just brute forces the server as I expect it is written for a local SCGI endpoint. (Side note, this was my second attempt to do this, since I didn't fork properly when I stated: https://github.com/echel0n/SickRage/pull/585)
[ { "sha": "290ef11581342d412f7df1e9d73fea9bb0f31ec7", "filename": "lib/rtorrent/__init__.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/370c6d6f73371105315453418dec67abd03b5f13/lib%2Frtorrent%2F__init__.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/370c6d6f73371105315453418dec67abd03b5f13/lib%2Frtorrent%2F__init__.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/lib%2Frtorrent%2F__init__.py?ref=370c6d6f73371105315453418dec67abd03b5f13", "patch": "@@ -216,7 +216,7 @@ def load_magnet(self, magneturl, info_hash, start=False, verbose=False, verify_l\n while i < MAX_RETRIES:\n for torrent in self.get_torrents():\n if torrent.info_hash != info_hash:\n- break\n+ continue\n time.sleep(1)\n i += 1\n " } ]
SickRage
ecab1c35f83c5574aeb7b28070c61830f8c5424d
571e7c7d6187487d76e7aecf9ad0ba5d25c9cdc2
sickbeard/providers/kat.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -61,7 +61,7 @@ class KATProvider(generic.TorrentProvider): self.cache = KATCache(self) - self.urls = ['http://kickass.to/', 'http://katproxy.com/', 'http://www.kickmirror.com'] + self.urls = ['http://kickass.to/', 'http://katproxy.com/', 'http://www.kickmirror.com/'] self.url = None def isEnabled(self):
self . urls = [ 'http://kickass.to/' , 'http://katproxy.com/' , 'http://www.kickmirror.com' ]
self . urls = [ 'http://kickass.to/' , 'http://katproxy.com/' , 'http://www.kickmirror.com/' ]
CHANGE_STRING_LITERAL
[["Update", ["string:'http://www.kickmirror.com'", 3, 68, 3, 95], "'http://www.kickmirror.com/'"]]
jackkiej/SickRage@ecab1c35f83c5574aeb7b28070c61830f8c5424d
Fixed missing slash on Kat mirror URL Changed http://www.kickmirror.com to http://www.kickmirror.com/
[ { "sha": "d3e3aa95b33c3e9850a009f0c797b5e302262def", "filename": "sickbeard/providers/kat.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/ecab1c35f83c5574aeb7b28070c61830f8c5424d/sickbeard%2Fproviders%2Fkat.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/ecab1c35f83c5574aeb7b28070c61830f8c5424d/sickbeard%2Fproviders%2Fkat.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Fkat.py?ref=ecab1c35f83c5574aeb7b28070c61830f8c5424d", "patch": "@@ -61,7 +61,7 @@ def __init__(self):\n \n self.cache = KATCache(self)\n \n- self.urls = ['http://kickass.to/', 'http://katproxy.com/', 'http://www.kickmirror.com']\n+ self.urls = ['http://kickass.to/', 'http://katproxy.com/', 'http://www.kickmirror.com/']\n self.url = None\n \n def isEnabled(self):" } ]
SickRage
20725c1da73da7abe7fe5a062cde4a33c68e7c4f
90356544cdf4f94f120acc71ece3b8bd1c780a0f
sickbeard/providers/__init__.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -186,7 +186,7 @@ def makeTorrentRssProvider(configString): def getDefaultNewznabProviders(): - return 'Sick Beard Index|http://lolo.sickbeard.com/|0|5030,5040|0|eponly|0|0|0!!!NZBs.org|https://nzbs.org/|0|5030,5040|0|eponly|0|0|0!!!Usenet-Crawler|https://www.usenet-crawler.com/|0|5030,5040|0|eponly|0|0|0' + return 'Sick Beard Index|http://lolo.sickbeard.com/|0|5030,5040|0|eponly|0|0|0!!!NZBs.org|https://nzbs.org/||5030,5040|0|eponly|0|0|0!!!Usenet-Crawler|https://www.usenet-crawler.com/||5030,5040|0|eponly|0|0|0' def getProviderModule(name):
return 'Sick Beard Index|http://lolo.sickbeard.com/|0|5030,5040|0|eponly|0|0|0!!!NZBs.org|https://nzbs.org/|0|5030,5040|0|eponly|0|0|0!!!Usenet-Crawler|https://www.usenet-crawler.com/|0|5030,5040|0|eponly|0|0|0'
return 'Sick Beard Index|http://lolo.sickbeard.com/|0|5030,5040|0|eponly|0|0|0!!!NZBs.org|https://nzbs.org/||5030,5040|0|eponly|0|0|0!!!Usenet-Crawler|https://www.usenet-crawler.com/||5030,5040|0|eponly|0|0|0'
CHANGE_STRING_LITERAL
[["Update", ["string:'Sick Beard Index|http://lolo.sickbeard.com/|0|5030,5040|0|eponly|0|0|0!!!NZBs.org|https://nzbs.org/|0|5030,5040|0|eponly|0|0|0!!!Usenet-Crawler|https://www.usenet-crawler.com/|0|5030,5040|0|eponly|0|0|0'", 3, 12, 3, 216], "'Sick Beard Index|http://lolo.sickbeard.com/|0|5030,5040|0|eponly|0|0|0!!!NZBs.org|https://nzbs.org/||5030,5040|0|eponly|0|0|0!!!Usenet-Crawler|https://www.usenet-crawler.com/||5030,5040|0|eponly|0|0|0'"]]
jackkiej/SickRage@20725c1da73da7abe7fe5a062cde4a33c68e7c4f
Testing fix for missing api key on newznab providers
[ { "sha": "7fb02edab0e78f002f243646df2ed6b666939ae4", "filename": "sickbeard/providers/__init__.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/20725c1da73da7abe7fe5a062cde4a33c68e7c4f/sickbeard%2Fproviders%2F__init__.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/20725c1da73da7abe7fe5a062cde4a33c68e7c4f/sickbeard%2Fproviders%2F__init__.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2F__init__.py?ref=20725c1da73da7abe7fe5a062cde4a33c68e7c4f", "patch": "@@ -186,7 +186,7 @@ def makeTorrentRssProvider(configString):\n \n \n def getDefaultNewznabProviders():\n- return 'Sick Beard Index|http://lolo.sickbeard.com/|0|5030,5040|0|eponly|0|0|0!!!NZBs.org|https://nzbs.org/|0|5030,5040|0|eponly|0|0|0!!!Usenet-Crawler|https://www.usenet-crawler.com/|0|5030,5040|0|eponly|0|0|0'\n+ return 'Sick Beard Index|http://lolo.sickbeard.com/|0|5030,5040|0|eponly|0|0|0!!!NZBs.org|https://nzbs.org/||5030,5040|0|eponly|0|0|0!!!Usenet-Crawler|https://www.usenet-crawler.com/||5030,5040|0|eponly|0|0|0'\n \n \n def getProviderModule(name):" } ]
SickRage
2fbae22f2f9ad9f020eff6de7cbe71038ee128ab
3efa9709afcb301c37b9b1e69b2e7d83961ef544
sickbeard/searchBacklog.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -100,7 +100,7 @@ class BacklogSearcher: segments = self._get_segments(curShow, fromDate) for season, segment in segments.items(): - self.currentSearchInfo = {'title': self.show.name + " Season " + str(season)} + self.currentSearchInfo = {'title': curShow.name + " Season " + str(season)} backlog_queue_item = search_queue.BacklogQueueItem(curShow, segment) sickbeard.searchQueueScheduler.action.add_item(backlog_queue_item) # @UndefinedVariable
self . currentSearchInfo = { 'title' : self . show . name + " Season " + str ( season ) }
self . currentSearchInfo = { 'title' : curShow . name + " Season " + str ( season ) }
SINGLE_STMT
[["Update", ["identifier:self", 3, 52, 3, 56], "curShow"], ["Move", ["attribute", 3, 52, 3, 66], ["identifier:self", 3, 52, 3, 56], 0], ["Delete", [".:.", 3, 56, 3, 57]], ["Delete", ["identifier:show", 3, 57, 3, 61]], ["Delete", ["attribute", 3, 52, 3, 61]]]
jackkiej/SickRage@2fbae22f2f9ad9f020eff6de7cbe71038ee128ab
Fixed BacklogSearchQueueItem show attribute error during searches
[ { "sha": "5b5893bc6c8a2fd1778bb0aa513634bc3e0f1787", "filename": "sickbeard/searchBacklog.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/2fbae22f2f9ad9f020eff6de7cbe71038ee128ab/sickbeard%2FsearchBacklog.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/2fbae22f2f9ad9f020eff6de7cbe71038ee128ab/sickbeard%2FsearchBacklog.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2FsearchBacklog.py?ref=2fbae22f2f9ad9f020eff6de7cbe71038ee128ab", "patch": "@@ -100,7 +100,7 @@ def searchBacklog(self, which_shows=None):\n segments = self._get_segments(curShow, fromDate)\n \n for season, segment in segments.items():\n- self.currentSearchInfo = {'title': self.show.name + \" Season \" + str(season)}\n+ self.currentSearchInfo = {'title': curShow.name + \" Season \" + str(season)}\n \n backlog_queue_item = search_queue.BacklogQueueItem(curShow, segment)\n sickbeard.searchQueueScheduler.action.add_item(backlog_queue_item) # @UndefinedVariable" } ]
SickRage
991a93991e515630e75d82b723aa711e98f1bd43
ba4b408af315e126bd9bd3403563878d6cd1c7dc
sickbeard/providers/newznab.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -265,7 +265,7 @@ class NewznabProvider(generic.NZBProvider): results = [] offset = total = 0 - while total >= offset: + while total >= (offset or 1000): search_url = self.url + 'api?' + urllib.urlencode(params) logger.log(u"Search url: " + search_url, logger.DEBUG) data = self.cache.getRSSFeed(search_url)
while total >= offset : search_url = self . url + 'api?' + urllib . urlencode ( params ) logger . log ( u"Search url: " + search_url , logger . DEBUG ) data = self . cache . getRSSFeed ( search_url )
while total >= ( offset or 1000 ) : search_url = self . url + 'api?' + urllib . urlencode ( params ) logger . log ( u"Search url: " + search_url , logger . DEBUG ) data = self . cache . getRSSFeed ( search_url )
SINGLE_STMT
[["Insert", ["comparison_operator", 3, 15, 3, 30], ["parenthesized_expression", "N0"], 2], ["Insert", "N0", ["(:(", "T"], 0], ["Insert", "N0", ["boolean_operator", "N1"], 1], ["Insert", "N0", ["):)", "T"], 2], ["Move", "N1", ["identifier:offset", 3, 24, 3, 30], 0], ["Insert", "N1", ["or:or", "T"], 1], ["Insert", "N1", ["integer:1000", "T"], 2]]
jackkiej/SickRage@991a93991e515630e75d82b723aa711e98f1bd43
Fixed newznab to search no more then 1000 results
[ { "sha": "ba7bada4af9d57de2d7a42f9c0b4112b4efbbeaa", "filename": "sickbeard/providers/newznab.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/991a93991e515630e75d82b723aa711e98f1bd43/sickbeard%2Fproviders%2Fnewznab.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/991a93991e515630e75d82b723aa711e98f1bd43/sickbeard%2Fproviders%2Fnewznab.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Fnewznab.py?ref=991a93991e515630e75d82b723aa711e98f1bd43", "patch": "@@ -265,7 +265,7 @@ def _doSearch(self, search_params, search_mode='eponly', epcount=0, age=0):\n results = []\n offset = total = 0\n \n- while total >= offset:\n+ while total >= (offset or 1000):\n search_url = self.url + 'api?' + urllib.urlencode(params)\n logger.log(u\"Search url: \" + search_url, logger.DEBUG)\n data = self.cache.getRSSFeed(search_url)" } ]
SickRage
7613bdc7ad16eb70b756f8f1d50ce3a942447fb0
37ef85e16c2a15d46047e7893026565588857aaa
sickbeard/__init__.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -678,7 +678,7 @@ def initialize(consoleLogging=True): KEEP_PROCESSED_DIR = bool(check_setting_int(CFG, 'General', 'keep_processed_dir', 1)) PROCESS_METHOD = check_setting_str(CFG, 'General', 'process_method', 'copy' if KEEP_PROCESSED_DIR else 'move') MOVE_ASSOCIATED_FILES = bool(check_setting_int(CFG, 'General', 'move_associated_files', 0)) - POSTPONE_IF_SYNC_FILES = bool(check_setting_int(CFG, 'General', 'postpone_if_sync_files', 0)) + POSTPONE_IF_SYNC_FILES = bool(check_setting_int(CFG, 'General', 'postpone_if_sync_files', 1)) NFO_RENAME = bool(check_setting_int(CFG, 'General', 'nfo_rename', 1)) CREATE_MISSING_SHOW_DIRS = bool(check_setting_int(CFG, 'General', 'create_missing_show_dirs', 0)) ADD_SHOWS_WO_DIR = bool(check_setting_int(CFG, 'General', 'add_shows_wo_dir', 0))
POSTPONE_IF_SYNC_FILES = bool ( check_setting_int ( CFG , 'General' , 'postpone_if_sync_files' , 0 ) )
POSTPONE_IF_SYNC_FILES = bool ( check_setting_int ( CFG , 'General' , 'postpone_if_sync_files' , 1 ) )
CHANGE_NUMERIC_LITERAL
[["Update", ["integer:0", 3, 99, 3, 100], "1"]]
jackkiej/SickRage@7613bdc7ad16eb70b756f8f1d50ce3a942447fb0
Fix default post processing with sync files option
[ { "sha": "de9c05cc2d1e7295c1ab8a54b9cfc9b73f532444", "filename": "sickbeard/__init__.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/7613bdc7ad16eb70b756f8f1d50ce3a942447fb0/sickbeard%2F__init__.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/7613bdc7ad16eb70b756f8f1d50ce3a942447fb0/sickbeard%2F__init__.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2F__init__.py?ref=7613bdc7ad16eb70b756f8f1d50ce3a942447fb0", "patch": "@@ -678,7 +678,7 @@ def initialize(consoleLogging=True):\n KEEP_PROCESSED_DIR = bool(check_setting_int(CFG, 'General', 'keep_processed_dir', 1))\n PROCESS_METHOD = check_setting_str(CFG, 'General', 'process_method', 'copy' if KEEP_PROCESSED_DIR else 'move')\n MOVE_ASSOCIATED_FILES = bool(check_setting_int(CFG, 'General', 'move_associated_files', 0))\n- POSTPONE_IF_SYNC_FILES = bool(check_setting_int(CFG, 'General', 'postpone_if_sync_files', 0))\n+ POSTPONE_IF_SYNC_FILES = bool(check_setting_int(CFG, 'General', 'postpone_if_sync_files', 1))\n NFO_RENAME = bool(check_setting_int(CFG, 'General', 'nfo_rename', 1))\n CREATE_MISSING_SHOW_DIRS = bool(check_setting_int(CFG, 'General', 'create_missing_show_dirs', 0))\n ADD_SHOWS_WO_DIR = bool(check_setting_int(CFG, 'General', 'add_shows_wo_dir', 0))" } ]
SickRage
f5a6d45d8f8cecb3ee5884e8eba5bdb0a38961e8
1e8233d43059758799361621e9f3cf9b0a55b0a2
sickbeard/searchBacklog.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -85,7 +85,7 @@ class BacklogSearcher: fromDate = datetime.date.fromordinal(1) if not which_shows and not curDate - self._lastBacklog >= self.cycleTime: - logger.log(u"Running limited backlog on missed episodes " + sickbeard.BACKLOG_DAYS + " day(s) and older only") + logger.log(u"Running limited backlog on missed episodes " + str(sickbeard.BACKLOG_DAYS) + " day(s) and older only") fromDate = datetime.date.today() - datetime.timedelta(days=sickbeard) self.amActive = True
logger . log ( u"Running limited backlog on missed episodes " + sickbeard . BACKLOG_DAYS + " day(s) and older only" )
logger . log ( u"Running limited backlog on missed episodes " + str ( sickbeard . BACKLOG_DAYS ) + " day(s) and older only" )
ADD_FUNCTION_AROUND_EXPRESSION
[["Insert", ["binary_operator", 3, 24, 3, 95], ["call", "N0"], 2], ["Insert", "N0", ["identifier:str", "T"], 0], ["Insert", "N0", ["argument_list", "N1"], 1], ["Insert", "N1", ["(:(", "T"], 0], ["Move", "N1", ["attribute", 3, 73, 3, 95], 1], ["Insert", "N1", ["):)", "T"], 2]]
jackkiej/SickRage@f5a6d45d8f8cecb3ee5884e8eba5bdb0a38961e8
Fixed unicode error
[ { "sha": "031472edb3b351d40294f56653974b5efe5b8095", "filename": "sickbeard/searchBacklog.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/f5a6d45d8f8cecb3ee5884e8eba5bdb0a38961e8/sickbeard%2FsearchBacklog.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/f5a6d45d8f8cecb3ee5884e8eba5bdb0a38961e8/sickbeard%2FsearchBacklog.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2FsearchBacklog.py?ref=f5a6d45d8f8cecb3ee5884e8eba5bdb0a38961e8", "patch": "@@ -85,7 +85,7 @@ def searchBacklog(self, which_shows=None):\n fromDate = datetime.date.fromordinal(1)\n \n if not which_shows and not curDate - self._lastBacklog >= self.cycleTime:\n- logger.log(u\"Running limited backlog on missed episodes \" + sickbeard.BACKLOG_DAYS + \" day(s) and older only\")\n+ logger.log(u\"Running limited backlog on missed episodes \" + str(sickbeard.BACKLOG_DAYS) + \" day(s) and older only\")\n fromDate = datetime.date.today() - datetime.timedelta(days=sickbeard)\n \n self.amActive = True" } ]
SickRage
4bfb271e8d447c2aad5b42cdbcbb37c3dc95f62f
c65385da96b00561e04893fdbabdc91c2f988df6
sickbeard/providers/generic.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -207,7 +207,7 @@ class GenericProvider: results = {} for ep in episode: - results += self.cache.findNeededEpisodes(ep) + results.copy(self.cache.findNeededEpisodes(ep)) return results
results += self . cache . findNeededEpisodes ( ep )
results . copy ( self . cache . findNeededEpisodes ( ep ) )
SINGLE_STMT
[["Insert", ["expression_statement", 3, 13, 3, 57], ["call", "N0"], 0], ["Insert", "N0", ["attribute", "N1"], 0], ["Insert", "N0", ["argument_list", "N2"], 1], ["Move", "N1", ["identifier:results", 3, 13, 3, 20], 0], ["Insert", "N1", [".:.", "T"], 1], ["Insert", "N1", ["identifier:copy", "T"], 2], ["Insert", "N2", ["(:(", "T"], 0], ["Move", "N2", ["call", 3, 24, 3, 57], 1], ["Insert", "N2", ["):)", "T"], 2], ["Delete", ["+=:+=", 3, 21, 3, 23]], ["Delete", ["augmented_assignment", 3, 13, 3, 57]]]
jackkiej/SickRage@4bfb271e8d447c2aad5b42cdbcbb37c3dc95f62f
Can't += dicts. Need to dict.copy() Bug in master while doing daily search: https://sickrage.tv/forums/forum/help-support/bug-issue-reports/8358-unsupported-operand-type-s-for-dict-and-dict
[ { "sha": "a58c14a59937a0b3a3a1a4cc972a751242630c74", "filename": "sickbeard/providers/generic.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/4bfb271e8d447c2aad5b42cdbcbb37c3dc95f62f/sickbeard%2Fproviders%2Fgeneric.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/4bfb271e8d447c2aad5b42cdbcbb37c3dc95f62f/sickbeard%2Fproviders%2Fgeneric.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Fgeneric.py?ref=4bfb271e8d447c2aad5b42cdbcbb37c3dc95f62f", "patch": "@@ -207,7 +207,7 @@ def searchRSS(self, episode):\n results = {}\n \n for ep in episode:\n- results += self.cache.findNeededEpisodes(ep)\n+ results.copy(self.cache.findNeededEpisodes(ep))\n \n return results\n " } ]
SickRage
47cd8b53f0d83ae72c0b4996c9a1eb76d5243d64
c65385da96b00561e04893fdbabdc91c2f988df6
sickbeard/searchBacklog.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -86,7 +86,7 @@ class BacklogSearcher: if not which_shows and not curDate - self._lastBacklog >= self.cycleTime: logger.log(u"Running limited backlog on missed episodes " + str(sickbeard.BACKLOG_DAYS) + " day(s) and older only") - fromDate = datetime.date.today() - datetime.timedelta(days=sickbeard) + fromDate = datetime.date.today() - datetime.timedelta(days=sickbeard.BACKLOG_DAYS) self.amActive = True self.amPaused = False
fromDate = datetime . date . today ( ) - datetime . timedelta ( days = sickbeard )
fromDate = datetime . date . today ( ) - datetime . timedelta ( days = sickbeard . BACKLOG_DAYS )
ADD_ATTRIBUTE_ACCESS
[["Insert", ["keyword_argument", 3, 67, 3, 81], ["attribute", "N0"], 2], ["Move", "N0", ["identifier:sickbeard", 3, 72, 3, 81], 0], ["Insert", "N0", [".:.", "T"], 1], ["Insert", "N0", ["identifier:BACKLOG_DAYS", "T"], 2]]
jackkiej/SickRage@47cd8b53f0d83ae72c0b4996c9a1eb76d5243d64
Fixed typo in searchBacklog. Introduced with search from delta functionality.
[ { "sha": "ee171e8a356ef14443c8e7112bc79b4202e4e6ac", "filename": "sickbeard/searchBacklog.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/47cd8b53f0d83ae72c0b4996c9a1eb76d5243d64/sickbeard%2FsearchBacklog.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/47cd8b53f0d83ae72c0b4996c9a1eb76d5243d64/sickbeard%2FsearchBacklog.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2FsearchBacklog.py?ref=47cd8b53f0d83ae72c0b4996c9a1eb76d5243d64", "patch": "@@ -86,7 +86,7 @@ def searchBacklog(self, which_shows=None):\n \n if not which_shows and not curDate - self._lastBacklog >= self.cycleTime:\n logger.log(u\"Running limited backlog on missed episodes \" + str(sickbeard.BACKLOG_DAYS) + \" day(s) and older only\")\n- fromDate = datetime.date.today() - datetime.timedelta(days=sickbeard)\n+ fromDate = datetime.date.today() - datetime.timedelta(days=sickbeard.BACKLOG_DAYS)\n \n self.amActive = True\n self.amPaused = False" } ]
SickRage
7e3b9848bd87a58b93d5a9273f832ebfed758d62
3f10a9e34f7f29c2ccbb4588b9e742909aafd11c
sickbeard/providers/nyaatorrents.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -52,7 +52,7 @@ class NyaaProvider(generic.TorrentProvider): def getQuality(self, item, anime=False): title = item.title - quality = Quality.sceneQuality(title) + quality = Quality.sceneQuality(title, anime) return quality def findSearchResults(self, show, episodes, search_mode, manualSearch=False):
quality = Quality . sceneQuality ( title )
quality = Quality . sceneQuality ( title , anime )
SAME_FUNCTION_MORE_ARGS
[["Insert", ["argument_list", 3, 39, 3, 46], [",:,", "T"], 2], ["Insert", ["argument_list", 3, 39, 3, 46], ["identifier:anime", "T"], 3]]
jackkiej/SickRage@7e3b9848bd87a58b93d5a9273f832ebfed758d62
Fixed the qualityparsing for nyaatorrent search results
[ { "sha": "88d93f9db4c6a734dea06b82b5c22d92486214d3", "filename": "sickbeard/providers/nyaatorrents.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/7e3b9848bd87a58b93d5a9273f832ebfed758d62/sickbeard%2Fproviders%2Fnyaatorrents.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/7e3b9848bd87a58b93d5a9273f832ebfed758d62/sickbeard%2Fproviders%2Fnyaatorrents.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Fnyaatorrents.py?ref=7e3b9848bd87a58b93d5a9273f832ebfed758d62", "patch": "@@ -52,7 +52,7 @@ def imageName(self):\n \n def getQuality(self, item, anime=False):\n title = item.title\n- quality = Quality.sceneQuality(title)\n+ quality = Quality.sceneQuality(title, anime)\n return quality\n \n def findSearchResults(self, show, episodes, search_mode, manualSearch=False):" } ]
SickRage
7ba97b6b01a00389572174a02e1adef723e1be88
3f10a9e34f7f29c2ccbb4588b9e742909aafd11c
sickbeard/providers/kat.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -194,7 +194,7 @@ class KATProvider(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@7ba97b6b01a00389572174a02e1adef723e1be88
Update kat.py Fix search string for air-by-date to only return episodes for the date searched.
[ { "sha": "dc13922e735408cc52f99a399e1e7861719b110f", "filename": "sickbeard/providers/kat.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/7ba97b6b01a00389572174a02e1adef723e1be88/sickbeard%2Fproviders%2Fkat.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/7ba97b6b01a00389572174a02e1adef723e1be88/sickbeard%2Fproviders%2Fkat.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Fkat.py?ref=7ba97b6b01a00389572174a02e1adef723e1be88", "patch": "@@ -194,7 +194,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
6a17ffae3c7f1125125effaf74daca0cd4d87e30
41deb957fd8ede3a02629cf217338a505220c7f9
sickbeard/clients/transmission.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -107,7 +107,7 @@ class TransmissionAPI(GenericClient): def _set_torrent_seed_time(self, result): if sickbeard.TORRENT_SEED_TIME: - time = 60 * float(sickbeard.TORRENT_SEED_TIME) + time = int(60 * float(sickbeard.TORRENT_SEED_TIME)) arguments = {'ids': [result.hash], 'seedIdleLimit': time, 'seedIdleMode': 1
time = 60 * float ( sickbeard . TORRENT_SEED_TIME )
time = int ( 60 * float ( sickbeard . TORRENT_SEED_TIME ) )
ADD_FUNCTION_AROUND_EXPRESSION
[["Insert", ["assignment", 3, 13, 3, 59], ["call", "N0"], 2], ["Insert", "N0", ["identifier:int", "T"], 0], ["Insert", "N0", ["argument_list", "N1"], 1], ["Insert", "N1", ["(:(", "T"], 0], ["Move", "N1", ["binary_operator", 3, 20, 3, 59], 1], ["Insert", "N1", ["):)", "T"], 2]]
jackkiej/SickRage@6a17ffae3c7f1125125effaf74daca0cd4d87e30
fix transmission seed time
[ { "sha": "50fd4b5024b12395e62f3f1d632227b005eda29e", "filename": "sickbeard/clients/transmission.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/6a17ffae3c7f1125125effaf74daca0cd4d87e30/sickbeard%2Fclients%2Ftransmission.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/6a17ffae3c7f1125125effaf74daca0cd4d87e30/sickbeard%2Fclients%2Ftransmission.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fclients%2Ftransmission.py?ref=6a17ffae3c7f1125125effaf74daca0cd4d87e30", "patch": "@@ -107,7 +107,7 @@ def _set_torrent_ratio(self, result):\n def _set_torrent_seed_time(self, result):\n \n if sickbeard.TORRENT_SEED_TIME:\n- time = 60 * float(sickbeard.TORRENT_SEED_TIME)\n+ time = int(60 * float(sickbeard.TORRENT_SEED_TIME))\n arguments = {'ids': [result.hash],\n 'seedIdleLimit': time,\n 'seedIdleMode': 1" } ]
SickRage
3c9f1d754d52673434278b46eba5287f493cbdd3
80e03a147550226fde869fc2c1f0fb270e7b3549
lib/tvrage_api/tvrage_api.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -592,7 +592,7 @@ class TVRage: ) # check and make sure we have data to process and that it contains a series name - if not len(seriesInfoEt) or (isinstance(seriesInfoEt, dict) and 'seriesname' not in seriesInfoEt['series']): + if not len(seriesInfoEt) or (isinstance(seriesInfoEt, dict) and 'seriesname' not in seriesInfoEt): return False for k, v in seriesInfoEt.items():
if not len ( seriesInfoEt ) or ( isinstance ( seriesInfoEt , dict ) and 'seriesname' not in seriesInfoEt [ 'series' ] ) : return False
if not len ( seriesInfoEt ) or ( isinstance ( seriesInfoEt , dict ) and 'seriesname' not in seriesInfoEt ) : return False
SINGLE_STMT
[["Move", ["comparison_operator", 3, 73, 3, 115], ["identifier:seriesInfoEt", 3, 93, 3, 105], 3], ["Delete", ["[:[", 3, 105, 3, 106]], ["Delete", ["string:'series'", 3, 106, 3, 114]], ["Delete", ["]:]", 3, 114, 3, 115]], ["Delete", ["subscript", 3, 93, 3, 115]]]
jackkiej/SickRage@3c9f1d754d52673434278b46eba5287f493cbdd3
Fixes shows not being added from tvrage
[ { "sha": "adaded13f7133908fcc27d0a8e12e1295668e86e", "filename": "lib/tvrage_api/tvrage_api.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/3c9f1d754d52673434278b46eba5287f493cbdd3/lib%2Ftvrage_api%2Ftvrage_api.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/3c9f1d754d52673434278b46eba5287f493cbdd3/lib%2Ftvrage_api%2Ftvrage_api.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/lib%2Ftvrage_api%2Ftvrage_api.py?ref=3c9f1d754d52673434278b46eba5287f493cbdd3", "patch": "@@ -592,7 +592,7 @@ def _getShowData(self, sid, getEpInfo=False):\n )\n \n # check and make sure we have data to process and that it contains a series name\n- if not len(seriesInfoEt) or (isinstance(seriesInfoEt, dict) and 'seriesname' not in seriesInfoEt['series']):\n+ if not len(seriesInfoEt) or (isinstance(seriesInfoEt, dict) and 'seriesname' not in seriesInfoEt):\n return False\n \n for k, v in seriesInfoEt.items():" } ]
SickRage
a72779d5d31147f1d31e51f5819a11efd28d5ca2
cadec21304b939f15ffaf24c7e42079234e4c25b
sickbeard/providers/omgwtfnzbs.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -97,7 +97,7 @@ class OmgwtfnzbsProvider(generic.NZBProvider): def _get_title_and_url(self, item): return (item['release'], item['getnzb']) - def _doSearch(self, search, epcount=0, retention=0): + def _doSearch(self, search, search_mode='eponly', epcount=0, retention=0): self._checkAuth()
def _doSearch ( self , search , epcount = 0 , retention = 0 ) : self . _checkAuth ( )
def _doSearch ( self , search , search_mode = 'eponly' , epcount = 0 , retention = 0 ) : self . _checkAuth ( )
SINGLE_STMT
[["Insert", ["parameters", 3, 18, 3, 56], ["default_parameter", "N0"], 5], ["Insert", ["parameters", 3, 18, 3, 56], [",:,", "T"], 6], ["Insert", "N0", ["identifier:search_mode", "T"], 0], ["Insert", "N0", ["=:=", "T"], 1], ["Insert", "N0", ["string:'eponly'", "T"], 2]]
jackkiej/SickRage@a72779d5d31147f1d31e51f5819a11efd28d5ca2
Fix omgwtfnzb provider retention = 1 bug
[ { "sha": "07a7872fcca1b357d52f0073c1d358a71a8fec85", "filename": "sickbeard/providers/omgwtfnzbs.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/a72779d5d31147f1d31e51f5819a11efd28d5ca2/sickbeard%2Fproviders%2Fomgwtfnzbs.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/a72779d5d31147f1d31e51f5819a11efd28d5ca2/sickbeard%2Fproviders%2Fomgwtfnzbs.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Fomgwtfnzbs.py?ref=a72779d5d31147f1d31e51f5819a11efd28d5ca2", "patch": "@@ -97,7 +97,7 @@ def _get_episode_search_strings(self, ep_obj, add_string=''):\n def _get_title_and_url(self, item):\n return (item['release'], item['getnzb'])\n \n- def _doSearch(self, search, epcount=0, retention=0):\n+ def _doSearch(self, search, search_mode='eponly', epcount=0, retention=0):\n \n self._checkAuth()\n " } ]
SickRage
c26eb396957ec09be592ce4ea86d9cd5f4ef0fda
ef621a3b170977e7b2e45a5b107327e31b56f768
sickbeard/tvcache.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -51,7 +51,7 @@ class CacheDBConnection(db.DBConnection): self.action("DELETE FROM [" + providerName + "] WHERE url = ?", [cur_dupe["url"]]) # add unique index to prevent further dupes from happening if one does not exist - self.action("CREATE UNIQUE INDEX IF NOT EXISTS idx_url ON " + providerName + " (url)") + self.action("CREATE UNIQUE INDEX IF NOT EXISTS idx_url ON [" + providerName + "] (url)") # add release_group column to table if missing if not self.hasColumn(providerName, 'release_group'):
self . action ( "CREATE UNIQUE INDEX IF NOT EXISTS idx_url ON " + providerName + " (url)" )
self . action ( "CREATE UNIQUE INDEX IF NOT EXISTS idx_url ON [" + providerName + "] (url)" )
SINGLE_STMT
[["Update", ["string:\" (url)\"", 3, 90, 3, 98], "\"] (url)\""], ["Update", ["string:\"CREATE UNIQUE INDEX IF NOT EXISTS idx_url ON \"", 3, 25, 3, 72], "\"CREATE UNIQUE INDEX IF NOT EXISTS idx_url ON [\""]]
jackkiej/SickRage@c26eb396957ec09be592ce4ea86d9cd5f4ef0fda
Fix for custom newznab providers with leading integer in name
[ { "sha": "0eb638fd24730ede1c97456be59c7770f2138ceb", "filename": "sickbeard/tvcache.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/c26eb396957ec09be592ce4ea86d9cd5f4ef0fda/sickbeard%2Ftvcache.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/c26eb396957ec09be592ce4ea86d9cd5f4ef0fda/sickbeard%2Ftvcache.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Ftvcache.py?ref=c26eb396957ec09be592ce4ea86d9cd5f4ef0fda", "patch": "@@ -51,7 +51,7 @@ def __init__(self, providerName):\n self.action(\"DELETE FROM [\" + providerName + \"] WHERE url = ?\", [cur_dupe[\"url\"]])\n \n # add unique index to prevent further dupes from happening if one does not exist\n- self.action(\"CREATE UNIQUE INDEX IF NOT EXISTS idx_url ON \" + providerName + \" (url)\")\n+ self.action(\"CREATE UNIQUE INDEX IF NOT EXISTS idx_url ON [\" + providerName + \"] (url)\")\n \n # add release_group column to table if missing\n if not self.hasColumn(providerName, 'release_group'):" } ]
SickRage
ea3a16598794f7031eac8aea8524486eb22efc64
cbe4548cbcc1475e15544bbff74e0cda96351a5f
sickbeard/__init__.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -602,7 +602,7 @@ def initialize(consoleLogging=True): ANON_REDIRECT = check_setting_str(CFG, 'General', 'anon_redirect', 'http://dereferer.org/?') PROXY_SETTING = check_setting_str(CFG, 'General', 'proxy_setting', '') - PROXY_INDEXERS = bool(check_setting_str(CFG, 'General', 'proxy_indexers', 1)) + PROXY_INDEXERS = bool(check_setting_int(CFG, 'General', 'proxy_indexers', 1)) # attempt to help prevent users from breaking links by using a bad url if not ANON_REDIRECT.endswith('?'): ANON_REDIRECT = ''
PROXY_INDEXERS = bool ( check_setting_str ( CFG , 'General' , 'proxy_indexers' , 1 ) )
PROXY_INDEXERS = bool ( check_setting_int ( CFG , 'General' , 'proxy_indexers' , 1 ) )
WRONG_FUNCTION_NAME
[["Update", ["identifier:check_setting_str", 3, 31, 3, 48], "check_setting_int"]]
jackkiej/SickRage@ea3a16598794f7031eac8aea8524486eb22efc64
fix not loading proxy_indexers config
[ { "sha": "40b693431eb5d3effd9b7949ec0aab0947c681a7", "filename": "sickbeard/__init__.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/ea3a16598794f7031eac8aea8524486eb22efc64/sickbeard%2F__init__.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/ea3a16598794f7031eac8aea8524486eb22efc64/sickbeard%2F__init__.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2F__init__.py?ref=ea3a16598794f7031eac8aea8524486eb22efc64", "patch": "@@ -602,7 +602,7 @@ def initialize(consoleLogging=True):\n \n ANON_REDIRECT = check_setting_str(CFG, 'General', 'anon_redirect', 'http://dereferer.org/?')\n PROXY_SETTING = check_setting_str(CFG, 'General', 'proxy_setting', '')\n- PROXY_INDEXERS = bool(check_setting_str(CFG, 'General', 'proxy_indexers', 1))\n+ PROXY_INDEXERS = bool(check_setting_int(CFG, 'General', 'proxy_indexers', 1))\n # attempt to help prevent users from breaking links by using a bad url \n if not ANON_REDIRECT.endswith('?'):\n ANON_REDIRECT = ''" } ]
SickRage
297e69094aa3e1c0e236b446f6d53d1ec86d5555
3e958ca0e1a517f542b130709a0859956811e737
sickbeard/providers/iptorrents.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -174,7 +174,7 @@ class IPTorrentsProvider(generic.TorrentProvider): continue try: - data = re.sub(r'<button.+?<[\/]button>', '', data, 0, re.IGNORECASE | re.MULTILINE) + data = re.sub(r'(?im)<button.+?<[\/]button>', '', data, 0) with BS4Parser(data, features=["html5lib", "permissive"]) as html: if not html: logger.log(u"Invalid HTML data: " + str(data), logger.DEBUG)
data = re . sub ( r'<button.+?<[\/]button>' , '' , data , 0 , re . IGNORECASE | re . MULTILINE )
data = re . sub ( r'(?im)<button.+?<[\/]button>' , '' , data , 0 )
SINGLE_STMT
[["Move", ["string:''", 3, 62, 3, 64], ["argument_list", 3, 34, 3, 104], 4], ["Move", ["identifier:data", 3, 66, 3, 70], ["argument_list", 3, 34, 3, 104], 7], ["Move", ["integer:0", 3, 72, 3, 73], ["argument_list", 3, 34, 3, 104], 9], ["Update", ["string:r'<button.+?<[\\/]button>'", 3, 35, 3, 60], "r'(?im)<button.+?<[\\/]button>'"], ["Delete", [",:,", 3, 60, 3, 61]], ["Delete", ["identifier:re", 3, 75, 3, 77]], ["Delete", [".:.", 3, 77, 3, 78]], ["Delete", ["identifier:IGNORECASE", 3, 78, 3, 88]], ["Delete", ["attribute", 3, 75, 3, 88]], ["Delete", ["|:|", 3, 89, 3, 90]], ["Delete", ["identifier:re", 3, 91, 3, 93]], ["Delete", [".:.", 3, 93, 3, 94]], ["Delete", ["identifier:MULTILINE", 3, 94, 3, 103]], ["Delete", ["attribute", 3, 91, 3, 103]], ["Delete", ["binary_operator", 3, 75, 3, 103]]]
jackkiej/SickRage@297e69094aa3e1c0e236b446f6d53d1ec86d5555
Fixed regex issue
[ { "sha": "cab576ca3645b32ba9e989d25e8bf980f0962716", "filename": "sickbeard/providers/iptorrents.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/297e69094aa3e1c0e236b446f6d53d1ec86d5555/sickbeard%2Fproviders%2Fiptorrents.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/297e69094aa3e1c0e236b446f6d53d1ec86d5555/sickbeard%2Fproviders%2Fiptorrents.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Fiptorrents.py?ref=297e69094aa3e1c0e236b446f6d53d1ec86d5555", "patch": "@@ -174,7 +174,7 @@ def _doSearch(self, search_params, search_mode='eponly', epcount=0, age=0):\n continue\n \n try:\n- data = re.sub(r'<button.+?<[\\/]button>', '', data, 0, re.IGNORECASE | re.MULTILINE)\n+ data = re.sub(r'(?im)<button.+?<[\\/]button>', '', data, 0)\n with BS4Parser(data, features=[\"html5lib\", \"permissive\"]) as html:\n if not html:\n logger.log(u\"Invalid HTML data: \" + str(data), logger.DEBUG)" } ]
SickRage
aa76734f56c1b0f2f23cfd0f0432a5aac3969b52
1f168c18c20fdb2c9103fe4f9a92e253784a2486
sickbeard/webserve.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -270,7 +270,7 @@ class MainHandler(RequestHandler): image_file_name = None if which == 'poster': image_file_name = cache_obj.poster_path(show) - if which == 'poster_thumb': + if which == 'poster_thumb' or which == 'small': image_file_name = cache_obj.poster_thumb_path(show) if which == 'banner': image_file_name = cache_obj.banner_path(show)
if which == 'poster_thumb' : image_file_name = cache_obj . poster_thumb_path ( show )
if which == 'poster_thumb' or which == 'small' : image_file_name = cache_obj . poster_thumb_path ( show )
LESS_SPECIFIC_IF
[["Insert", ["if_statement", 3, 13, 4, 68], ["boolean_operator", "N0"], 1], ["Move", "N0", ["comparison_operator", 3, 16, 3, 39], 0], ["Insert", "N0", ["or:or", "T"], 1], ["Insert", "N0", ["comparison_operator", "N1"], 2], ["Insert", "N1", ["identifier:which", "T"], 0], ["Insert", "N1", ["==:==", "T"], 1], ["Insert", "N1", ["string:'small'", "T"], 2]]
jackkiej/SickRage@aa76734f56c1b0f2f23cfd0f0432a5aac3969b52
Fix for bug #898, fixes issues with show image overlay when using small poster layout
[ { "sha": "f5ae630411a619ae766378b213bb594ab47303f0", "filename": "sickbeard/webserve.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/aa76734f56c1b0f2f23cfd0f0432a5aac3969b52/sickbeard%2Fwebserve.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/aa76734f56c1b0f2f23cfd0f0432a5aac3969b52/sickbeard%2Fwebserve.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fwebserve.py?ref=aa76734f56c1b0f2f23cfd0f0432a5aac3969b52", "patch": "@@ -270,7 +270,7 @@ def showPoster(self, show=None, which=None):\n image_file_name = None\n if which == 'poster':\n image_file_name = cache_obj.poster_path(show)\n- if which == 'poster_thumb':\n+ if which == 'poster_thumb' or which == 'small':\n image_file_name = cache_obj.poster_thumb_path(show)\n if which == 'banner':\n image_file_name = cache_obj.banner_path(show)" } ]
SickRage
6002722c7ea2e43817eee4ef74f1b81ef2f97695
83206726699b4a3cf94687fb73b5eede3abf4886
sickbeard/webapi.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -163,7 +163,7 @@ class Api(webserve.MainHandler): def _out_as_json(self, dict): self.set_header("Content-Type", "application/json") try: - out = json.dumps(dict, indent=self.intent, sort_keys=True) + out = json.dumps(dict, indent=self.intent,ensure_ascii=False,sort_keys=True) if 'jsonp' in self.request.query_arguments: out = self.request.arguments['jsonp'] + '(' + out + ');' # wrap with JSONP call if requested
out = json . dumps ( dict , indent = self . intent , sort_keys = True )
out = json . dumps ( dict , indent = self . intent , ensure_ascii = False , sort_keys = True )
SAME_FUNCTION_MORE_ARGS
[["Insert", ["argument_list", 3, 29, 3, 71], ["keyword_argument", "N0"], 5], ["Insert", ["argument_list", 3, 29, 3, 71], [",:,", "T"], 6], ["Insert", "N0", ["identifier:ensure_ascii", "T"], 0], ["Insert", "N0", ["=:=", "T"], 1], ["Insert", "N0", ["false:False", "T"], 2]]
jackkiej/SickRage@6002722c7ea2e43817eee4ef74f1b81ef2f97695
Fix invalid continuation byte for webapi I get this error when using API: {"result":"error", "message": "error while composing output: "utf8 : terça 9:00 : error 3 : error 4 : invalid continuation byte"} There's a special char "TERÇA" Don't know why this happens. I had a special date style and even after change it to "yyyy-mm-dd" this error still happens. Don't know why the api builder is still using the translated week day. Also timezone is set to "network" This error only happens when missing/future has "terça" - Tuesday and "sábado" - saturday weekdays. The other week days there's no special char.
[ { "sha": "bfd051fa4246551d3738324faae67141863710b1", "filename": "sickbeard/webapi.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/6002722c7ea2e43817eee4ef74f1b81ef2f97695/sickbeard%2Fwebapi.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/6002722c7ea2e43817eee4ef74f1b81ef2f97695/sickbeard%2Fwebapi.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fwebapi.py?ref=6002722c7ea2e43817eee4ef74f1b81ef2f97695", "patch": "@@ -163,7 +163,7 @@ def titler(x):\n def _out_as_json(self, dict):\n self.set_header(\"Content-Type\", \"application/json\")\n try:\n- out = json.dumps(dict, indent=self.intent, sort_keys=True)\n+ out = json.dumps(dict, indent=self.intent,ensure_ascii=False,sort_keys=True)\n if 'jsonp' in self.request.query_arguments:\n out = self.request.arguments['jsonp'] + '(' + out + ');' # wrap with JSONP call if requested\n " } ]
SickRage
04a83ac3fb79dce1bc657f869e6de6562a046c51
83206726699b4a3cf94687fb73b5eede3abf4886
sickbeard/scene_exceptions.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -155,7 +155,7 @@ def get_scene_exception_by_name_multiple(show_name): if out: return out - return (None, None) + return [(None, None)] def retrieve_exceptions():
return ( None , None )
return [ ( None , None ) ]
SINGLE_STMT
[["Insert", ["return_statement", 3, 5, 3, 24], ["list", "N0"], 1], ["Insert", "N0", ["[:[", "T"], 0], ["Move", "N0", ["tuple", 3, 12, 3, 24], 1], ["Insert", "N0", ["]:]", "T"], 2]]
jackkiej/SickRage@04a83ac3fb79dce1bc657f869e6de6562a046c51
Fix for anime processing issues
[ { "sha": "65eefec7323e6b231239358fd1f48f1ec72c99c9", "filename": "sickbeard/scene_exceptions.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/04a83ac3fb79dce1bc657f869e6de6562a046c51/sickbeard%2Fscene_exceptions.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/04a83ac3fb79dce1bc657f869e6de6562a046c51/sickbeard%2Fscene_exceptions.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fscene_exceptions.py?ref=04a83ac3fb79dce1bc657f869e6de6562a046c51", "patch": "@@ -155,7 +155,7 @@ def get_scene_exception_by_name_multiple(show_name):\n if out:\n return out\n \n- return (None, None)\n+ return [(None, None)]\n \n \n def retrieve_exceptions():" } ]
SickRage
ed4c99b6f08baed55454c83823693c0b26c6bb08
04a83ac3fb79dce1bc657f869e6de6562a046c51
tests/scene_helpers_tests.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -105,7 +105,7 @@ class SceneExceptionTestCase(test.SickbeardTestDBCase): self.assertEqual(scene_exceptions.get_scene_exception_by_name('Carlos 2010'), (164451, -1)) def test_sceneExceptionByNameEmpty(self): - self.assertEqual(scene_exceptions.get_scene_exception_by_name('nothing useful'), None) + self.assertEqual(scene_exceptions.get_scene_exception_by_name('nothing useful'), (None, None)) def test_sceneExceptionsResetNameCache(self): # clear the exceptions
self . assertEqual ( scene_exceptions . get_scene_exception_by_name ( 'nothing useful' ) , None )
self . assertEqual ( scene_exceptions . get_scene_exception_by_name ( 'nothing useful' ) , ( None , None ) )
SINGLE_STMT
[["Insert", ["argument_list", 3, 25, 3, 95], ["tuple", "N0"], 3], ["Insert", ["argument_list", 3, 25, 3, 95], ["):)", "T"], 4], ["Insert", "N0", ["(:(", "T"], 0], ["Move", "N0", ["none:None", 3, 90, 3, 94], 1], ["Insert", "N0", [",:,", "T"], 2], ["Insert", "N0", ["none:None", "T"], 3], ["Move", "N0", ["):)", 3, 94, 3, 95], 4]]
jackkiej/SickRage@ed4c99b6f08baed55454c83823693c0b26c6bb08
Fixed issue with scene exception tests
[ { "sha": "f008930c43308cd12fa02a84d6ca1089065b54d9", "filename": "tests/scene_helpers_tests.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/ed4c99b6f08baed55454c83823693c0b26c6bb08/tests%2Fscene_helpers_tests.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/ed4c99b6f08baed55454c83823693c0b26c6bb08/tests%2Fscene_helpers_tests.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/tests%2Fscene_helpers_tests.py?ref=ed4c99b6f08baed55454c83823693c0b26c6bb08", "patch": "@@ -105,7 +105,7 @@ def test_sceneExceptionByName(self):\n self.assertEqual(scene_exceptions.get_scene_exception_by_name('Carlos 2010'), (164451, -1))\n \n def test_sceneExceptionByNameEmpty(self):\n- self.assertEqual(scene_exceptions.get_scene_exception_by_name('nothing useful'), None)\n+ self.assertEqual(scene_exceptions.get_scene_exception_by_name('nothing useful'), (None, None))\n \n def test_sceneExceptionsResetNameCache(self):\n # clear the exceptions" } ]
SickRage
6f61e25fb35517b9f03d4c89cc2643afd1b6b0fa
78a862099ae3ce9671db68f9ae6aa2d3b602c884
sickbeard/notifiers/trakt.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -82,7 +82,7 @@ class TraktNotifier: } if trakt_id == 'tvdb_id': - data['shows'][trakt_id] = ep_obj.show.indexerid + data['shows'][0][trakt_id] = ep_obj.show.indexerid trakt_api.traktRequest("show/unwatchlist/%APIKEY%", data)
data [ 'shows' ] [ trakt_id ] = ep_obj . show . indexerid
data [ 'shows' ] [ 0 ] [ trakt_id ] = ep_obj . show . indexerid
SINGLE_STMT
[["Move", ["subscript", 3, 25, 3, 38], ["subscript", 3, 25, 3, 38], 0], ["Insert", ["subscript", 3, 25, 3, 38], ["[:[", "T"], 1], ["Insert", ["subscript", 3, 25, 3, 38], ["integer:0", "T"], 2], ["Insert", ["subscript", 3, 25, 3, 38], ["]:]", "T"], 3]]
jackkiej/SickRage@6f61e25fb35517b9f03d4c89cc2643afd1b6b0fa
Fix for issue #891 - Trakt notifications failing
[ { "sha": "331a65879b1a63ef251eb0f29b65c196149688dd", "filename": "sickbeard/notifiers/trakt.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/6f61e25fb35517b9f03d4c89cc2643afd1b6b0fa/sickbeard%2Fnotifiers%2Ftrakt.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/6f61e25fb35517b9f03d4c89cc2643afd1b6b0fa/sickbeard%2Fnotifiers%2Ftrakt.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fnotifiers%2Ftrakt.py?ref=6f61e25fb35517b9f03d4c89cc2643afd1b6b0fa", "patch": "@@ -82,7 +82,7 @@ def update_library(self, ep_obj):\n }\n \n if trakt_id == 'tvdb_id':\n- data['shows'][trakt_id] = ep_obj.show.indexerid\n+ data['shows'][0][trakt_id] = ep_obj.show.indexerid\n \n trakt_api.traktRequest(\"show/unwatchlist/%APIKEY%\", data)\n " } ]
salt_finder_charts
0b14bf669baa78fd76d69f2ee2ad4e070ec81b72
47c333658bf949ddf7c05e790bb9c8aecdfa442a
src/salt_finder_charts/cli.py
https://github.com/saltastroops/salt_finder_charts
true
false
false
@@ -69,7 +69,7 @@ from salt_finder_charts.util import julian_day_start, julian_day_end "--survey", type=click.Choice([survey.value for survey in Survey], case_sensitive=False), default="POSS2/UKSTU Red", - help="survey to use for the findder chart image", + help="survey to use for the finder chart image", ) @click.option("--title", type=str, help="title for the finder chart") @click.version_option(__version__)
help = "survey to use for the findder chart image" ,
help = "survey to use for the finder chart image" ,
CHANGE_STRING_LITERAL
[["Update", ["string:\"survey to use for the findder chart image\"", 3, 10, 3, 53], "\"survey to use for the finder chart image\""]]
saltastroops/salt_finder_charts@0b14bf669baa78fd76d69f2ee2ad4e070ec81b72
null
null
salt_finder_charts
3f6a43e8ac2511086fe1c863a71e5c29852552c9
044d5018c6eb1231bdf4c2a6edfc088671ae424d
src/salt_finder_charts/ephemerides.py
https://github.com/saltastroops/salt_finder_charts
true
false
false
@@ -353,7 +353,7 @@ class HorizonsEphemerisService(EphemerisService): dec = float(ephemerides["DEC"][row]) * u.deg ra_rate = float(ephemerides["RA_rate"][row]) * u.arcsec / u.hour dec_rate = ephemerides["DEC_rate"][row] * u.arcsec / u.hour - magnitude = ephemerides["V"][row] + magnitude = ephemerides["V"][row] if "V" in ephemerides.keys() else 0 magnitude_range = MagnitudeRange( min_magnitude=magnitude, max_magnitude=magnitude, bandpass="V" )
magnitude = ephemerides [ "V" ] [ row ]
magnitude = ephemerides [ "V" ] [ row ] if "V" in ephemerides . keys ( ) else 0
SINGLE_STMT
[["Insert", ["assignment", 3, 13, 3, 46], ["conditional_expression", "N0"], 2], ["Move", "N0", ["subscript", 3, 25, 3, 46], 0], ["Insert", "N0", ["if:if", "T"], 1], ["Insert", "N0", ["comparison_operator", "N1"], 2], ["Insert", "N0", ["else:else", "T"], 3], ["Insert", "N0", ["integer:0", "T"], 4], ["Insert", "N1", ["string:\"V\"", "T"], 0], ["Insert", "N1", ["in:in", "T"], 1], ["Insert", "N1", ["call", "N2"], 2], ["Insert", "N2", ["attribute", "N3"], 0], ["Insert", "N2", ["argument_list", "N4"], 1], ["Insert", "N3", ["identifier:ephemerides", "T"], 0], ["Insert", "N3", [".:.", "T"], 1], ["Insert", "N3", ["identifier:keys", "T"], 2], ["Insert", "N4", ["(:(", "T"], 0], ["Insert", "N4", ["):)", "T"], 1]]
saltastroops/salt_finder_charts@3f6a43e8ac2511086fe1c863a71e5c29852552c9
null
null
NeteaseCloudMusicFlac
9485f0d168dac9f7a048496c66e80d1f1b673ad1
e38ad0c494c44653aa88eb4d996a016b8ac94cf3
main.py
https://github.com/zhoujiamurong/NeteaseCloudMusicFlac
true
false
false
@@ -64,7 +64,7 @@ for value in mm: songname = d["data"]["songList"][0]["songName"] artistName = d["data"]["songList"][0]["artistName"] filename = "./" + songdir + "/"+songname+"-"+artistName+".flac" - print filename + " is downing now ......\n\n" + print filename + " is downloading now ......\n\n" f = urllib2.urlopen(songlink) with open(filename, "wb") as code:
print filename + " is downing now ......\n\n"
print filename + " is downloading now ......\n\n"
CHANGE_BINARY_OPERAND
[["Update", ["string:\" is downing now ......\\n\\n\"", 3, 22, 3, 50], "\" is downloading now ......\\n\\n\""]]
zhoujiamurong/NeteaseCloudMusicFlac@9485f0d168dac9f7a048496c66e80d1f1b673ad1
Main.py: Fix spelling.
[ { "sha": "472b30fedd397d52e3371067b72b63a23c82683f", "filename": "main.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/zhoujiamurong/NeteaseCloudMusicFlac/blob/9485f0d168dac9f7a048496c66e80d1f1b673ad1/main.py", "raw_url": "https://github.com/zhoujiamurong/NeteaseCloudMusicFlac/raw/9485f0d168dac9f7a048496c66e80d1f1b673ad1/main.py", "contents_url": "https://api.github.com/repos/zhoujiamurong/NeteaseCloudMusicFlac/contents/main.py?ref=9485f0d168dac9f7a048496c66e80d1f1b673ad1", "patch": "@@ -64,7 +64,7 @@\n songname = d[\"data\"][\"songList\"][0][\"songName\"]\n artistName = d[\"data\"][\"songList\"][0][\"artistName\"]\n filename = \"./\" + songdir + \"/\"+songname+\"-\"+artistName+\".flac\"\n- print filename + \" is downing now ......\\n\\n\"\n+ print filename + \" is downloading now ......\\n\\n\"\n \n f = urllib2.urlopen(songlink)\n with open(filename, \"wb\") as code:" } ]
NeteaseCloudMusicFlac
c95bc7ef07dc49c697a2fa1ff1381f987c8915b9
6eac392dc7fa07a062350cd1844c07abfaa0a5d6
main.py
https://github.com/zhoujiamurong/NeteaseCloudMusicFlac
true
false
false
@@ -40,7 +40,7 @@ for value in mm: r = requests.get(url, params=payload) contents = r.text d = json.loads(contents, encoding="utf-8") - if d is not None and 'data' not in d or d['data'] == '': + if d is not None and 'data' not in d or d['data'] == '' or d['data']["songList"] == '': continue songlink = d["data"]["songList"][0]["songLink"] print "find songlink: "
if d is not None and 'data' not in d or d [ 'data' ] == '' : continue
if d is not None and 'data' not in d or d [ 'data' ] == '' or d [ 'data' ] [ "songList" ] == '' : continue
LESS_SPECIFIC_IF
[["Move", ["boolean_operator", 3, 8, 3, 60], ["boolean_operator", 3, 8, 3, 60], 0], ["Insert", ["boolean_operator", 3, 8, 3, 60], ["or:or", "T"], 1], ["Insert", ["boolean_operator", 3, 8, 3, 60], ["comparison_operator", "N0"], 2], ["Insert", "N0", ["subscript", "N1"], 0], ["Insert", "N0", ["==:==", "T"], 1], ["Insert", "N0", ["string:''", "T"], 2], ["Insert", "N1", ["subscript", "N2"], 0], ["Insert", "N1", ["[:[", "T"], 1], ["Insert", "N1", ["string:\"songList\"", "T"], 2], ["Insert", "N1", ["]:]", "T"], 3], ["Insert", "N2", ["identifier:d", "T"], 0], ["Insert", "N2", ["[:[", "T"], 1], ["Insert", "N2", ["string:'data'", "T"], 2], ["Insert", "N2", ["]:]", "T"], 3]]
zhoujiamurong/NeteaseCloudMusicFlac@c95bc7ef07dc49c697a2fa1ff1381f987c8915b9
ErrorHandle: Add nil detect.
[ { "sha": "fd77525ac9893254085c6db696a8eb3faf26195b", "filename": "main.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/zhoujiamurong/NeteaseCloudMusicFlac/blob/c95bc7ef07dc49c697a2fa1ff1381f987c8915b9/main.py", "raw_url": "https://github.com/zhoujiamurong/NeteaseCloudMusicFlac/raw/c95bc7ef07dc49c697a2fa1ff1381f987c8915b9/main.py", "contents_url": "https://api.github.com/repos/zhoujiamurong/NeteaseCloudMusicFlac/contents/main.py?ref=c95bc7ef07dc49c697a2fa1ff1381f987c8915b9", "patch": "@@ -40,7 +40,7 @@\n r = requests.get(url, params=payload)\n contents = r.text\n d = json.loads(contents, encoding=\"utf-8\")\n- if d is not None and 'data' not in d or d['data'] == '':\n+ if d is not None and 'data' not in d or d['data'] == '' or d['data'][\"songList\"] == '':\n continue\n songlink = d[\"data\"][\"songList\"][0][\"songLink\"]\n print \"find songlink: \"" } ]
plonebuild
caf06d792f64ffe100ad978600917c79554a1f4a
cb9505cbd297eaa7f12c28470bdc56934f59d145
src/osdetect.py
https://github.com/upiq/plonebuild
true
false
true
@@ -25,7 +25,7 @@ def osdetect(buildout): for platform in platforms: for part, key in variants.get(platform, []): - if part in buildout: + if part in buildout._raw: continue buildout._raw[part] = buildout._raw[key].copy()
if part in buildout : continue
if part in buildout . _raw : continue
ADD_ATTRIBUTE_ACCESS
[["Insert", ["comparison_operator", 3, 16, 3, 32], ["attribute", "N0"], 2], ["Move", "N0", ["identifier:buildout", 3, 24, 3, 32], 0], ["Insert", "N0", [".:.", "T"], 1], ["Insert", "N0", ["identifier:_raw", "T"], 2]]
upiq/plonebuild@caf06d792f64ffe100ad978600917c79554a1f4a
null
null
plonebuild
b039f444f0f8fd7cfce3bfa3ee270ed95562a6f6
981a1fd0f02df585f05f6120303ede78ff9fe4fd
src/test-python.py
https://github.com/upiq/plonebuild
true
false
true
@@ -7,6 +7,6 @@ def test(options, buildout): if not os.path.exists(python): raise IOError("There is no file at %s" % python) if sys.platform == 'darwin': - output = Popen([python, "-c", "import platform; print platform.mac_ver()"], stdout=PIPE).communicate()[0] + output = Popen([python, "-c", "import platform; print (platform.mac_ver())"], stdout=PIPE).communicate()[0] if not output.startswith("('10."): raise IOError("Your python at %s doesn't return proper data for platform.mac_ver(), got: %s" % (python, output))
output = Popen ( [ python , "-c" , "import platform; print platform.mac_ver()" ] , stdout = PIPE ) . communicate ( ) [ 0 ]
output = Popen ( [ python , "-c" , "import platform; print (platform.mac_ver())" ] , stdout = PIPE ) . communicate ( ) [ 0 ]
CHANGE_STRING_LITERAL
[["Update", ["string:\"import platform; print platform.mac_ver()\"", 3, 39, 3, 82], "\"import platform; print (platform.mac_ver())\""]]
upiq/plonebuild@b039f444f0f8fd7cfce3bfa3ee270ed95562a6f6
null
null
outputty
ce2ac43392f7f495cb4de66aab10f756401d2f80
484ff26b4a98f06ba6b0a529850af57e52057e87
tests/test_Histogram.py
https://github.com/pombredanne/outputty
true
false
false
@@ -10,7 +10,7 @@ from numpy.random import normal from textwrap import dedent -class TestTableTxt(unittest.TestCase): +class TestHistogram(unittest.TestCase): def test_horizontal_histogram(self): seed(1234) # Setting the seed to get repeatable results d = normal(size=1000)
class TestTableTxt ( unittest . TestCase ) : def test_horizontal_histogram ( self ) : seed ( 1234 ) d = normal ( size = 1000 )
class TestHistogram ( unittest . TestCase ) : def test_horizontal_histogram ( self ) : seed ( 1234 ) d = normal ( size = 1000 )
SINGLE_TOKEN
[["Update", ["identifier:TestTableTxt", 3, 7, 3, 19], "TestHistogram"]]
pombredanne/outputty@ce2ac43392f7f495cb4de66aab10f756401d2f80
FIX: name of the histogram TestCase
[ { "sha": "de770fe8a5eb2c1f375d8d0f26bb344575ef3adb", "filename": "tests/test_Histogram.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/pombredanne/outputty/blob/ce2ac43392f7f495cb4de66aab10f756401d2f80/tests%2Ftest_Histogram.py", "raw_url": "https://github.com/pombredanne/outputty/raw/ce2ac43392f7f495cb4de66aab10f756401d2f80/tests%2Ftest_Histogram.py", "contents_url": "https://api.github.com/repos/pombredanne/outputty/contents/tests%2Ftest_Histogram.py?ref=ce2ac43392f7f495cb4de66aab10f756401d2f80", "patch": "@@ -10,7 +10,7 @@\n from textwrap import dedent\n \n \n-class TestTableTxt(unittest.TestCase):\n+class TestHistogram(unittest.TestCase):\n def test_horizontal_histogram(self):\n seed(1234) # Setting the seed to get repeatable results\n d = normal(size=1000)" } ]
outputty
d41f1b46ad87d408e200506c15c0d8576a542be3
32b0bc4da1b69a818f52270080a03b48eba038f6
tests/test_Table_histogram.py
https://github.com/pombredanne/outputty
true
false
true
@@ -11,7 +11,7 @@ from textwrap import dedent class TestHistogram(unittest.TestCase): - def test_horizontal_histogram(self): + def test_vertical_histogram(self): seed(1234) # Setting the seed to get repeatable results numbers = normal(size=1000) my_table = Table(headers=['values'])
def test_horizontal_histogram ( self ) : seed ( 1234 ) numbers = normal ( size = 1000 ) my_table = Table ( headers = [ 'values' ] )
def test_vertical_histogram ( self ) : seed ( 1234 ) numbers = normal ( size = 1000 ) my_table = Table ( headers = [ 'values' ] )
SINGLE_TOKEN
[["Update", ["identifier:test_horizontal_histogram", 3, 9, 3, 34], "test_vertical_histogram"]]
pombredanne/outputty@d41f1b46ad87d408e200506c15c0d8576a542be3
FIX: wrong name of test in Table_histogram
[ { "sha": "fe87de494ff8ac41b92be8ca25853e8deeab3f5e", "filename": "tests/test_Table_histogram.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/pombredanne/outputty/blob/d41f1b46ad87d408e200506c15c0d8576a542be3/tests%2Ftest_Table_histogram.py", "raw_url": "https://github.com/pombredanne/outputty/raw/d41f1b46ad87d408e200506c15c0d8576a542be3/tests%2Ftest_Table_histogram.py", "contents_url": "https://api.github.com/repos/pombredanne/outputty/contents/tests%2Ftest_Table_histogram.py?ref=d41f1b46ad87d408e200506c15c0d8576a542be3", "patch": "@@ -11,7 +11,7 @@\n \n \n class TestHistogram(unittest.TestCase):\n- def test_horizontal_histogram(self):\n+ def test_vertical_histogram(self):\n seed(1234) # Setting the seed to get repeatable results\n numbers = normal(size=1000)\n my_table = Table(headers=['values'])" } ]
SickRage
8742b5825f79e938f2a1cb639c45c8c906f4de3c
dd58028ba66b1cf5c109672a1cfb157e104dc194
sickbeard/webserve.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -1979,7 +1979,7 @@ class NewHomeAddShows: indexers = sickbeard.indexerApi().indexers if not int(indexer) else [int(indexer or 0)] # Query Indexers for each search term and build the list of results - for indexer in indexers(): + for indexer in indexers: lINDEXER_API_PARMS = sickbeard.indexerApi(indexer).api_params.copy() lINDEXER_API_PARMS['custom_ui'] = classes.AllShowsListUI t = sickbeard.indexerApi(indexer).indexer(**lINDEXER_API_PARMS)
for indexer in indexers ( ) : lINDEXER_API_PARMS = sickbeard . indexerApi ( indexer ) . api_params . copy ( ) lINDEXER_API_PARMS [ 'custom_ui' ] = classes . AllShowsListUI t = sickbeard . indexerApi ( indexer ) . indexer ( ** lINDEXER_API_PARMS )
for indexer in indexers : lINDEXER_API_PARMS = sickbeard . indexerApi ( indexer ) . api_params . copy ( ) lINDEXER_API_PARMS [ 'custom_ui' ] = classes . AllShowsListUI t = sickbeard . indexerApi ( indexer ) . indexer ( ** lINDEXER_API_PARMS )
SINGLE_STMT
[["Move", ["for_statement", 3, 9, 6, 76], ["identifier:indexers", 3, 24, 3, 32], 3], ["Delete", ["(:(", 3, 32, 3, 33]], ["Delete", ["):)", 3, 33, 3, 34]], ["Delete", ["argument_list", 3, 32, 3, 34]], ["Delete", ["call", 3, 24, 3, 34]]]
jackkiej/SickRage@8742b5825f79e938f2a1cb639c45c8c906f4de3c
Bug found and fixed in New Show search related to improperly requesting list of indexers to search through
[ { "sha": "2fa26b570000486a65665c3576815f5aba5ab042", "filename": "sickbeard/webserve.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/8742b5825f79e938f2a1cb639c45c8c906f4de3c/sickbeard%2Fwebserve.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/8742b5825f79e938f2a1cb639c45c8c906f4de3c/sickbeard%2Fwebserve.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fwebserve.py?ref=8742b5825f79e938f2a1cb639c45c8c906f4de3c", "patch": "@@ -1979,7 +1979,7 @@ def searchIndexersForShowName(self, name, lang=\"en\", indexer=None):\n indexers = sickbeard.indexerApi().indexers if not int(indexer) else [int(indexer or 0)]\n \n # Query Indexers for each search term and build the list of results\n- for indexer in indexers():\n+ for indexer in indexers:\n lINDEXER_API_PARMS = sickbeard.indexerApi(indexer).api_params.copy()\n lINDEXER_API_PARMS['custom_ui'] = classes.AllShowsListUI\n t = sickbeard.indexerApi(indexer).indexer(**lINDEXER_API_PARMS)" } ]
SickRage
97db8fd408380721325a7cda8a428415546806be
06913ea5173285b396cd9d15358e91e450744cab
sickbeard/databases/cache_db.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -68,7 +68,7 @@ class AddXemNumbering(AddNetworkTimezones): def execute(self): self.connection.action( - "CREATE TABLE xem_numbering (indexer TEXT, indexer_id INTEGER, season INTEGER, episode INTEGER, scene_season INTEGER, scene_episode INTEGER, PRIMARY KEY (indexer_id, season, episode))") + "CREATE TABLE xem_numbering (indexer TEXT, indexer_id INTEGER, season INTEGER, episode INTEGER, scene_season INTEGER, scene_episode INTEGER, PRIMARY KEY (indexer, indexer_id, season, episode))") class AddXemRefresh(AddXemNumbering):
self . connection . action ( "CREATE TABLE xem_numbering (indexer TEXT, indexer_id INTEGER, season INTEGER, episode INTEGER, scene_season INTEGER, scene_episode INTEGER, PRIMARY KEY (indexer_id, season, episode))" )
self . connection . action ( "CREATE TABLE xem_numbering (indexer TEXT, indexer_id INTEGER, season INTEGER, episode INTEGER, scene_season INTEGER, scene_episode INTEGER, PRIMARY KEY (indexer, indexer_id, season, episode))" )
CHANGE_STRING_LITERAL
[["Update", ["string:\"CREATE TABLE xem_numbering (indexer TEXT, indexer_id INTEGER, season INTEGER, episode INTEGER, scene_season INTEGER, scene_episode INTEGER, PRIMARY KEY (indexer_id, season, episode))\"", 3, 13, 3, 197], "\"CREATE TABLE xem_numbering (indexer TEXT, indexer_id INTEGER, season INTEGER, episode INTEGER, scene_season INTEGER, scene_episode INTEGER, PRIMARY KEY (indexer, indexer_id, season, episode))\""]]
jackkiej/SickRage@97db8fd408380721325a7cda8a428415546806be
Fixed IntegrityError caused by primary key not being unique
[ { "sha": "b0938d9b8aee0620aa944c0c36d469fff151aa8b", "filename": "sickbeard/databases/cache_db.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/97db8fd408380721325a7cda8a428415546806be/sickbeard%2Fdatabases%2Fcache_db.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/97db8fd408380721325a7cda8a428415546806be/sickbeard%2Fdatabases%2Fcache_db.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fdatabases%2Fcache_db.py?ref=97db8fd408380721325a7cda8a428415546806be", "patch": "@@ -68,7 +68,7 @@ def test(self):\n \n def execute(self):\n self.connection.action(\n- \"CREATE TABLE xem_numbering (indexer TEXT, indexer_id INTEGER, season INTEGER, episode INTEGER, scene_season INTEGER, scene_episode INTEGER, PRIMARY KEY (indexer_id, season, episode))\")\n+ \"CREATE TABLE xem_numbering (indexer TEXT, indexer_id INTEGER, season INTEGER, episode INTEGER, scene_season INTEGER, scene_episode INTEGER, PRIMARY KEY (indexer, indexer_id, season, episode))\")\n \n \n class AddXemRefresh(AddXemNumbering):" } ]
SickRage
c309e8afc91426ec8c4150e78cfe40c73af821d0
42f88b3b3fb04692790d93d328c9811fe3798c5a
lib/cachecontrol/controller.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -191,7 +191,7 @@ class CacheController(object): return if self.sess.cache_auto and ('cache-control' not in resp.headers or 'Cache-Control' not in resp.headers): - cache_max_age = int(self.sess.cache_max_age) or 900 + cache_max_age = int(self.sess.cache_max_age or 900) headers = {'Cache-Control': 'public,max-age=%d' % int(cache_max_age)} resp.headers.update(headers)
cache_max_age = int ( self . sess . cache_max_age ) or 900
cache_max_age = int ( self . sess . cache_max_age or 900 )
SINGLE_STMT
[["Move", ["assignment", 3, 13, 3, 64], ["call", 3, 29, 3, 57], 2], ["Move", ["argument_list", 3, 32, 3, 57], ["boolean_operator", 3, 29, 3, 64], 1], ["Move", ["boolean_operator", 3, 29, 3, 64], ["attribute", 3, 33, 3, 56], 0]]
jackkiej/SickRage@c309e8afc91426ec8c4150e78cfe40c73af821d0
Fixed bug in cache controller
[ { "sha": "680479a30c1ece0adaa128fe0431114db832f764", "filename": "lib/cachecontrol/controller.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/c309e8afc91426ec8c4150e78cfe40c73af821d0/lib%2Fcachecontrol%2Fcontroller.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/c309e8afc91426ec8c4150e78cfe40c73af821d0/lib%2Fcachecontrol%2Fcontroller.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/lib%2Fcachecontrol%2Fcontroller.py?ref=c309e8afc91426ec8c4150e78cfe40c73af821d0", "patch": "@@ -191,7 +191,7 @@ def cache_response(self, request, resp):\n return\n \n if self.sess.cache_auto and ('cache-control' not in resp.headers or 'Cache-Control' not in resp.headers):\n- cache_max_age = int(self.sess.cache_max_age) or 900\n+ cache_max_age = int(self.sess.cache_max_age or 900)\n headers = {'Cache-Control': 'public,max-age=%d' % int(cache_max_age)}\n resp.headers.update(headers)\n " } ]
SickRage
97942542a4d8373e16132cf491a544fa960c850e
558684cca7605dc4c2c3058d1f92e13f23881bd3
sickbeard/metadata/mede8er.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -305,7 +305,7 @@ class Mede8erMetadata(mediabrowser.MediaBrowserMetadata): mpaa.text = myShow["contentrating"] if not ep_obj.relatedEps: - if myEp["rating"] != None: + if getattr(myEp, "rating", None) != None: try: rating = int((float(myEp['rating']) * 10)) except ValueError:
if myEp [ "rating" ] != None : try : rating = int ( ( float ( myEp [ 'rating' ] ) * 10 ) ) except ValueError :
if getattr ( myEp , "rating" , None ) != None : try : rating = int ( ( float ( myEp [ 'rating' ] ) * 10 ) ) except ValueError :
SINGLE_STMT
[["Insert", ["comparison_operator", 3, 24, 3, 46], ["call", "N0"], 0], ["Insert", ["comparison_operator", 3, 24, 3, 46], ["none:None", "T"], 3], ["Insert", "N0", ["identifier:getattr", "T"], 0], ["Insert", "N0", ["argument_list", "N1"], 1], ["Insert", "N1", ["(:(", "T"], 0], ["Move", "N1", ["identifier:myEp", 3, 24, 3, 28], 1], ["Insert", "N1", [",:,", "T"], 2], ["Move", "N1", ["string:\"rating\"", 3, 29, 3, 37], 3], ["Insert", "N1", [",:,", "T"], 4], ["Move", "N1", ["none:None", 3, 42, 3, 46], 5], ["Insert", "N1", ["):)", "T"], 6], ["Delete", ["[:[", 3, 28, 3, 29]], ["Delete", ["]:]", 3, 37, 3, 38]], ["Delete", ["subscript", 3, 24, 3, 38]]]
jackkiej/SickRage@97942542a4d8373e16132cf491a544fa960c850e
Fix mede8er rating info - Changed mede8er myEp['rating'] assignment.
[ { "sha": "c71395a7cf6dc36fb557143fb9fb6c4661a94d52", "filename": "sickbeard/metadata/mede8er.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/97942542a4d8373e16132cf491a544fa960c850e/sickbeard%2Fmetadata%2Fmede8er.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/97942542a4d8373e16132cf491a544fa960c850e/sickbeard%2Fmetadata%2Fmede8er.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fmetadata%2Fmede8er.py?ref=97942542a4d8373e16132cf491a544fa960c850e", "patch": "@@ -305,7 +305,7 @@ def _ep_data(self, ep_obj):\n mpaa.text = myShow[\"contentrating\"]\r\n \r\n if not ep_obj.relatedEps:\r\n- if myEp[\"rating\"] != None:\r\n+ if getattr(myEp, \"rating\", None) != None:\r\n try:\r\n rating = int((float(myEp['rating']) * 10))\r\n except ValueError:\r" } ]
SickRage
242cc49ed799e4b5aae2936bad34fbc04d91833f
9408edfc0b3879d807acba186767dbc37ac197dc
sickbeard/processTV.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -377,7 +377,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 extracted, check the parent folder and destination file permissions.".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 extracted, check the parent folder and destination file permissions." . 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 extracted, check the parent folder and destination file permissions.\""]]
jackkiej/SickRage@242cc49ed799e4b5aae2936bad34fbc04d91833f
unrar: change the error message to be more helpful.
[ { "sha": "c963d91c63777a67438819c04555782ec31cad4c", "filename": "sickbeard/processTV.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/242cc49ed799e4b5aae2936bad34fbc04d91833f/sickbeard%2FprocessTV.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/242cc49ed799e4b5aae2936bad34fbc04d91833f/sickbeard%2FprocessTV.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2FprocessTV.py?ref=242cc49ed799e4b5aae2936bad34fbc04d91833f", "patch": "@@ -377,7 +377,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 extracted, check the parent folder and destination file permissions.\".format(archive), logger.ERROR)\n result.result = False\n continue\n except GenericRARError:" } ]
SickRage
f3d6ecff1d3292d715efeb341b2240e3c74fcd43
e2a646fdbcade3512de242e156f2237a5c88b34b
sickbeard/clients/generic.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -151,7 +151,7 @@ class GenericClient(object): else: try: torrent_bdecode = bdecode(result.content) - except Exception as e: + except BTFailure as e: logger.log('Unable to bdecode torrent', logger.ERROR) logger.log('Torrent bencoded data: {0}'.format(str(result.content)), logger.DEBUG) raise
except Exception as e : logger . log ( 'Unable to bdecode torrent' , logger . ERROR )
except BTFailure as e : logger . log ( 'Unable to bdecode torrent' , logger . ERROR )
CHANGE_IDENTIFIER_USED
[["Update", ["identifier:Exception", 3, 20, 3, 29], "BTFailure"]]
jackkiej/SickRage@f3d6ecff1d3292d715efeb341b2240e3c74fcd43
Revert "Hotfix - Remove BTFailure and add Exception"
[ { "sha": "662eecbf5c73143417beb2e7615bc2114cd95e76", "filename": "sickbeard/clients/generic.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/f3d6ecff1d3292d715efeb341b2240e3c74fcd43/sickbeard%2Fclients%2Fgeneric.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/f3d6ecff1d3292d715efeb341b2240e3c74fcd43/sickbeard%2Fclients%2Fgeneric.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fclients%2Fgeneric.py?ref=f3d6ecff1d3292d715efeb341b2240e3c74fcd43", "patch": "@@ -151,7 +151,7 @@ def _get_torrent_hash(self, result):\n else:\n try:\n torrent_bdecode = bdecode(result.content)\n- except Exception as e:\n+ except BTFailure as e:\n logger.log('Unable to bdecode torrent', logger.ERROR)\n logger.log('Torrent bencoded data: {0}'.format(str(result.content)), logger.DEBUG)\n raise" } ]
SickRage
7cc1a3a5b723e9292dbfc7455a93d251e3ee709e
78a615500883ff9b0371b6da5065203019059efb
sickbeard/webserve.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -1087,7 +1087,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, 48, 3, 67], "\"restart.tmpl\""]]
jackkiej/SickRage@7cc1a3a5b723e9292dbfc7455a93d251e3ee709e
Fix restart page
[ { "sha": "bac2496be9fdbe38ff4224e691b15aa09289cb3d", "filename": "sickbeard/webserve.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/7cc1a3a5b723e9292dbfc7455a93d251e3ee709e/sickbeard%2Fwebserve.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/7cc1a3a5b723e9292dbfc7455a93d251e3ee709e/sickbeard%2Fwebserve.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fwebserve.py?ref=7cc1a3a5b723e9292dbfc7455a93d251e3ee709e", "patch": "@@ -1087,7 +1087,7 @@ def update(self, pid=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
db8fc5dfb05fe26dea6cf88cc47432874ac68c4a
e6fb632bfe0734043b3c5d77883d68726a175469
sickbeard/logger.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -199,7 +199,7 @@ class Logger(object): gist = 'No ERROR found' message = u"### INFO\n" - message += u"Python Version: **" + sys.version[:120] + "**\n" + message += u"Python Version: **" + sys.version[:120].replace('\n','') + "**\n" message += u"Operating System: **" + platform.platform() + "**\n" if not 'Windows' in platform.platform(): try:
message += u"Python Version: **" + sys . version [ : 120 ] + "**\n"
message += u"Python Version: **" + sys . version [ : 120 ] . replace ( '\n' , '' ) + "**\n"
ADD_METHOD_CALL
[["Insert", ["binary_operator", 3, 28, 3, 69], ["call", "N0"], 2], ["Insert", "N0", ["attribute", "N1"], 0], ["Insert", "N0", ["argument_list", "N2"], 1], ["Move", "N1", ["subscript", 3, 52, 3, 69], 0], ["Insert", "N1", [".:.", "T"], 1], ["Insert", "N1", ["identifier:replace", "T"], 2], ["Insert", "N2", ["(:(", "T"], 0], ["Insert", "N2", ["string:'\\n'", "T"], 1], ["Insert", "N2", [",:,", "T"], 2], ["Insert", "N2", ["string:''", "T"], 3], ["Insert", "N2", ["):)", "T"], 4]]
jackkiej/SickRage@db8fc5dfb05fe26dea6cf88cc47432874ac68c4a
Remove newline from Python Version All submitted issues the shows: 2.7.x (default, Mar 18 2014, 05:13:23) [GCC 4.6.3]
[ { "sha": "726614d2a582867e93175b601e0b5d4e518f12e4", "filename": "sickbeard/logger.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/db8fc5dfb05fe26dea6cf88cc47432874ac68c4a/sickbeard%2Flogger.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/db8fc5dfb05fe26dea6cf88cc47432874ac68c4a/sickbeard%2Flogger.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Flogger.py?ref=db8fc5dfb05fe26dea6cf88cc47432874ac68c4a", "patch": "@@ -199,7 +199,7 @@ def submit_errors(self):\n gist = 'No ERROR found'\n \n message = u\"### INFO\\n\"\n- message += u\"Python Version: **\" + sys.version[:120] + \"**\\n\"\n+ message += u\"Python Version: **\" + sys.version[:120].replace('\\n','') + \"**\\n\"\n message += u\"Operating System: **\" + platform.platform() + \"**\\n\"\n if not 'Windows' in platform.platform():\n try:" } ]
SickRage
28c3ea21ee3e2cce83b8da24d17539a146755fae
cc4896e96a27dda5cc9ed198209aa514bf68a4eb
sickbeard/postProcessor.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -183,7 +183,7 @@ class PostProcessor(object): base_name = re.sub(r'[\[\]\*\?]', r'[\g<0>]', base_name) if subfolders: - filelist = ek.ek(recursive_glob, self.folder_path, base_name + '*') + filelist = ek.ek(recursive_glob, ek.ek(os.path.dirname, file_path), base_name + '*') else: filelist = ek.ek(glob.glob, base_name + '*') for associated_file_path in filelist:
filelist = ek . ek ( recursive_glob , self . folder_path , base_name + '*' )
filelist = ek . ek ( recursive_glob , ek . ek ( os . path . dirname , file_path ) , base_name + '*' )
SINGLE_STMT
[["Insert", ["argument_list", 3, 29, 3, 81], ["call", "N0"], 3], ["Insert", ["argument_list", 3, 29, 3, 81], [",:,", "T"], 4], ["Move", "N0", ["attribute", 3, 46, 3, 62], 0], ["Insert", "N0", ["argument_list", "N1"], 1], ["Update", ["identifier:self", 3, 46, 3, 50], "ek"], ["Update", ["identifier:folder_path", 3, 51, 3, 62], "ek"], ["Insert", "N1", ["(:(", "T"], 0], ["Insert", "N1", ["attribute", "N2"], 1], ["Move", "N1", [",:,", 3, 62, 3, 63], 2], ["Insert", "N1", ["identifier:file_path", "T"], 3], ["Insert", "N1", ["):)", "T"], 4], ["Insert", "N2", ["attribute", "N3"], 0], ["Insert", "N2", [".:.", "T"], 1], ["Insert", "N2", ["identifier:dirname", "T"], 2], ["Insert", "N3", ["identifier:os", "T"], 0], ["Insert", "N3", [".:.", "T"], 1], ["Insert", "N3", ["identifier:path", "T"], 2]]
jackkiej/SickRage@28c3ea21ee3e2cce83b8da24d17539a146755fae
Fix List_associated_files checking wrong folder - List_associated_files would check the wrong folder when deleting files - Fixes issue when downloaded file has the same namepattern as the old file. Would then proceed to delete the new file. Hotfix, merge with master and develop
[ { "sha": "8bbe2922e7752304b6f93f7bdff6b7e8ed246acc", "filename": "sickbeard/postProcessor.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/28c3ea21ee3e2cce83b8da24d17539a146755fae/sickbeard%2FpostProcessor.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/28c3ea21ee3e2cce83b8da24d17539a146755fae/sickbeard%2FpostProcessor.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2FpostProcessor.py?ref=28c3ea21ee3e2cce83b8da24d17539a146755fae", "patch": "@@ -183,7 +183,7 @@ def recursive_glob(treeroot, pattern):\n base_name = re.sub(r'[\\[\\]\\*\\?]', r'[\\g<0>]', base_name)\n \n if subfolders:\n- filelist = ek.ek(recursive_glob, self.folder_path, base_name + '*')\n+ filelist = ek.ek(recursive_glob, ek.ek(os.path.dirname, file_path), base_name + '*')\n else:\n filelist = ek.ek(glob.glob, base_name + '*')\n for associated_file_path in filelist:" } ]
SickRage
0e2bd724276459071e4b4a8eab3696efb24f7d98
3b11079a5a658fdc8fe35de1ecadd572e06dc872
sickbeard/search.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -130,7 +130,7 @@ def snatchEpisode(result, endStatus=SNATCHED): if sickbeard.TORRENT_METHOD == "blackhole": dlResult = _downloadResult(result) else: - if result.content: + if result.content or result.url.startswith('magnet'): client = clients.getClientIstance(sickbeard.TORRENT_METHOD)() dlResult = client.sendTORRENT(result) else:
if result . content : client = clients . getClientIstance ( sickbeard . TORRENT_METHOD ) ( ) dlResult = client . sendTORRENT ( result ) else :
if result . content or result . url . startswith ( 'magnet' ) : client = clients . getClientIstance ( sickbeard . TORRENT_METHOD ) ( ) dlResult = client . sendTORRENT ( result ) else :
LESS_SPECIFIC_IF
[["Insert", ["if_statement", 3, 13, 6, 18], ["boolean_operator", "N0"], 1], ["Move", "N0", ["attribute", 3, 16, 3, 30], 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", ["attribute", "N4"], 0], ["Insert", "N2", [".:.", "T"], 1], ["Insert", "N2", ["identifier:startswith", "T"], 2], ["Insert", "N3", ["(:(", "T"], 0], ["Insert", "N3", ["string:'magnet'", "T"], 1], ["Insert", "N3", ["):)", "T"], 2], ["Insert", "N4", ["identifier:result", "T"], 0], ["Insert", "N4", [".:.", "T"], 1], ["Insert", "N4", ["identifier:url", "T"], 2]]
jackkiej/SickRage@0e2bd724276459071e4b4a8eab3696efb24f7d98
Fix error Torrent file content is empty on magnet torrent
[ { "sha": "ba379af7359bfc9e7abe87981c07b0573f0bbda3", "filename": "sickbeard/search.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/0e2bd724276459071e4b4a8eab3696efb24f7d98/sickbeard%2Fsearch.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/0e2bd724276459071e4b4a8eab3696efb24f7d98/sickbeard%2Fsearch.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fsearch.py?ref=0e2bd724276459071e4b4a8eab3696efb24f7d98", "patch": "@@ -130,7 +130,7 @@ def snatchEpisode(result, endStatus=SNATCHED):\n if sickbeard.TORRENT_METHOD == \"blackhole\":\r\n dlResult = _downloadResult(result)\r\n else:\r\n- if result.content:\r\n+ if result.content or result.url.startswith('magnet'):\r\n client = clients.getClientIstance(sickbeard.TORRENT_METHOD)()\r\n dlResult = client.sendTORRENT(result)\r\n else:\r" } ]
SickRage
a15325ef1aa029baa9b17185de7bd4b180d8ff23
4acac672c634170e6dfe7aee22578443a731ec2f
sickbeard/traktChecker.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -454,7 +454,7 @@ class TraktRolling(): if not self.refreshEpisodeWatched(): return False - num_of_download = sickbeard.TRAKT_NUM_EP + num_of_download = sickbeard.TRAKT_ROLLING_NUM_EP if not len(self.EpisodeWatched) or num_of_download == 0: return True
num_of_download = sickbeard . TRAKT_NUM_EP
num_of_download = sickbeard . TRAKT_ROLLING_NUM_EP
CHANGE_ATTRIBUTE_USED
[["Update", ["identifier:TRAKT_NUM_EP", 3, 37, 3, 49], "TRAKT_ROLLING_NUM_EP"]]
jackkiej/SickRage@a15325ef1aa029baa9b17185de7bd4b180d8ff23
Fix variable name
[ { "sha": "7c6c24c8095fdb88d82e107949bd2f862eea41c8", "filename": "sickbeard/traktChecker.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/a15325ef1aa029baa9b17185de7bd4b180d8ff23/sickbeard%2FtraktChecker.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/a15325ef1aa029baa9b17185de7bd4b180d8ff23/sickbeard%2FtraktChecker.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2FtraktChecker.py?ref=a15325ef1aa029baa9b17185de7bd4b180d8ff23", "patch": "@@ -454,7 +454,7 @@ def updateWantedList(self, indexer_id = None):\n if not self.refreshEpisodeWatched():\n return False\n \n- num_of_download = sickbeard.TRAKT_NUM_EP\n+ num_of_download = sickbeard.TRAKT_ROLLING_NUM_EP\n \n if not len(self.EpisodeWatched) or num_of_download == 0:\n return True" } ]
SickRage
3fa5a11ff55c26279027b894e291d22c7e14db35
84ecf352d0f034eb739f3a22354266319697d0fb
sickbeard/helpers.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -1514,7 +1514,7 @@ def verify_freespace(src, dest, oldfile=None): if oldfile: for file in oldfile: - if os.path.isfile(file.location): + if ek.ek(os.path.isfile, file.location): diskfree += ek.ek(os.path.getsize, file.location) if diskfree > neededspace:
if os . path . isfile ( file . location ) : diskfree += ek . ek ( os . path . getsize , file . location )
if ek . ek ( os . path . isfile , file . location ) : diskfree += ek . ek ( os . path . getsize , file . location )
SINGLE_STMT
[["Insert", ["call", 3, 16, 3, 45], ["attribute", "N0"], 0], ["Insert", ["call", 3, 16, 3, 45], ["argument_list", "N1"], 1], ["Insert", "N0", ["identifier:ek", "T"], 0], ["Insert", "N0", [".:.", "T"], 1], ["Insert", "N0", ["identifier:ek", "T"], 2], ["Insert", "N1", ["(:(", "T"], 0], ["Move", "N1", ["attribute", 3, 16, 3, 30], 1], ["Insert", "N1", [",:,", "T"], 2], ["Move", "N1", ["attribute", 3, 31, 3, 44], 3], ["Move", "N1", ["):)", 3, 44, 3, 45], 4], ["Delete", ["(:(", 3, 30, 3, 31]], ["Delete", ["argument_list", 3, 30, 3, 45]]]
jackkiej/SickRage@3fa5a11ff55c26279027b894e291d22c7e14db35
Fix unicode error in verify_freespace - Fixes unicode error by using EncodingKludge for isfile check instead of assuming it is unicode.
[ { "sha": "e6a8b20376e786dbe5528bb641c228d91a8c0d83", "filename": "sickbeard/helpers.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/3fa5a11ff55c26279027b894e291d22c7e14db35/sickbeard%2Fhelpers.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/3fa5a11ff55c26279027b894e291d22c7e14db35/sickbeard%2Fhelpers.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fhelpers.py?ref=3fa5a11ff55c26279027b894e291d22c7e14db35", "patch": "@@ -1514,7 +1514,7 @@ def disk_usage(path):\n \n if oldfile:\n for file in oldfile:\n- if os.path.isfile(file.location):\n+ if ek.ek(os.path.isfile, file.location):\n diskfree += ek.ek(os.path.getsize, file.location)\n \n if diskfree > neededspace:" } ]
SickRage
5463a0fc7c747a7e1a88eba850f1a4c9b579b9cb
f86661021531b590b2ad1e027313ad943e806556
lib/rtorrent/lib/xmlrpc/requests_transport.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -163,7 +163,7 @@ class RequestsTransport(xmlrpc_client.Transport): p, u = self.getparser() - p.feed(response.text) + p.feed(response.text.encode('utf-8')) p.close() return u.close()
p . feed ( response . text )
p . feed ( response . text . encode ( 'utf-8' ) )
ADD_METHOD_CALL
[["Insert", ["argument_list", 1, 15, 1, 30], ["call", "N0"], 1], ["Insert", ["argument_list", 1, 15, 1, 30], ["):)", "T"], 2], ["Insert", "N0", ["attribute", "N1"], 0], ["Insert", "N0", ["argument_list", "N2"], 1], ["Move", "N1", ["attribute", 1, 16, 1, 29], 0], ["Insert", "N1", [".:.", "T"], 1], ["Insert", "N1", ["identifier:encode", "T"], 2], ["Insert", "N2", ["(:(", "T"], 0], ["Insert", "N2", ["string:'utf-8'", "T"], 1], ["Move", "N2", ["):)", 1, 29, 1, 30], 2]]
jackkiej/SickRage@5463a0fc7c747a7e1a88eba850f1a4c9b579b9cb
rtorrent: Fix encoding issue in windows
[ { "sha": "9a4556773cff66b14e2f99e1af4f0d49157f1bb4", "filename": "lib/rtorrent/lib/xmlrpc/requests_transport.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/5463a0fc7c747a7e1a88eba850f1a4c9b579b9cb/lib%2Frtorrent%2Flib%2Fxmlrpc%2Frequests_transport.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/5463a0fc7c747a7e1a88eba850f1a4c9b579b9cb/lib%2Frtorrent%2Flib%2Fxmlrpc%2Frequests_transport.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/lib%2Frtorrent%2Flib%2Fxmlrpc%2Frequests_transport.py?ref=5463a0fc7c747a7e1a88eba850f1a4c9b579b9cb", "patch": "@@ -163,7 +163,7 @@ def parse_response(self, response):\n Response tuple and target method.\n \"\"\"\n p, u = self.getparser()\n- p.feed(response.text)\n+ p.feed(response.text.encode('utf-8'))\n p.close()\n return u.close()\n " } ]
SickRage
cf9d7945ca38e857807c7ce3d2d992f93138b1a4
e73328d241189389d49fcd2f91314aac18c418be
sickbeard/__init__.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -1337,7 +1337,7 @@ def initialize(consoleLogging=True): silent=not USE_TRAKT) traktRollingScheduler = scheduler.Scheduler(traktChecker.TraktRolling(), - cycleTime=datetime.timedelta(TRAKT_ROLLING_FREQUENCY), + cycleTime=datetime.timedelta(minutes=TRAKT_ROLLING_FREQUENCY), threadName="TRAKTROLLING", silent=not TRAKT_USE_ROLLING_DOWNLOAD)
silent = not USE_TRAKT ) traktRollingScheduler = scheduler . Scheduler ( traktChecker . TraktRolling ( ) , cycleTime = datetime . timedelta ( TRAKT_ROLLING_FREQUENCY ) , threadName = "TRAKTROLLING" , silent = not TRAKT_USE_ROLLING_DOWNLOAD )
silent = not USE_TRAKT ) traktRollingScheduler = scheduler . Scheduler ( traktChecker . TraktRolling ( ) , cycleTime = datetime . timedelta ( minutes = TRAKT_ROLLING_FREQUENCY ) , threadName = "TRAKTROLLING" , silent = not TRAKT_USE_ROLLING_DOWNLOAD )
SINGLE_STMT
[["Insert", ["argument_list", 3, 81, 3, 106], ["keyword_argument", "N0"], 1], ["Insert", "N0", ["identifier:minutes", "T"], 0], ["Insert", "N0", ["=:=", "T"], 1], ["Move", "N0", ["identifier:TRAKT_ROLLING_FREQUENCY", 3, 82, 3, 105], 2]]
jackkiej/SickRage@cf9d7945ca38e857807c7ce3d2d992f93138b1a4
Fix freuqency definition in start queue
[ { "sha": "5a4f295fcdf25f73fd8e574bd0125bcae8d4f3f4", "filename": "sickbeard/__init__.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/cf9d7945ca38e857807c7ce3d2d992f93138b1a4/sickbeard%2F__init__.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/cf9d7945ca38e857807c7ce3d2d992f93138b1a4/sickbeard%2F__init__.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2F__init__.py?ref=cf9d7945ca38e857807c7ce3d2d992f93138b1a4", "patch": "@@ -1337,7 +1337,7 @@ def path_leaf(path):\n silent=not USE_TRAKT)\n \n traktRollingScheduler = scheduler.Scheduler(traktChecker.TraktRolling(),\n- cycleTime=datetime.timedelta(TRAKT_ROLLING_FREQUENCY),\n+ cycleTime=datetime.timedelta(minutes=TRAKT_ROLLING_FREQUENCY),\n threadName=\"TRAKTROLLING\",\n silent=not TRAKT_USE_ROLLING_DOWNLOAD)\n " } ]
SickRage
0458a2d1461e8bd81d885bdf4cdc7dd68c3d9744
c9a102608e37c4c6e24c595297af1add5677ef79
sickbeard/config.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -193,7 +193,7 @@ def change_SHOWUPDATE_HOUR(freq): elif sickbeard.SHOWUPDATE_HOUR < 0: sickbeard.SHOWUPDATE_HOUR = 0 - sickbeard.showUpdateScheduler.cycleTime = datetime.time(hour=sickbeard.SHOWUPDATE_HOUR) + sickbeard.showUpdateScheduler.start_time = datetime.time(hour=sickbeard.SHOWUPDATE_HOUR) def change_VERSION_NOTIFY(version_notify): oldSetting = sickbeard.VERSION_NOTIFY
sickbeard . showUpdateScheduler . cycleTime = datetime . time ( hour = sickbeard . SHOWUPDATE_HOUR )
sickbeard . showUpdateScheduler . start_time = datetime . time ( hour = sickbeard . SHOWUPDATE_HOUR )
CHANGE_ATTRIBUTE_USED
[["Update", ["identifier:cycleTime", 3, 35, 3, 44], "start_time"]]
jackkiej/SickRage@0458a2d1461e8bd81d885bdf4cdc7dd68c3d9744
Fix wrong variable assignation
[ { "sha": "92644a3e47cfc64f0f6ecb4dc884328b56b5c7a2", "filename": "sickbeard/config.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/0458a2d1461e8bd81d885bdf4cdc7dd68c3d9744/sickbeard%2Fconfig.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/0458a2d1461e8bd81d885bdf4cdc7dd68c3d9744/sickbeard%2Fconfig.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fconfig.py?ref=0458a2d1461e8bd81d885bdf4cdc7dd68c3d9744", "patch": "@@ -193,7 +193,7 @@ def change_SHOWUPDATE_HOUR(freq):\n elif sickbeard.SHOWUPDATE_HOUR < 0:\n sickbeard.SHOWUPDATE_HOUR = 0\n \n- sickbeard.showUpdateScheduler.cycleTime = datetime.time(hour=sickbeard.SHOWUPDATE_HOUR)\n+ sickbeard.showUpdateScheduler.start_time = datetime.time(hour=sickbeard.SHOWUPDATE_HOUR)\n \n def change_VERSION_NOTIFY(version_notify):\n oldSetting = sickbeard.VERSION_NOTIFY" } ]
SickRage
d5e198f3375dd1754b7bba2563c158c8f63e6157
c9a102608e37c4c6e24c595297af1add5677ef79
sickbeard/notifiers/plex.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -52,7 +52,7 @@ class PLEXNotifier(KODINotifier): logger.log("Notification for Plex not enabled, skipping this notification", logger.DEBUG) return False - return self._notify_kodi(message=message, title=title, host=host, username=username, password=password, + return self._notify_pmc(message=message, title=title, host=host, username=username, password=password, force=True) def notify_snatch(self, ep_name):
return self . _notify_kodi ( message = message , title = title , host = host , username = username , password = password , force = True )
return self . _notify_pmc ( message = message , title = title , host = host , username = username , password = password , force = True )
WRONG_FUNCTION_NAME
[["Update", ["identifier:_notify_kodi", 3, 21, 3, 33], "_notify_pmc"]]
jackkiej/SickRage@d5e198f3375dd1754b7bba2563c158c8f63e6157
PlexNotifier: Fix calling KODI notify instead of pmc
[ { "sha": "6ef601fb3329a07d91da0fad1f381b9e6669b6ae", "filename": "sickbeard/notifiers/plex.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/d5e198f3375dd1754b7bba2563c158c8f63e6157/sickbeard%2Fnotifiers%2Fplex.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/d5e198f3375dd1754b7bba2563c158c8f63e6157/sickbeard%2Fnotifiers%2Fplex.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fnotifiers%2Fplex.py?ref=d5e198f3375dd1754b7bba2563c158c8f63e6157", "patch": "@@ -52,7 +52,7 @@ def _notify_pmc(self, message, title=\"SickRage\", host=None, username=None, passw\n logger.log(\"Notification for Plex not enabled, skipping this notification\", logger.DEBUG)\n return False\n \n- return self._notify_kodi(message=message, title=title, host=host, username=username, password=password,\n+ return self._notify_pmc(message=message, title=title, host=host, username=username, password=password,\n force=True)\n \n def notify_snatch(self, ep_name):" } ]
SickRage
d6bd5464b3a54512c4fee38fa899c6726c349507
b1d0b23f2722cbaa4d6f0554eb30bf1dae8634c0
sickbeard/notifiers/plex.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -52,7 +52,7 @@ class PLEXNotifier(KODINotifier): logger.log("Notification for Plex not enabled, skipping this notification", logger.DEBUG) return False - return self._notify_pmc(message=message, title=title, host=host, username=username, password=password, + return self._notify_kodi(message=message, title=title, host=host, username=username, password=password, force=True) def notify_snatch(self, ep_name):
return self . _notify_pmc ( message = message , title = title , host = host , username = username , password = password , force = True )
return self . _notify_kodi ( message = message , title = title , host = host , username = username , password = password , force = True )
WRONG_FUNCTION_NAME
[["Update", ["identifier:_notify_pmc", 3, 21, 3, 32], "_notify_kodi"]]
jackkiej/SickRage@d6bd5464b3a54512c4fee38fa899c6726c349507
Revert "PlexNotifier: Fix calling KODI notify instead of pmc" This reverts commit d5e198f3375dd1754b7bba2563c158c8f63e6157.
[ { "sha": "735469a93dd8b386b21bc30050846788f0164ee3", "filename": "sickbeard/notifiers/plex.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/d6bd5464b3a54512c4fee38fa899c6726c349507/sickbeard%2Fnotifiers%2Fplex.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/d6bd5464b3a54512c4fee38fa899c6726c349507/sickbeard%2Fnotifiers%2Fplex.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fnotifiers%2Fplex.py?ref=d6bd5464b3a54512c4fee38fa899c6726c349507", "patch": "@@ -52,7 +52,7 @@ def _notify_pmc(self, message, title=\"SickRage\", host=None, username=None, passw\n logger.log(\"Notification for Plex not enabled, skipping this notification\", logger.DEBUG)\n return False\n \n- return self._notify_pmc(message=message, title=title, host=host, username=username, password=password,\n+ return self._notify_kodi(message=message, title=title, host=host, username=username, password=password,\n force=True)\n \n def notify_snatch(self, ep_name):" } ]
SickRage
b337f949fbfda1e0ed69b90fe208e5dad4fe126d
0ebd6a37cdd53f7c73c0f16555271fb7dd1131b8
sickbeard/providers/rarbg.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -93,7 +93,7 @@ class RarbgProvider(generic.TorrentProvider): self.cache = RarbgCache(self) - self.headers = {'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': USER_AGENT} + self.headers = {'User-Agent': USER_AGENT} def isEnabled(self): return self.enabled
self . headers = { 'Content-Type' : 'application/x-www-form-urlencoded' , 'User-Agent' : USER_AGENT }
self . headers = { 'User-Agent' : USER_AGENT }
SINGLE_STMT
[["Delete", ["string:'Content-Type'", 3, 25, 3, 39]], ["Delete", [":::", 3, 39, 3, 40]], ["Delete", ["string:'application/x-www-form-urlencoded'", 3, 41, 3, 76]], ["Delete", ["pair", 3, 25, 3, 76]], ["Delete", [",:,", 3, 76, 3, 77]]]
jackkiej/SickRage@b337f949fbfda1e0ed69b90fe208e5dad4fe126d
fixup! Add user agent to RARBG
[ { "sha": "1545e271eb00cf6b02da4ae41a27e09768b9fadb", "filename": "sickbeard/providers/rarbg.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/b337f949fbfda1e0ed69b90fe208e5dad4fe126d/sickbeard%2Fproviders%2Frarbg.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/b337f949fbfda1e0ed69b90fe208e5dad4fe126d/sickbeard%2Fproviders%2Frarbg.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Frarbg.py?ref=b337f949fbfda1e0ed69b90fe208e5dad4fe126d", "patch": "@@ -93,7 +93,7 @@ def __init__(self):\n \n self.cache = RarbgCache(self)\n \n- self.headers = {'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': USER_AGENT}\n+ self.headers = {'User-Agent': USER_AGENT}\n \n def isEnabled(self):\n return self.enabled" } ]
SickRage
d633bc031837c5f4e3cf9b165cd8202efd2ba06f
161fd1cdf1ad17ce791ed74871b5c3fc35f9e6b8
sickbeard/notifiers/kodi.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -248,7 +248,7 @@ class KODINotifier: return result except Exception as e: - logger.log(u"Warning: Couldn't contact KODI HTTP at " + ek.ss(url) + " " + repr(e), + logger.log(u"Warning: Couldn't contact KODI HTTP at " + ek.ss(url) + " " + str(e), logger.WARNING) return False
except Exception as e : logger . log ( u"Warning: Couldn't contact KODI HTTP at " + ek . ss ( url ) + " " + repr ( e ) , logger . WARNING )
except Exception as e : logger . log ( u"Warning: Couldn't contact KODI HTTP at " + ek . ss ( url ) + " " + str ( e ) , logger . WARNING )
WRONG_FUNCTION_NAME
[["Update", ["identifier:repr", 3, 88, 3, 92], "str"]]
jackkiej/SickRage@d633bc031837c5f4e3cf9b165cd8202efd2ba06f
fixup! Catch all errors from Kodi notify
[ { "sha": "f7e3b91689452f78eda1c28309c7026d444c2734", "filename": "sickbeard/notifiers/kodi.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/d633bc031837c5f4e3cf9b165cd8202efd2ba06f/sickbeard%2Fnotifiers%2Fkodi.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/d633bc031837c5f4e3cf9b165cd8202efd2ba06f/sickbeard%2Fnotifiers%2Fkodi.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fnotifiers%2Fkodi.py?ref=d633bc031837c5f4e3cf9b165cd8202efd2ba06f", "patch": "@@ -248,7 +248,7 @@ def _send_to_kodi(self, command, host=None, username=None, password=None):\n return result\n \n except Exception as e:\n- logger.log(u\"Warning: Couldn't contact KODI HTTP at \" + ek.ss(url) + \" \" + repr(e),\n+ logger.log(u\"Warning: Couldn't contact KODI HTTP at \" + ek.ss(url) + \" \" + str(e),\n logger.WARNING)\n return False\n " } ]
SickRage
c8da24eb7e18329af13eeee8a8d5e475154de5d0
b766ad3a36242b5a34345f63237cc8427db92236
sickbeard/postProcessor.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -841,7 +841,7 @@ class PostProcessor(object): old_ep_status, old_ep_quality = common.Quality.splitCompositeStatus(ep_obj.status) # get the quality of the episode we're processing - if quality: + if quality and not common.Quality.qualityStrings[quality] == 'Unknown': self._log(u"Snatch history had a quality in it, using that: " + common.Quality.qualityStrings[quality], logger.DEBUG) new_ep_quality = quality
if quality : self . _log ( u"Snatch history had a quality in it, using that: " + common . Quality . qualityStrings [ quality ] , logger . DEBUG ) new_ep_quality = quality
if quality and not common . Quality . qualityStrings [ quality ] == 'Unknown' : self . _log ( u"Snatch history had a quality in it, using that: " + common . Quality . qualityStrings [ quality ] , logger . DEBUG ) new_ep_quality = quality
MORE_SPECIFIC_IF
[["Insert", ["if_statement", 3, 9, 6, 37], ["boolean_operator", "N0"], 1], ["Move", "N0", ["identifier:quality", 3, 12, 3, 19], 0], ["Insert", "N0", ["and:and", "T"], 1], ["Insert", "N0", ["not_operator", "N1"], 2], ["Insert", "N1", ["not:not", "T"], 0], ["Insert", "N1", ["comparison_operator", "N2"], 1], ["Insert", "N2", ["subscript", "N3"], 0], ["Insert", "N2", ["==:==", "T"], 1], ["Insert", "N2", ["string:'Unknown'", "T"], 2], ["Insert", "N3", ["attribute", "N4"], 0], ["Insert", "N3", ["[:[", "T"], 1], ["Insert", "N3", ["identifier:quality", "T"], 2], ["Insert", "N3", ["]:]", "T"], 3], ["Insert", "N4", ["attribute", "N5"], 0], ["Insert", "N4", [".:.", "T"], 1], ["Insert", "N4", ["identifier:qualityStrings", "T"], 2], ["Insert", "N5", ["identifier:common", "T"], 0], ["Insert", "N5", [".:.", "T"], 1], ["Insert", "N5", ["identifier:Quality", "T"], 2]]
jackkiej/SickRage@c8da24eb7e18329af13eeee8a8d5e475154de5d0
Fix unknown quality being accepted as a valid quality in PP - Fixes issues where a snatch history returning quality 'Unknown' is accepted as an acceptable quality without trying to get an actual quality from _get_quality()
[ { "sha": "24528806ed69dca9057955113e6a7b15671b32e5", "filename": "sickbeard/postProcessor.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/c8da24eb7e18329af13eeee8a8d5e475154de5d0/sickbeard%2FpostProcessor.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/c8da24eb7e18329af13eeee8a8d5e475154de5d0/sickbeard%2FpostProcessor.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2FpostProcessor.py?ref=c8da24eb7e18329af13eeee8a8d5e475154de5d0", "patch": "@@ -841,7 +841,7 @@ def process(self):\n old_ep_status, old_ep_quality = common.Quality.splitCompositeStatus(ep_obj.status)\n \n # get the quality of the episode we're processing\n- if quality:\n+ if quality and not common.Quality.qualityStrings[quality] == 'Unknown':\n self._log(u\"Snatch history had a quality in it, using that: \" + common.Quality.qualityStrings[quality],\n logger.DEBUG)\n new_ep_quality = quality" } ]
SickRage
539154d5b188def6201a39218b6d734587cf6bc9
28e0525abd30dd832167d2a2a4ba957110f38ba3
sickbeard/classes.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -276,6 +276,6 @@ class UIError(): def __init__(self, message): - self.title = sys.exc_info()[-2] + self.title = sys.exc_info()[-2] or message self.message = message self.time = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') \ No newline at end of file
self . title = sys . exc_info ( ) [ - 2 ]
self . title = sys . exc_info ( ) [ - 2 ] or message
SINGLE_STMT
[["Insert", ["assignment", 2, 9, 2, 40], ["boolean_operator", "N0"], 2], ["Move", "N0", ["subscript", 2, 22, 2, 40], 0], ["Insert", "N0", ["or:or", "T"], 1], ["Insert", "N0", ["identifier:message", "T"], 2]]
jackkiej/SickRage@539154d5b188def6201a39218b6d734587cf6bc9
Fix Title of None for Errors submitted through UI - Changes the title assignment to use the message if there is no Exception that generated the error. Should fix submitting errors that were handled by SR itself, rather than an exception like configuration errors or the like.
[ { "sha": "ec8fce996f5191dcae3f9ae1936893d66a37dcf8", "filename": "sickbeard/classes.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/539154d5b188def6201a39218b6d734587cf6bc9/sickbeard%2Fclasses.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/539154d5b188def6201a39218b6d734587cf6bc9/sickbeard%2Fclasses.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fclasses.py?ref=539154d5b188def6201a39218b6d734587cf6bc9", "patch": "@@ -276,6 +276,6 @@ class UIError():\n \"\"\"\n \n def __init__(self, message):\n- self.title = sys.exc_info()[-2]\n+ self.title = sys.exc_info()[-2] or message\n self.message = message\n self.time = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')\n\\ No newline at end of file" } ]
SickRage
a943dd65c91b36d8aa0db1c50ba70424f7bd803b
370217622b360a45075a067f65353b7d8547fcf9
sickbeard/webserve.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -1972,7 +1972,7 @@ class Home(WebRoot): results = [] showObj = sickbeard.helpers.findCertainShow(sickbeard.showList, int(searchThread.show.indexerid)) - if not ShowObj: + if not showObj: logger.log('No Show Object found for show with indexerID: ' + searchThread.show.indexerid, logger.ERROR) return results
if not ShowObj : logger . log ( 'No Show Object found for show with indexerID: ' + searchThread . show . indexerid , logger . ERROR ) return results
if not showObj : logger . log ( 'No Show Object found for show with indexerID: ' + searchThread . show . indexerid , logger . ERROR ) return results
CHANGE_IDENTIFIER_USED
[["Update", ["identifier:ShowObj", 3, 20, 3, 27], "showObj"]]
jackkiej/SickRage@a943dd65c91b36d8aa0db1c50ba70424f7bd803b
Fix NameError: global name 'ShowObj' is not definedwq!
[ { "sha": "411d73fb9acf667a9fc38b34b4cc2e003a1387ed", "filename": "sickbeard/webserve.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/a943dd65c91b36d8aa0db1c50ba70424f7bd803b/sickbeard%2Fwebserve.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/a943dd65c91b36d8aa0db1c50ba70424f7bd803b/sickbeard%2Fwebserve.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fwebserve.py?ref=a943dd65c91b36d8aa0db1c50ba70424f7bd803b", "patch": "@@ -1972,7 +1972,7 @@ def getEpisodes(searchThread, searchstatus):\n results = []\n showObj = sickbeard.helpers.findCertainShow(sickbeard.showList, int(searchThread.show.indexerid))\n \n- if not ShowObj:\n+ if not showObj:\n logger.log('No Show Object found for show with indexerID: ' + searchThread.show.indexerid, logger.ERROR)\n return results\n " } ]
SickRage
645fa669d1552ac27be1cd3aa160876a024881e7
5754e31bc93933717a244773578651ddfd73ab07
sickbeard/webserve.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -1708,7 +1708,7 @@ class Home(WebRoot): return self.redirect('/home/') def updatePLEX(self): - if notifiers.plex_notifier.update_library(): + if None is notifiers.plex_notifier.update_library(): ui.notifications.message( "Library update command sent to Plex Media Server host: " + sickbeard.PLEX_SERVER_HOST) else:
if notifiers . plex_notifier . update_library ( ) : ui . notifications . message ( "Library update command sent to Plex Media Server host: " + sickbeard . PLEX_SERVER_HOST ) else :
if None is notifiers . plex_notifier . update_library ( ) : ui . notifications . message ( "Library update command sent to Plex Media Server host: " + sickbeard . PLEX_SERVER_HOST ) else :
SINGLE_STMT
[["Insert", ["if_statement", 3, 9, 6, 14], ["comparison_operator", "N0"], 1], ["Insert", "N0", ["none:None", "T"], 0], ["Insert", "N0", ["is:is", "T"], 1], ["Move", "N0", ["call", 3, 12, 3, 52], 2]]
jackkiej/SickRage@645fa669d1552ac27be1cd3aa160876a024881e7
Fix Plex notification status check The return value of update_library() was changed from True/False to None/Error string in https://github.com/SiCKRAGETV/SickRage/commit/4c9d9185b0c25d435a6bbb20efa60b1f4337a016 but the check for the return value was never updated. This corrects that so the notification sent out correctly states that it sent a notification to the server instead of defaulting to stating it was unable to connect. This fixes the rest of the issues described in SiCKRAGETV/sickrage-issues#1348.
[ { "sha": "92d17eea1aa131c9a740ba785897c82b948ed88d", "filename": "sickbeard/webserve.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/645fa669d1552ac27be1cd3aa160876a024881e7/sickbeard%2Fwebserve.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/645fa669d1552ac27be1cd3aa160876a024881e7/sickbeard%2Fwebserve.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fwebserve.py?ref=645fa669d1552ac27be1cd3aa160876a024881e7", "patch": "@@ -1708,7 +1708,7 @@ def updateKODI(self, show=None):\n return self.redirect('/home/')\n \n def updatePLEX(self):\n- if notifiers.plex_notifier.update_library():\n+ if None is notifiers.plex_notifier.update_library():\n ui.notifications.message(\n \"Library update command sent to Plex Media Server host: \" + sickbeard.PLEX_SERVER_HOST)\n else:" } ]
SickRage
a6d281604d8f919b0ed696ee6555728ac5fa25ec
9035ccc48cc65e19f5645cd467d9d4bd54cf1e56
sickbeard/webserve.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -1979,7 +1979,7 @@ class Home(WebRoot): showObj = sickbeard.helpers.findCertainShow(sickbeard.showList, int(searchThread.show.indexerid)) if not showObj: - logger.log('No Show Object found for show with indexerID: ' + searchThread.show.indexerid, logger.ERROR) + logger.log('No Show Object found for show with indexerID: ' + str(searchThread.show.indexerid), logger.ERROR) return results if isinstance(searchThread, sickbeard.search_queue.ManualSearchQueueItem):
logger . log ( 'No Show Object found for show with indexerID: ' + searchThread . show . indexerid , logger . ERROR )
logger . log ( 'No Show Object found for show with indexerID: ' + str ( searchThread . show . indexerid ) , logger . ERROR )
ADD_FUNCTION_AROUND_EXPRESSION
[["Insert", ["binary_operator", 3, 28, 3, 106], ["call", "N0"], 2], ["Insert", "N0", ["identifier:str", "T"], 0], ["Insert", "N0", ["argument_list", "N1"], 1], ["Insert", "N1", ["(:(", "T"], 0], ["Move", "N1", ["attribute", 3, 79, 3, 106], 1], ["Insert", "N1", ["):)", "T"], 2]]
jackkiej/SickRage@a6d281604d8f919b0ed696ee6555728ac5fa25ec
Fix TypeError: cannot concatenate 'str' and 'int' objects Fixes https://github.com/SiCKRAGETV/sickrage-issues/issues/1349
[ { "sha": "17916e12e2d83608552b8168f1bc9dda2e32ab29", "filename": "sickbeard/webserve.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/a6d281604d8f919b0ed696ee6555728ac5fa25ec/sickbeard%2Fwebserve.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/a6d281604d8f919b0ed696ee6555728ac5fa25ec/sickbeard%2Fwebserve.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fwebserve.py?ref=a6d281604d8f919b0ed696ee6555728ac5fa25ec", "patch": "@@ -1979,7 +1979,7 @@ def getEpisodes(searchThread, searchstatus):\n showObj = sickbeard.helpers.findCertainShow(sickbeard.showList, int(searchThread.show.indexerid))\n \n if not showObj:\n- logger.log('No Show Object found for show with indexerID: ' + searchThread.show.indexerid, logger.ERROR)\n+ logger.log('No Show Object found for show with indexerID: ' + str(searchThread.show.indexerid), logger.ERROR)\n return results\n \n if isinstance(searchThread, sickbeard.search_queue.ManualSearchQueueItem):" } ]
SickRage
cecd35bb5d9a6029ef63b265a9d6122578f6d291
48462f4baa8a3bf89fae47454b0a2bd15a1b9c70
sickbeard/scene_numbering.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -230,7 +230,7 @@ def _xem_refresh(indexer_id, indexer): try: logger.log( - u'Looking up XEM scene mapping for show %s on %s' % (indexer_id, sickbeard.indexerApi(indexer).name,), + u'Looking up XEM scene mapping for show %s on %s' % (indexer_id, sickbeard.indexerApi(int(indexer)).name,), logger.DEBUG) data = requests.get("http://thexem.de/map/all?id=%s&origin=%s&destination=scene" % ( indexer_id, sickbeard.indexerApi(indexer).config['xem_origin'],), verify=False).json()
logger . log ( u'Looking up XEM scene mapping for show %s on %s' % ( indexer_id , sickbeard . indexerApi ( indexer ) . name , ) , logger . DEBUG )
logger . log ( u'Looking up XEM scene mapping for show %s on %s' % ( indexer_id , sickbeard . indexerApi ( int ( indexer ) ) . name , ) , logger . DEBUG )
ADD_FUNCTION_AROUND_EXPRESSION
[["Insert", ["argument_list", 3, 98, 3, 107], ["(:(", "T"], 0], ["Insert", ["argument_list", 3, 98, 3, 107], ["call", "N0"], 1], ["Insert", ["argument_list", 3, 98, 3, 107], ["):)", "T"], 2], ["Insert", "N0", ["identifier:int", "T"], 0], ["Move", "N0", ["argument_list", 3, 98, 3, 107], 1]]
jackkiej/SickRage@cecd35bb5d9a6029ef63b265a9d6122578f6d291
Fix for indexer being sent as unicode when its supposed to me integer
[ { "sha": "ddfce93026bc6a74e57f2340b4d7acc41be75423", "filename": "sickbeard/scene_numbering.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/cecd35bb5d9a6029ef63b265a9d6122578f6d291/sickbeard%2Fscene_numbering.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/cecd35bb5d9a6029ef63b265a9d6122578f6d291/sickbeard%2Fscene_numbering.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fscene_numbering.py?ref=cecd35bb5d9a6029ef63b265a9d6122578f6d291", "patch": "@@ -230,7 +230,7 @@ def _xem_refresh(indexer_id, indexer):\n \n try:\n logger.log(\n- u'Looking up XEM scene mapping for show %s on %s' % (indexer_id, sickbeard.indexerApi(indexer).name,),\n+ u'Looking up XEM scene mapping for show %s on %s' % (indexer_id, sickbeard.indexerApi(int(indexer)).name,),\n logger.DEBUG)\n data = requests.get(\"http://thexem.de/map/all?id=%s&origin=%s&destination=scene\" % (\n indexer_id, sickbeard.indexerApi(indexer).config['xem_origin'],), verify=False).json()" } ]
SickRage
e789c065eecf5a25ec12609278e5940f73cf03e8
580afec2a791e1edd72b9ee959490ea63133be17
sickbeard/indexers/indexer_api.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -23,7 +23,7 @@ from indexer_config import initConfig, indexerConfig class indexerApi(object): def __init__(self, indexerID=None): - self.indexerID = int(indexerID) + self.indexerID = int(str(indexerID).encode("UTF-8")) def indexer(self, *args, **kwargs): if self.indexerID:
self . indexerID = int ( indexerID )
self . indexerID = int ( str ( indexerID ) . encode ( "UTF-8" ) )
SINGLE_STMT
[["Insert", ["argument_list", 3, 29, 3, 40], ["(:(", "T"], 0], ["Insert", ["argument_list", 3, 29, 3, 40], ["call", "N0"], 1], ["Insert", ["argument_list", 3, 29, 3, 40], ["):)", "T"], 2], ["Insert", "N0", ["attribute", "N1"], 0], ["Insert", "N0", ["argument_list", "N2"], 1], ["Insert", "N1", ["call", "N3"], 0], ["Insert", "N1", [".:.", "T"], 1], ["Insert", "N1", ["identifier:encode", "T"], 2], ["Insert", "N2", ["(:(", "T"], 0], ["Insert", "N2", ["string:\"UTF-8\"", "T"], 1], ["Insert", "N2", ["):)", "T"], 2], ["Insert", "N3", ["identifier:str", "T"], 0], ["Move", "N3", ["argument_list", 3, 29, 3, 40], 1]]
jackkiej/SickRage@e789c065eecf5a25ec12609278e5940f73cf03e8
Fix in indexerApi code
[ { "sha": "89f82e2b1168d31db66fcebfe326d0d26334321e", "filename": "sickbeard/indexers/indexer_api.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/e789c065eecf5a25ec12609278e5940f73cf03e8/sickbeard%2Findexers%2Findexer_api.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/e789c065eecf5a25ec12609278e5940f73cf03e8/sickbeard%2Findexers%2Findexer_api.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Findexers%2Findexer_api.py?ref=e789c065eecf5a25ec12609278e5940f73cf03e8", "patch": "@@ -23,7 +23,7 @@\n \n class indexerApi(object):\n def __init__(self, indexerID=None):\n- self.indexerID = int(indexerID)\n+ self.indexerID = int(str(indexerID).encode(\"UTF-8\"))\n \n def indexer(self, *args, **kwargs):\n if self.indexerID:" } ]
SickRage
cb4790a213c7087732d83782a97c614cc4b73c75
75c7fbf137f32e2a3d12943baa436a0b5354fe6d
sickbeard/tvcache.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -204,7 +204,7 @@ class TVCache(): return None showObj = helpers.get_show_by_name(parse_result.series_name) - if showObj: + if not showObj: logger.log(u"Could not find a show matching " + parse_result.series_name + " in the database, skipping ...", logger.DEBUG) return None
if showObj : logger . log ( u"Could not find a show matching " + parse_result . series_name + " in the database, skipping ..." , logger . DEBUG ) return None
if not showObj : logger . log ( u"Could not find a show matching " + parse_result . series_name + " in the database, skipping ..." , logger . DEBUG ) return None
CHANGE_UNARY_OPERATOR
[["Insert", ["if_statement", 3, 9, 5, 24], ["not_operator", "N0"], 1], ["Insert", "N0", ["not:not", "T"], 0], ["Move", "N0", ["identifier:showObj", 3, 12, 3, 19], 1]]
jackkiej/SickRage@cb4790a213c7087732d83782a97c614cc4b73c75
Typo fixed
[ { "sha": "1fa3ac819707442be789e8dc4378955ffe36828e", "filename": "sickbeard/tvcache.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/cb4790a213c7087732d83782a97c614cc4b73c75/sickbeard%2Ftvcache.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/cb4790a213c7087732d83782a97c614cc4b73c75/sickbeard%2Ftvcache.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Ftvcache.py?ref=cb4790a213c7087732d83782a97c614cc4b73c75", "patch": "@@ -204,7 +204,7 @@ def _addCacheEntry(self, name, url, quality=None):\n return None\n \n showObj = helpers.get_show_by_name(parse_result.series_name)\n- if showObj:\n+ if not showObj:\n logger.log(u\"Could not find a show matching \" + parse_result.series_name + \" in the database, skipping ...\", logger.DEBUG)\n return None\n " } ]
SickRage
6a3ff97cecc4ae2b6083feddda270ae0d54cdada
9fc07617f1ccc3234231ca0ff94b554a4cfef7e7
sickbeard/indexers/indexer_api.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -23,7 +23,7 @@ from indexer_config import initConfig, indexerConfig class indexerApi(object): def __init__(self, indexerID=None): - self.indexerID = int(str(indexerID).encode("UTF-8")) + self.indexerID = int(indexerID) if indexerID else None def indexer(self, *args, **kwargs): if self.indexerID:
self . indexerID = int ( str ( indexerID ) . encode ( "UTF-8" ) )
self . indexerID = int ( indexerID ) if indexerID else None
SINGLE_STMT
[["Insert", ["assignment", 3, 9, 3, 61], ["conditional_expression", "N0"], 2], ["Move", "N0", ["call", 3, 30, 3, 44], 0], ["Insert", "N0", ["if:if", "T"], 1], ["Update", ["identifier:encode", 3, 45, 3, 51], "indexerID"], ["Move", "N0", ["identifier:encode", 3, 45, 3, 51], 2], ["Insert", "N0", ["else:else", "T"], 3], ["Insert", "N0", ["none:None", "T"], 4], ["Update", ["identifier:str", 3, 30, 3, 33], "int"], ["Delete", ["identifier:int", 3, 26, 3, 29]], ["Delete", ["(:(", 3, 29, 3, 30]], ["Delete", [".:.", 3, 44, 3, 45]], ["Delete", ["attribute", 3, 30, 3, 51]], ["Delete", ["(:(", 3, 51, 3, 52]], ["Delete", ["string:\"UTF-8\"", 3, 52, 3, 59]], ["Delete", ["):)", 3, 59, 3, 60]], ["Delete", ["argument_list", 3, 51, 3, 60]], ["Delete", ["call", 3, 30, 3, 60]], ["Delete", ["):)", 3, 60, 3, 61]], ["Delete", ["argument_list", 3, 29, 3, 61]], ["Delete", ["call", 3, 26, 3, 61]]]
jackkiej/SickRage@6a3ff97cecc4ae2b6083feddda270ae0d54cdada
Test fix #1
[ { "sha": "7d36d28885e3db05a2835d47b5ea1b3d7e2789dd", "filename": "sickbeard/indexers/indexer_api.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/6a3ff97cecc4ae2b6083feddda270ae0d54cdada/sickbeard%2Findexers%2Findexer_api.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/6a3ff97cecc4ae2b6083feddda270ae0d54cdada/sickbeard%2Findexers%2Findexer_api.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Findexers%2Findexer_api.py?ref=6a3ff97cecc4ae2b6083feddda270ae0d54cdada", "patch": "@@ -23,7 +23,7 @@\n \n class indexerApi(object):\n def __init__(self, indexerID=None):\n- self.indexerID = int(str(indexerID).encode(\"UTF-8\"))\n+ self.indexerID = int(indexerID) if indexerID else None\n \n def indexer(self, *args, **kwargs):\n if self.indexerID:" } ]
SickRage
20798639ae86b580c27e0b95fbc5a93d59e5778b
3ba3a74fd0dc1738b1ac5334da38ec9b24ad0694
sickbeard/db.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -129,7 +129,7 @@ class DBConnection: logger.log(qu[0] + " with args " + str(qu[1]), logger.DEBUG) sqlResult.append(self.connection.execute(qu[0], qu[1])) self.connection.commit() - logger.log(u"Transaction with " + str(len(querylist)) + u" query's executed", logger.DEBUG) + logger.log(u"Transaction with " + str(len(querylist)) + u" queries executed", logger.DEBUG) return sqlResult except sqlite3.OperationalError, e: sqlResult = []
logger . log ( u"Transaction with " + str ( len ( querylist ) ) + u" query's executed" , logger . DEBUG )
logger . log ( u"Transaction with " + str ( len ( querylist ) ) + u" queries executed" , logger . DEBUG )
CHANGE_BINARY_OPERAND
[["Update", ["string:u\" query's executed\"", 3, 77, 3, 97], "u\" queries executed\""]]
jackkiej/SickRage@20798639ae86b580c27e0b95fbc5a93d59e5778b
Update db.py Fixing just one typo ("query's" to "queries"), after staring at it on my screen for the last few hours :)
[ { "sha": "c48829c19a9e1551ef4762508ea30bc774facc7e", "filename": "sickbeard/db.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/20798639ae86b580c27e0b95fbc5a93d59e5778b/sickbeard%2Fdb.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/20798639ae86b580c27e0b95fbc5a93d59e5778b/sickbeard%2Fdb.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fdb.py?ref=20798639ae86b580c27e0b95fbc5a93d59e5778b", "patch": "@@ -129,7 +129,7 @@ def mass_action(self, querylist, logTransaction=False):\n logger.log(qu[0] + \" with args \" + str(qu[1]), logger.DEBUG)\n sqlResult.append(self.connection.execute(qu[0], qu[1]))\n self.connection.commit()\n- logger.log(u\"Transaction with \" + str(len(querylist)) + u\" query's executed\", logger.DEBUG)\n+ logger.log(u\"Transaction with \" + str(len(querylist)) + u\" queries executed\", logger.DEBUG)\n return sqlResult\n except sqlite3.OperationalError, e:\n sqlResult = []" } ]
SickRage
99da47464dcb85d26125a6a861de3b8c3eea29cb
129a8c1d7efb82ca889e7c2ec567d4b0797f211d
sickbeard/providers/newznab.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -196,7 +196,7 @@ class NewznabProvider(generic.NZBProvider): logger.log(u"Search url: " + search_url, logger.DEBUG) - data = self.getRSSFeed(search_url) + data = self.cache.getRSSFeed(search_url) if not data: return []
data = self . getRSSFeed ( search_url )
data = self . cache . getRSSFeed ( search_url )
ADD_ATTRIBUTE_ACCESS
[["Insert", ["attribute", 3, 16, 3, 31], ["attribute", "N0"], 0], ["Insert", ["attribute", 3, 16, 3, 31], [".:.", "T"], 1], ["Move", "N0", ["identifier:self", 3, 16, 3, 20], 0], ["Move", "N0", [".:.", 3, 20, 3, 21], 1], ["Insert", "N0", ["identifier:cache", "T"], 2]]
jackkiej/SickRage@99da47464dcb85d26125a6a861de3b8c3eea29cb
Fix for rssfeed
[ { "sha": "cdd2d33711af3d7878417416aee4419bc55b6ea8", "filename": "sickbeard/providers/newznab.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/99da47464dcb85d26125a6a861de3b8c3eea29cb/sickbeard%2Fproviders%2Fnewznab.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/99da47464dcb85d26125a6a861de3b8c3eea29cb/sickbeard%2Fproviders%2Fnewznab.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Fnewznab.py?ref=99da47464dcb85d26125a6a861de3b8c3eea29cb", "patch": "@@ -196,7 +196,7 @@ def _doSearch(self, search_params, show=None, max_age=0):\n \n logger.log(u\"Search url: \" + search_url, logger.DEBUG)\n \n- data = self.getRSSFeed(search_url)\n+ data = self.cache.getRSSFeed(search_url)\n if not data:\n return []\n " } ]
SickRage
b59c8fd1ec13bd6a53a498eaf240177b23f46580
99da47464dcb85d26125a6a861de3b8c3eea29cb
sickbeard/properFinder.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -182,7 +182,7 @@ class ProperFinder(): logger.log( u"Looks like this is an air-by-date or sports show, attempting to convert the date to season/episode", logger.DEBUG) - airdate = curProper.episode.toordinal() + airdate = curProper.airdate.toordinal() myDB = db.DBConnection() sql_result = myDB.select( "SELECT season, episode FROM tv_episodes WHERE showid = ? and indexer = ? and airdate = ?",
airdate = curProper . episode . toordinal ( )
airdate = curProper . airdate . toordinal ( )
CHANGE_ATTRIBUTE_USED
[["Update", ["identifier:episode", 3, 37, 3, 44], "airdate"]]
jackkiej/SickRage@b59c8fd1ec13bd6a53a498eaf240177b23f46580
Fix for airdate issues during proper search
[ { "sha": "c37ac1eb591b92995498bdfbe33eaec476daaf36", "filename": "sickbeard/properFinder.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/b59c8fd1ec13bd6a53a498eaf240177b23f46580/sickbeard%2FproperFinder.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/b59c8fd1ec13bd6a53a498eaf240177b23f46580/sickbeard%2FproperFinder.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2FproperFinder.py?ref=b59c8fd1ec13bd6a53a498eaf240177b23f46580", "patch": "@@ -182,7 +182,7 @@ def _getProperList(self):\n logger.log(\n u\"Looks like this is an air-by-date or sports show, attempting to convert the date to season/episode\",\n logger.DEBUG)\n- airdate = curProper.episode.toordinal()\n+ airdate = curProper.airdate.toordinal()\n myDB = db.DBConnection()\n sql_result = myDB.select(\n \"SELECT season, episode FROM tv_episodes WHERE showid = ? and indexer = ? and airdate = ?\"," } ]
SickRage
fca48bfe6457d9d1eb7213f813653117120543c8
a23c35f185bef3165b36b64b2e99747725895c0e
sickbeard/providers/generic.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -250,7 +250,7 @@ class GenericProvider: searchStrings += self._get_episode_search_strings(epObj) # remove duplicate search strings - if len(searchString): + if len(searchStrings): searchStrings = [i for n, i in enumerate(searchStrings) if i not in searchStrings[n + 1:]] for curString in sorted(searchStrings):
if len ( searchString ) : searchStrings = [ i for n , i in enumerate ( searchStrings ) if i not in searchStrings [ n + 1 : ] ]
if len ( searchStrings ) : searchStrings = [ i for n , i in enumerate ( searchStrings ) if i not in searchStrings [ n + 1 : ] ]
CHANGE_IDENTIFIER_USED
[["Update", ["identifier:searchString", 3, 16, 3, 28], "searchStrings"]]
jackkiej/SickRage@fca48bfe6457d9d1eb7213f813653117120543c8
Fixing typo
[ { "sha": "bf60de5e0d7022a1509e64ac80704647635e3029", "filename": "sickbeard/providers/generic.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/fca48bfe6457d9d1eb7213f813653117120543c8/sickbeard%2Fproviders%2Fgeneric.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/fca48bfe6457d9d1eb7213f813653117120543c8/sickbeard%2Fproviders%2Fgeneric.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Fgeneric.py?ref=fca48bfe6457d9d1eb7213f813653117120543c8", "patch": "@@ -250,7 +250,7 @@ def findSearchResults(self, show, season, episodes, seasonSearch=False, manualSe\n searchStrings += self._get_episode_search_strings(epObj)\n \n # remove duplicate search strings\n- if len(searchString):\n+ if len(searchStrings):\n searchStrings = [i for n, i in enumerate(searchStrings) if i not in searchStrings[n + 1:]]\n \n for curString in sorted(searchStrings):" } ]
SickRage
b7aa62c553099e17f90239a721482361e9c257c2
96ff54c2559086ac3fc4d416831d9e96c723b099
sickbeard/providers/generic.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -257,7 +257,7 @@ class GenericProvider: itemList += self._doSearch(curString) # remove duplicate items - if len(itemLisT): + if len(itemList): itemList = list(set(itemList)) for item in itemList:
if len ( itemLisT ) : itemList = list ( set ( itemList ) )
if len ( itemList ) : itemList = list ( set ( itemList ) )
CHANGE_IDENTIFIER_USED
[["Update", ["identifier:itemLisT", 3, 16, 3, 24], "itemList"]]
jackkiej/SickRage@b7aa62c553099e17f90239a721482361e9c257c2
More typo fixes :S
[ { "sha": "a5f22a13c5b029763cd237c6093249fa64188ba5", "filename": "sickbeard/providers/generic.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/b7aa62c553099e17f90239a721482361e9c257c2/sickbeard%2Fproviders%2Fgeneric.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/b7aa62c553099e17f90239a721482361e9c257c2/sickbeard%2Fproviders%2Fgeneric.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Fgeneric.py?ref=b7aa62c553099e17f90239a721482361e9c257c2", "patch": "@@ -257,7 +257,7 @@ def findSearchResults(self, show, season, episodes, seasonSearch=False, manualSe\n itemList += self._doSearch(curString)\n \n # remove duplicate items\n- if len(itemLisT):\n+ if len(itemList):\n itemList = list(set(itemList))\n \n for item in itemList:" } ]
SickRage
afdbc44a4790fcda0af881071b2a886b94dc76f2
775730c3adb5e9597704dabd3b28802e9b27724b
sickbeard/webserve.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -3406,7 +3406,7 @@ class Home: if sceneSeason is not None: sceneSeason = int(sceneSeason) if sceneEpisode is not None: sceneEpisode = int(sceneEpisode) - set_scene_numbering(show, forSeason, forEpisode, sceneSeason, sceneEpisode) + set_scene_numbering(show, indexer, forSeason, forEpisode, sceneSeason, sceneEpisode) sn = get_scene_numbering(show, indexer, forSeason, forEpisode) if sn:
set_scene_numbering ( show , forSeason , forEpisode , sceneSeason , sceneEpisode )
set_scene_numbering ( show , indexer , forSeason , forEpisode , sceneSeason , sceneEpisode )
SAME_FUNCTION_MORE_ARGS
[["Move", ["identifier:forSeason", 3, 39, 3, 48], ["argument_list", 3, 32, 3, 88], 4], ["Move", ["identifier:forEpisode", 3, 50, 3, 60], ["argument_list", 3, 32, 3, 88], 7], ["Move", ["identifier:sceneSeason", 3, 62, 3, 73], ["argument_list", 3, 32, 3, 88], 9], ["Insert", ["argument_list", 3, 32, 3, 88], ["identifier:indexer", "T"], 3], ["Insert", ["argument_list", 3, 32, 3, 88], [",:,", "T"], 9]]
jackkiej/SickRage@afdbc44a4790fcda0af881071b2a886b94dc76f2
Fixes issue #374
[ { "sha": "74d83a39c183447595e23d7b4c32f989a4712a51", "filename": "sickbeard/webserve.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/afdbc44a4790fcda0af881071b2a886b94dc76f2/sickbeard%2Fwebserve.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/afdbc44a4790fcda0af881071b2a886b94dc76f2/sickbeard%2Fwebserve.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fwebserve.py?ref=afdbc44a4790fcda0af881071b2a886b94dc76f2", "patch": "@@ -3406,7 +3406,7 @@ def setEpisodeSceneNumbering(self, show, indexer, forSeason, forEpisode, sceneSe\n if sceneSeason is not None: sceneSeason = int(sceneSeason)\n if sceneEpisode is not None: sceneEpisode = int(sceneEpisode)\n \n- set_scene_numbering(show, forSeason, forEpisode, sceneSeason, sceneEpisode)\n+ set_scene_numbering(show, indexer, forSeason, forEpisode, sceneSeason, sceneEpisode)\n \n sn = get_scene_numbering(show, indexer, forSeason, forEpisode)\n if sn:" } ]
SickRage
a0bd46c18a6000c188dca55194361433c7265536
fb71c6139e4d1173fe2c81537ecd388c5a043550
sickbeard/search_queue.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -77,7 +77,7 @@ class SearchQueue(generic_queue.GenericQueue): generic_queue.GenericQueue.add_item(self, item) elif isinstance(item, ManualSearchQueueItem) and not self.is_ep_in_queue(item.ep_obj): generic_queue.GenericQueue.add_item(self, item) - elif isinstance(item, FailedQueueItem) and not self.is_in_queue(item.show, item.segment): + elif isinstance(item, FailedQueueItem) and not self.is_in_queue(item.show, item.episodes): generic_queue.GenericQueue.add_item(self, item) else: logger.log(u"Not adding item, it's already in the queue", logger.DEBUG)
elif isinstance ( item , FailedQueueItem ) and not self . is_in_queue ( item . show , item . segment ) : generic_queue . GenericQueue . add_item ( self , item )
elif isinstance ( item , FailedQueueItem ) and not self . is_in_queue ( item . show , item . episodes ) : generic_queue . GenericQueue . add_item ( self , item )
CHANGE_ATTRIBUTE_USED
[["Update", ["identifier:segment", 3, 89, 3, 96], "episodes"]]
jackkiej/SickRage@a0bd46c18a6000c188dca55194361433c7265536
Fixes issue #423
[ { "sha": "7c11399c4f100f3fff034f14d12c7529ec641066", "filename": "sickbeard/search_queue.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/a0bd46c18a6000c188dca55194361433c7265536/sickbeard%2Fsearch_queue.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/a0bd46c18a6000c188dca55194361433c7265536/sickbeard%2Fsearch_queue.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fsearch_queue.py?ref=a0bd46c18a6000c188dca55194361433c7265536", "patch": "@@ -77,7 +77,7 @@ def add_item(self, item):\n generic_queue.GenericQueue.add_item(self, item)\n elif isinstance(item, ManualSearchQueueItem) and not self.is_ep_in_queue(item.ep_obj):\n generic_queue.GenericQueue.add_item(self, item)\n- elif isinstance(item, FailedQueueItem) and not self.is_in_queue(item.show, item.segment):\n+ elif isinstance(item, FailedQueueItem) and not self.is_in_queue(item.show, item.episodes):\n generic_queue.GenericQueue.add_item(self, item)\n else:\n logger.log(u\"Not adding item, it's already in the queue\", logger.DEBUG)" } ]
SickRage
348c0edf261c1120a0504c3b0a294c18c587f257
36359b1547f5d3d94fc46e187310ad59dc1629f9
sickbeard/providers/generic.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -114,7 +114,7 @@ class GenericProvider: if not headers: headers = [] - data = helpers.getURL(url, post_data, headers, json=json, use_proxy=True) + data = helpers.getURL(url, post_data, headers, json=json) if not data: logger.log(u"Error loading " + self.name + " URL: " + url, logger.ERROR)
data = helpers . getURL ( url , post_data , headers , json = json , use_proxy = True )
data = helpers . getURL ( url , post_data , headers , json = json )
SAME_FUNCTION_LESS_ARGS
[["Delete", [",:,", 3, 65, 3, 66]], ["Delete", ["identifier:use_proxy", 3, 67, 3, 76]], ["Delete", ["=:=", 3, 76, 3, 77]], ["Delete", ["true:True", 3, 77, 3, 81]], ["Delete", ["keyword_argument", 3, 67, 3, 81]]]
jackkiej/SickRage@348c0edf261c1120a0504c3b0a294c18c587f257
don't use proxy by default
[ { "sha": "731381d9c98bd92a661326eef3338700cc7c32e8", "filename": "sickbeard/providers/generic.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/348c0edf261c1120a0504c3b0a294c18c587f257/sickbeard%2Fproviders%2Fgeneric.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/348c0edf261c1120a0504c3b0a294c18c587f257/sickbeard%2Fproviders%2Fgeneric.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Fgeneric.py?ref=348c0edf261c1120a0504c3b0a294c18c587f257", "patch": "@@ -114,7 +114,7 @@ def getURL(self, url, post_data=None, headers=None, json=False):\n if not headers:\n headers = []\n \n- data = helpers.getURL(url, post_data, headers, json=json, use_proxy=True)\n+ data = helpers.getURL(url, post_data, headers, json=json)\n \n if not data:\n logger.log(u\"Error loading \" + self.name + \" URL: \" + url, logger.ERROR)" } ]
SickRage
47e40213ec48c53ab160af44c4685ca9f229b890
358f683d40dd15518ae782fe50784dc376a896d0
sickbeard/name_cache.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -91,7 +91,7 @@ def buildNameCache(show=None): for show in sickbeard.showList: buildNameCache(show) else: - logger.log(u"Building internal name cache for " + show.name, logger.INFO) + logger.log(u"Building internal name cache for " + show.name, logger.DEBUG) clearCache(show.indexerid) for curSeason in [-1] + sickbeard.scene_exceptions.get_scene_seasons(show.indexerid): for name in list(set(sickbeard.scene_exceptions.get_scene_exceptions(show.indexerid, season=curSeason) + [show.name])):
logger . log ( u"Building internal name cache for " + show . name , logger . INFO )
logger . log ( u"Building internal name cache for " + show . name , logger . DEBUG )
CHANGE_ATTRIBUTE_USED
[["Update", ["identifier:INFO", 3, 77, 3, 81], "DEBUG"]]
jackkiej/SickRage@47e40213ec48c53ab160af44c4685ca9f229b890
Change show names cache to DEBUG
[ { "sha": "8f00b35b077a3c0479120d02733129dd594161af", "filename": "sickbeard/name_cache.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/47e40213ec48c53ab160af44c4685ca9f229b890/sickbeard%2Fname_cache.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/47e40213ec48c53ab160af44c4685ca9f229b890/sickbeard%2Fname_cache.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fname_cache.py?ref=47e40213ec48c53ab160af44c4685ca9f229b890", "patch": "@@ -91,7 +91,7 @@ def buildNameCache(show=None):\n for show in sickbeard.showList:\n buildNameCache(show)\n else:\n- logger.log(u\"Building internal name cache for \" + show.name, logger.INFO)\n+ logger.log(u\"Building internal name cache for \" + show.name, logger.DEBUG)\n clearCache(show.indexerid)\n for curSeason in [-1] + sickbeard.scene_exceptions.get_scene_seasons(show.indexerid):\n for name in list(set(sickbeard.scene_exceptions.get_scene_exceptions(show.indexerid, season=curSeason) + [show.name])):" } ]
SickRage
d6aedaef6148d90a14e20710c23e20a27333c948
47e40213ec48c53ab160af44c4685ca9f229b890
sickbeard/indexers/indexer_config.py
https://github.com/jackkiej/SickRage
true
false
false
@@ -51,6 +51,6 @@ indexerConfig[INDEXER_TVDB]['base_url'] = 'http://thetvdb.com/api/%(apikey)s/ser indexerConfig[INDEXER_TVRAGE]['trakt_id'] = 'tvrage_id' indexerConfig[INDEXER_TVRAGE]['xem_origin'] = 'rage' indexerConfig[INDEXER_TVRAGE]['icon'] = 'tvrage16.png' -indexerConfig[INDEXER_TVRAGE]['scene_loc'] = 'http://http://sickragetv.github.io/sr_tvrage_scene_exceptions/exceptions.txt' +indexerConfig[INDEXER_TVRAGE]['scene_loc'] = 'http://sickragetv.github.io/sr_tvrage_scene_exceptions/exceptions.txt' indexerConfig[INDEXER_TVRAGE]['show_url'] = 'http://tvrage.com/shows/id-' indexerConfig[INDEXER_TVRAGE]['base_url'] = 'http://tvrage.com/showinfo.php?key=%(apikey)s&sid=' % indexerConfig[INDEXER_TVRAGE]['api_params']
indexerConfig [ INDEXER_TVRAGE ] [ 'scene_loc' ] = 'http://http://sickragetv.github.io/sr_tvrage_scene_exceptions/exceptions.txt'
indexerConfig [ INDEXER_TVRAGE ] [ 'scene_loc' ] = 'http://sickragetv.github.io/sr_tvrage_scene_exceptions/exceptions.txt'
CHANGE_STRING_LITERAL
[["Update", ["string:'http://http://sickragetv.github.io/sr_tvrage_scene_exceptions/exceptions.txt'", 3, 46, 3, 124], "'http://sickragetv.github.io/sr_tvrage_scene_exceptions/exceptions.txt'"]]
jackkiej/SickRage@d6aedaef6148d90a14e20710c23e20a27333c948
Fix URL with double http:// https://github.com/SiCKRAGETV/sickrage-issues/issues/2179
[ { "sha": "f19cd68cd004cf8cab602667614ad3e93af7383b", "filename": "sickbeard/indexers/indexer_config.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/d6aedaef6148d90a14e20710c23e20a27333c948/sickbeard%2Findexers%2Findexer_config.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/d6aedaef6148d90a14e20710c23e20a27333c948/sickbeard%2Findexers%2Findexer_config.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Findexers%2Findexer_config.py?ref=d6aedaef6148d90a14e20710c23e20a27333c948", "patch": "@@ -51,6 +51,6 @@\n indexerConfig[INDEXER_TVRAGE]['trakt_id'] = 'tvrage_id'\n indexerConfig[INDEXER_TVRAGE]['xem_origin'] = 'rage'\n indexerConfig[INDEXER_TVRAGE]['icon'] = 'tvrage16.png'\n-indexerConfig[INDEXER_TVRAGE]['scene_loc'] = 'http://http://sickragetv.github.io/sr_tvrage_scene_exceptions/exceptions.txt'\n+indexerConfig[INDEXER_TVRAGE]['scene_loc'] = 'http://sickragetv.github.io/sr_tvrage_scene_exceptions/exceptions.txt'\n indexerConfig[INDEXER_TVRAGE]['show_url'] = 'http://tvrage.com/shows/id-'\n indexerConfig[INDEXER_TVRAGE]['base_url'] = 'http://tvrage.com/showinfo.php?key=%(apikey)s&sid=' % indexerConfig[INDEXER_TVRAGE]['api_params']" } ]
SickRage
d89837ef358c26e26a463da4c5df73eb1266d251
9f0135c7ec12bcdeaece40e32464584376e56e0b
sickbeard/helpers.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -1117,7 +1117,7 @@ def makeZip(fileList, archive): try: - a = zipfile.ZipFile(archive, 'w', zipfile.ZIP_DEFLATED) + a = zipfile.ZipFile(archive, 'w', zipfile.ZIP_DEFLATED, allowZip64=True) for f in fileList: a.write(f) a.close()
a = zipfile . ZipFile ( archive , 'w' , zipfile . ZIP_DEFLATED )
a = zipfile . ZipFile ( archive , 'w' , zipfile . ZIP_DEFLATED , allowZip64 = True )
SAME_FUNCTION_MORE_ARGS
[["Insert", ["argument_list", 1, 28, 1, 64], [",:,", "T"], 6], ["Insert", ["argument_list", 1, 28, 1, 64], ["keyword_argument", "N0"], 7], ["Insert", "N0", ["identifier:allowZip64", "T"], 0], ["Insert", "N0", ["=:=", "T"], 1], ["Insert", "N0", ["true:True", "T"], 2]]
jackkiej/SickRage@d89837ef358c26e26a463da4c5df73eb1266d251
Fix error: Filesize would require ZIP64 extensions
[ { "sha": "053fef76092eac52921af23c1013d37d34959e3c", "filename": "sickbeard/helpers.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/d89837ef358c26e26a463da4c5df73eb1266d251/sickbeard%2Fhelpers.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/d89837ef358c26e26a463da4c5df73eb1266d251/sickbeard%2Fhelpers.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fhelpers.py?ref=d89837ef358c26e26a463da4c5df73eb1266d251", "patch": "@@ -1117,7 +1117,7 @@ def makeZip(fileList, archive):\n 'archive' is the file name for the archive with a full path\n \"\"\"\n try:\n- a = zipfile.ZipFile(archive, 'w', zipfile.ZIP_DEFLATED)\n+ a = zipfile.ZipFile(archive, 'w', zipfile.ZIP_DEFLATED, allowZip64=True)\n for f in fileList:\n a.write(f)\n a.close()" } ]
SickRage
c3c8c1b9a52d0ed336675e387b91316765c22272
d61ce0945dcb46e8dd1c952a7f8fc78f7b63957e
sickbeard/postProcessor.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -912,7 +912,7 @@ class PostProcessor(object): # try to find out if we have enough space to perform the copy or move action. if not helpers.isFileLocked(self.file_path, False): - if not verify_freespace(self.file_path, ek.ek(os.path.dirname, ep_obj.show._location), [ep_obj] + ep_obj.relatedEps): + if not verify_freespace(self.file_path, ep_obj.show._location, [ep_obj] + ep_obj.relatedEps): self._log("Not enough space to continue PP, exiting") return False else:
if not verify_freespace ( self . file_path , ek . ek ( os . path . dirname , ep_obj . show . _location ) , [ ep_obj ] + ep_obj . relatedEps ) : self . _log ( "Not enough space to continue PP, exiting" ) return False
if not verify_freespace ( self . file_path , ep_obj . show . _location , [ ep_obj ] + ep_obj . relatedEps ) : self . _log ( "Not enough space to continue PP, exiting" ) return False
SINGLE_STMT
[["Move", ["argument_list", 3, 36, 3, 129], ["attribute", 3, 76, 3, 97], 3], ["Delete", ["identifier:ek", 3, 53, 3, 55]], ["Delete", [".:.", 3, 55, 3, 56]], ["Delete", ["identifier:ek", 3, 56, 3, 58]], ["Delete", ["attribute", 3, 53, 3, 58]], ["Delete", ["(:(", 3, 58, 3, 59]], ["Delete", ["identifier:os", 3, 59, 3, 61]], ["Delete", [".:.", 3, 61, 3, 62]], ["Delete", ["identifier:path", 3, 62, 3, 66]], ["Delete", ["attribute", 3, 59, 3, 66]], ["Delete", [".:.", 3, 66, 3, 67]], ["Delete", ["identifier:dirname", 3, 67, 3, 74]], ["Delete", ["attribute", 3, 59, 3, 74]], ["Delete", [",:,", 3, 74, 3, 75]], ["Delete", ["):)", 3, 97, 3, 98]], ["Delete", ["argument_list", 3, 58, 3, 98]], ["Delete", ["call", 3, 53, 3, 98]]]
jackkiej/SickRage@c3c8c1b9a52d0ed336675e387b91316765c22272
Check free space of show folder instead of it's parent - fixes SiCKRAGETV/sickrage-issues#2235
[ { "sha": "c66022ea08aacdade63c001d2ae49be50e8ab4cf", "filename": "sickbeard/postProcessor.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/c3c8c1b9a52d0ed336675e387b91316765c22272/sickbeard%2FpostProcessor.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/c3c8c1b9a52d0ed336675e387b91316765c22272/sickbeard%2FpostProcessor.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2FpostProcessor.py?ref=c3c8c1b9a52d0ed336675e387b91316765c22272", "patch": "@@ -912,7 +912,7 @@ def process(self):\n \n # try to find out if we have enough space to perform the copy or move action.\n if not helpers.isFileLocked(self.file_path, False):\n- if not verify_freespace(self.file_path, ek.ek(os.path.dirname, ep_obj.show._location), [ep_obj] + ep_obj.relatedEps):\n+ if not verify_freespace(self.file_path, ep_obj.show._location, [ep_obj] + ep_obj.relatedEps):\n self._log(\"Not enough space to continue PP, exiting\")\n return False\n else:" } ]
SickRage
73dcc5bcd20d4c99568fbb26e1c5890015e2e478
7f2d504abc82a8df3fb475254fb386af8d5a94cc
sickbeard/postProcessor.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -912,7 +912,7 @@ class PostProcessor(object): # try to find out if we have enough space to perform the copy or move action. if not helpers.isFileLocked(self.file_path, False): - if not verify_freespace(self.file_path, ek.ek(os.path.dirname, ep_obj.show._location), [ep_obj] + ep_obj.relatedEps): + if not verify_freespace(self.file_path, ep_obj.show._location, [ep_obj] + ep_obj.relatedEps): self._log("Not enough space to continue PP, exiting") return False else:
if not verify_freespace ( self . file_path , ek . ek ( os . path . dirname , ep_obj . show . _location ) , [ ep_obj ] + ep_obj . relatedEps ) : self . _log ( "Not enough space to continue PP, exiting" ) return False
if not verify_freespace ( self . file_path , ep_obj . show . _location , [ ep_obj ] + ep_obj . relatedEps ) : self . _log ( "Not enough space to continue PP, exiting" ) return False
SINGLE_STMT
[["Move", ["argument_list", 3, 36, 3, 129], ["attribute", 3, 76, 3, 97], 3], ["Delete", ["identifier:ek", 3, 53, 3, 55]], ["Delete", [".:.", 3, 55, 3, 56]], ["Delete", ["identifier:ek", 3, 56, 3, 58]], ["Delete", ["attribute", 3, 53, 3, 58]], ["Delete", ["(:(", 3, 58, 3, 59]], ["Delete", ["identifier:os", 3, 59, 3, 61]], ["Delete", [".:.", 3, 61, 3, 62]], ["Delete", ["identifier:path", 3, 62, 3, 66]], ["Delete", ["attribute", 3, 59, 3, 66]], ["Delete", [".:.", 3, 66, 3, 67]], ["Delete", ["identifier:dirname", 3, 67, 3, 74]], ["Delete", ["attribute", 3, 59, 3, 74]], ["Delete", [",:,", 3, 74, 3, 75]], ["Delete", ["):)", 3, 97, 3, 98]], ["Delete", ["argument_list", 3, 58, 3, 98]], ["Delete", ["call", 3, 53, 3, 98]]]
jackkiej/SickRage@73dcc5bcd20d4c99568fbb26e1c5890015e2e478
Check free space of show folder instead of it's parent - fixes SiCKRAGETV/sickrage-issues#2235
[ { "sha": "c66022ea08aacdade63c001d2ae49be50e8ab4cf", "filename": "sickbeard/postProcessor.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/73dcc5bcd20d4c99568fbb26e1c5890015e2e478/sickbeard%2FpostProcessor.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/73dcc5bcd20d4c99568fbb26e1c5890015e2e478/sickbeard%2FpostProcessor.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2FpostProcessor.py?ref=73dcc5bcd20d4c99568fbb26e1c5890015e2e478", "patch": "@@ -912,7 +912,7 @@ def process(self):\n \n # try to find out if we have enough space to perform the copy or move action.\n if not helpers.isFileLocked(self.file_path, False):\n- if not verify_freespace(self.file_path, ek.ek(os.path.dirname, ep_obj.show._location), [ep_obj] + ep_obj.relatedEps):\n+ if not verify_freespace(self.file_path, ep_obj.show._location, [ep_obj] + ep_obj.relatedEps):\n self._log(\"Not enough space to continue PP, exiting\")\n return False\n else:" } ]
SickRage
7c3d576e0a936137de91a34265cea6c16d4b0a35
a237f41992900bde26642db4a92a2d16d21a1c5f
sickbeard/show_queue.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -438,7 +438,7 @@ class QueueItemRefresh(ShowQueueItem): ShowQueueItem.__init__(self, ShowQueueActions.REFRESH, show) # do refreshes first because they're quick - self.priority = generic_queue.QueuePriorities.HIGH + self.priority = generic_queue.QueuePriorities.NORMAL # force refresh certain items self.force = force
self . priority = generic_queue . QueuePriorities . HIGH
self . priority = generic_queue . QueuePriorities . NORMAL
CHANGE_ATTRIBUTE_USED
[["Update", ["identifier:HIGH", 3, 55, 3, 59], "NORMAL"]]
jackkiej/SickRage@7c3d576e0a936137de91a34265cea6c16d4b0a35
Make show REFRESH normal priority - avoid stuck other threads It user has too many shows. it can take a lot to refresh and other higher priorities have to wait like manual search, search, daily search, etc From https://github.com/SiCKRAGETV/sickrage-issues/issues/589 " Change Refresh thread to Normal instead of High (avoid show refresh stuck other threads)"
[ { "sha": "df0c9475cfb287145f6cd54c71aa967f5f827dea", "filename": "sickbeard/show_queue.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/7c3d576e0a936137de91a34265cea6c16d4b0a35/sickbeard%2Fshow_queue.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/7c3d576e0a936137de91a34265cea6c16d4b0a35/sickbeard%2Fshow_queue.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fshow_queue.py?ref=7c3d576e0a936137de91a34265cea6c16d4b0a35", "patch": "@@ -438,7 +438,7 @@ def __init__(self, show=None, force=False):\n ShowQueueItem.__init__(self, ShowQueueActions.REFRESH, show)\n \n # do refreshes first because they're quick\n- self.priority = generic_queue.QueuePriorities.HIGH\n+ self.priority = generic_queue.QueuePriorities.NORMAL\n \n # force refresh certain items\n self.force = force" } ]
SickRage
1a6b15d89bef5d1f46f6de9704b81f38922a4b92
7c3d576e0a936137de91a34265cea6c16d4b0a35
sickbeard/logger.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -192,7 +192,7 @@ class Logger(object): title_Error = str(curError.title) if not len(title_Error) or title_Error == 'None': title_Error = re.match("^[A-Z0-9\-\[\] :]+::\s*(.*)$", ek.ss(str(curError.message))).group(1) - if len(title_Error) > 1024: + if len(title_Error.encode('utf-8')) > 1024: title_Error = title_Error[0:1024] except Exception as e: self.log("Unable to get error title : " + sickbeard.exceptions.ex(e), ERROR)
if len ( title_Error ) > 1024 : title_Error = title_Error [ 0 : 1024 ]
if len ( title_Error . encode ( 'utf-8' ) ) > 1024 : title_Error = title_Error [ 0 : 1024 ]
ADD_METHOD_CALL
[["Insert", ["argument_list", 3, 27, 3, 40], ["call", "N0"], 1], ["Insert", ["argument_list", 3, 27, 3, 40], ["):)", "T"], 2], ["Insert", "N0", ["attribute", "N1"], 0], ["Insert", "N0", ["argument_list", "N2"], 1], ["Move", "N1", ["identifier:title_Error", 3, 28, 3, 39], 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, 39, 3, 40], 2]]
jackkiej/SickRage@1a6b15d89bef5d1f46f6de9704b81f38922a4b92
Try to fix Github title lenght limit https://github.com/SiCKRAGETV/sickrage-issues/issues/2191
[ { "sha": "c96adbc1c910f711d7c5d6c1c5a8abd21a9d4b52", "filename": "sickbeard/logger.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/1a6b15d89bef5d1f46f6de9704b81f38922a4b92/sickbeard%2Flogger.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/1a6b15d89bef5d1f46f6de9704b81f38922a4b92/sickbeard%2Flogger.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Flogger.py?ref=1a6b15d89bef5d1f46f6de9704b81f38922a4b92", "patch": "@@ -192,7 +192,7 @@ def submit_errors(self):\n title_Error = str(curError.title)\n if not len(title_Error) or title_Error == 'None':\n title_Error = re.match(\"^[A-Z0-9\\-\\[\\] :]+::\\s*(.*)$\", ek.ss(str(curError.message))).group(1)\n- if len(title_Error) > 1024:\n+ if len(title_Error.encode('utf-8')) > 1024:\n title_Error = title_Error[0:1024]\n except Exception as e:\n self.log(\"Unable to get error title : \" + sickbeard.exceptions.ex(e), ERROR)" } ]
SickRage
ec6942375bf6c401d35539b1a0db654c44abe18d
e8a9c4ebcf5e3a02ea4b256db363b411f8c3dc19
sickbeard/providers/newznab.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -149,7 +149,7 @@ class NewznabProvider(generic.NZBProvider): rid = helpers.mapIndexersToShow(ep_obj.show)[2] if rid: cur_params['rid'] = rid - elif 'rid' in params: + elif 'rid' in cur_params: cur_params.pop('rid') # add new query strings for exceptions
if rid : cur_params [ 'rid' ] = rid elif 'rid' in params : cur_params . pop ( 'rid' )
if rid : cur_params [ 'rid' ] = rid elif 'rid' in cur_params : cur_params . pop ( 'rid' )
CHANGE_IDENTIFIER_USED
[["Update", ["identifier:params", 3, 23, 3, 29], "cur_params"]]
jackkiej/SickRage@ec6942375bf6c401d35539b1a0db654c44abe18d
Fix newznab global name 'params' is not defined https://github.com/SiCKRAGETV/sickrage-issues/issues/2297
[ { "sha": "865bf64ed39f26683e65c54c264f300c3e5e614d", "filename": "sickbeard/providers/newznab.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/ec6942375bf6c401d35539b1a0db654c44abe18d/sickbeard%2Fproviders%2Fnewznab.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/ec6942375bf6c401d35539b1a0db654c44abe18d/sickbeard%2Fproviders%2Fnewznab.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Fnewznab.py?ref=ec6942375bf6c401d35539b1a0db654c44abe18d", "patch": "@@ -149,7 +149,7 @@ def _get_season_search_strings(self, ep_obj):\n rid = helpers.mapIndexersToShow(ep_obj.show)[2]\n if rid:\n cur_params['rid'] = rid\n- elif 'rid' in params:\n+ elif 'rid' in cur_params:\n cur_params.pop('rid')\n \n # add new query strings for exceptions" } ]
SickRage
71b9d388467bd2b2cfe91e957c01816fed351ee4
ec6942375bf6c401d35539b1a0db654c44abe18d
sickbeard/webserve.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -301,7 +301,7 @@ class LoginHandler(BaseHandler): if api_key: remember_me = int(self.get_argument('remember_me', default=0) or 0) self.set_secure_cookie('sickrage_user', api_key, expires_days=30 if remember_me > 0 else None) - logger.log('User logged into the SickRage web interface from IP: ' + self.request.remote_ip, logger.INFO) + logger.log('User logged into the SickRage web interface', logger.INFO) else: logger.log('User attempted a failed login to the SickRage web interface from IP: ' + self.request.remote_ip, logger.WARNING)
logger . log ( 'User logged into the SickRage web interface from IP: ' + self . request . remote_ip , logger . INFO )
logger . log ( 'User logged into the SickRage web interface' , logger . INFO )
SINGLE_STMT
[["Update", ["string:'User logged into the SickRage web interface from IP: '", 3, 24, 3, 79], "'User logged into the SickRage web interface'"], ["Move", ["argument_list", 3, 23, 3, 118], ["string:'User logged into the SickRage web interface from IP: '", 3, 24, 3, 79], 1], ["Delete", ["+:+", 3, 80, 3, 81]], ["Delete", ["identifier:self", 3, 82, 3, 86]], ["Delete", [".:.", 3, 86, 3, 87]], ["Delete", ["identifier:request", 3, 87, 3, 94]], ["Delete", ["attribute", 3, 82, 3, 94]], ["Delete", [".:.", 3, 94, 3, 95]], ["Delete", ["identifier:remote_ip", 3, 95, 3, 104]], ["Delete", ["attribute", 3, 82, 3, 104]], ["Delete", ["binary_operator", 3, 24, 3, 104]]]
jackkiej/SickRage@71b9d388467bd2b2cfe91e957c01816fed351ee4
Don't log IP when successful connection to SR Fixes https://github.com/SiCKRAGETV/sickrage-issues/issues/2201
[ { "sha": "b50c107080337680c58e8f1b92d1888e74588500", "filename": "sickbeard/webserve.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/71b9d388467bd2b2cfe91e957c01816fed351ee4/sickbeard%2Fwebserve.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/71b9d388467bd2b2cfe91e957c01816fed351ee4/sickbeard%2Fwebserve.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fwebserve.py?ref=71b9d388467bd2b2cfe91e957c01816fed351ee4", "patch": "@@ -301,7 +301,7 @@ def post(self, *args, **kwargs):\n if api_key:\n remember_me = int(self.get_argument('remember_me', default=0) or 0)\n self.set_secure_cookie('sickrage_user', api_key, expires_days=30 if remember_me > 0 else None)\n- logger.log('User logged into the SickRage web interface from IP: ' + self.request.remote_ip, logger.INFO)\n+ logger.log('User logged into the SickRage web interface', logger.INFO)\n else:\n logger.log('User attempted a failed login to the SickRage web interface from IP: ' + self.request.remote_ip, logger.WARNING) \n " } ]
SickRage
19209b0d6e16daae08abea08c3fc26b7b5fea988
2e2309402143d87a3358f150075a72154b086fdc
sickbeard/tv.py
https://github.com/jackkiej/SickRage
true
false
true
@@ -1477,7 +1477,7 @@ class TVEpisode(object): for video, subs in foundSubs.iteritems(): for sub in subs: - subpath = subliminal.subtitle.get_subtitle_path(video.name, sub.language) + subpath = subliminal.subtitle.get_subtitle_path(video.name, sub.language if sickbeard.SUBTITLES_MULTI else None) if sickbeard.SUBTITLES_DIR and ek.ek(os.path.exists, sickbeard.SUBTITLES_DIR): subpath = ek.ek(os.path.join, sickbeard.SUBTITLES_DIR, ek.ek(os.path.basename, subpath)) helpers.chmodAsParent(subpath)
subpath = subliminal . subtitle . get_subtitle_path ( video . name , sub . language )
subpath = subliminal . subtitle . get_subtitle_path ( video . name , sub . language if sickbeard . SUBTITLES_MULTI else None )
SINGLE_STMT
[["Insert", ["argument_list", 3, 68, 3, 94], ["conditional_expression", "N0"], 3], ["Move", "N0", ["attribute", 3, 81, 3, 93], 0], ["Insert", "N0", ["if:if", "T"], 1], ["Insert", "N0", ["attribute", "N1"], 2], ["Insert", "N0", ["else:else", "T"], 3], ["Insert", "N0", ["none:None", "T"], 4], ["Insert", "N1", ["identifier:sickbeard", "T"], 0], ["Insert", "N1", [".:.", "T"], 1], ["Insert", "N1", ["identifier:SUBTITLES_MULTI", "T"], 2]]
jackkiej/SickRage@19209b0d6e16daae08abea08c3fc26b7b5fea988
Take single/multi subs into account when changing permissions - fixes SiCKRAGETV/sickrage-issues#2299
[ { "sha": "12c67056c4f0d119bb5ee755b5df447779874b0e", "filename": "sickbeard/tv.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/jackkiej/SickRage/blob/19209b0d6e16daae08abea08c3fc26b7b5fea988/sickbeard%2Ftv.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/19209b0d6e16daae08abea08c3fc26b7b5fea988/sickbeard%2Ftv.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Ftv.py?ref=19209b0d6e16daae08abea08c3fc26b7b5fea988", "patch": "@@ -1477,7 +1477,7 @@ def downloadSubtitles(self, force=False):\n \n for video, subs in foundSubs.iteritems():\n for sub in subs:\n- subpath = subliminal.subtitle.get_subtitle_path(video.name, sub.language)\n+ subpath = subliminal.subtitle.get_subtitle_path(video.name, sub.language if sickbeard.SUBTITLES_MULTI else None)\n if sickbeard.SUBTITLES_DIR and ek.ek(os.path.exists, sickbeard.SUBTITLES_DIR):\n subpath = ek.ek(os.path.join, sickbeard.SUBTITLES_DIR, ek.ek(os.path.basename, subpath))\n helpers.chmodAsParent(subpath)" } ]
SickRage
5e15eeb886355530703ca6d9ab3c2c437a401f52
340ff4cb59e6285d46ec7c22a654a77e116e0a29
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
[["Move", ["if_statement", 3, 17, 5, 29], ["not_operator", 3, 33, 4, 75], 1], ["Update", ["identifier:url", 3, 37, 3, 40], "title"], ["Update", ["identifier:seeders", 3, 48, 3, 55], "url"], ["Insert", ["boolean_operator", 3, 63, 4, 75], ["boolean_operator", "N0"], 0], ["Insert", "N0", ["identifier:seeders", "T"], 0], ["Insert", "N0", ["or:or", "T"], 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], ["Delete", ["not:not", 3, 20, 3, 23]], ["Delete", ["identifier:title", 3, 24, 3, 29]], ["Delete", ["or:or", 3, 30, 3, 32]], ["Delete", ["boolean_operator", 3, 24, 4, 75]], ["Delete", ["not_operator", 3, 20, 4, 75]]]
jackkiej/SickRage@5e15eeb886355530703ca6d9ab3c2c437a401f52
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/5e15eeb886355530703ca6d9ab3c2c437a401f52/sickbeard%2Fproviders%2Fhdtorrents.py", "raw_url": "https://github.com/jackkiej/SickRage/raw/5e15eeb886355530703ca6d9ab3c2c437a401f52/sickbeard%2Fproviders%2Fhdtorrents.py", "contents_url": "https://api.github.com/repos/jackkiej/SickRage/contents/sickbeard%2Fproviders%2Fhdtorrents.py?ref=5e15eeb886355530703ca6d9ab3c2c437a401f52", "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 " } ]