-
Notifications
You must be signed in to change notification settings - Fork 0
/
2_change_update_repo.patch
57 lines (49 loc) · 4.09 KB
/
2_change_update_repo.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
diff '--exclude=.git' -urb old/gui/slick/interfaces/default/config.tmpl new/gui/slick/interfaces/default/config.tmpl
--- old/gui/slick/interfaces/default/config.tmpl 2013-06-06 09:54:41.664627642 +0200
+++ new/gui/slick/interfaces/default/config.tmpl 2013-06-06 13:48:00.000000000 +0200
@@ -64,7 +64,7 @@
<tr><td class="infoTableHeader">Python Version: </td><td class="infoTableCell">$sys.version[:120]</td></tr>
<tr class="infoTableSeperator"><td class="infoTableHeader"><i class="icon16-sb"></i> Homepage </td><td><a href="http://www.sickbeard.com/">http://www.sickbeard.com/</a></td></tr>
<tr><td class="infoTableHeader"><i class="icon16-web"></i> Forums </td><td><a href="http://sickbeard.com/forums/viewtopic.php?f=9&t=2386">http://sickbeard.com/forums/</a></td></tr>
- <tr><td class="infoTableHeader"><i class="icon16-github"></i> Source </td><td><a href="https://github.com/mr-orange/Sick-Beard/">https://github.com/mr-orange/Sick-Beard/</a></td></tr>
+ <tr><td class="infoTableHeader"><i class="icon16-github"></i> Source </td><td><a href="https://github.com/xbianonpi/Sick-Beard-TPB/">https://github.com/xbianonpi/Sick-Beard-TPB/</a></td></tr>
<tr><td class="infoTableHeader"><i class="icon16-win"></i> Bug Tracker &<br/> Windows Builds </td><td><a href="http://code.google.com/p/sickbeard/">http://code.google.com/p/sickbeard/</a></td></tr>
<tr><td class="infoTableHeader"><i class="icon16-mirc"></i> Internet Relay Chat </td><td><a href="irc://irc.freenode.net/#sickbeard"><i>#sickbeard</i> on <i>irc.freenode.net</i></a></td></tr>
</table>
diff '--exclude=.git' -urb old/sickbeard/gh_api.py new/sickbeard/gh_api.py
--- old/sickbeard/gh_api.py 2013-06-06 09:54:42.904591619 +0200
+++ new/sickbeard/gh_api.py 2013-06-06 13:50:30.000000000 +0200
@@ -33,7 +33,7 @@
"""
Access the API at the path given and with the optional params given.
- path: A list of the path elements to use (eg. ['repos', 'midgetspy', 'Sick-Beard', 'commits'])
+ path: A list of the path elements to use (eg. ['repos', 'xbianonpi', 'Sick-Beard-TPB', 'commits'])
params: Optional dict of name/value pairs for extra params to send. (eg. {'per_page': 10})
Returns a deserialized json object of the result. Doesn't do any error checking (hope it works).
diff '--exclude=.git' -urb old/sickbeard/versionChecker.py new/sickbeard/versionChecker.py
--- old/sickbeard/versionChecker.py 2013-06-06 09:54:43.014588423 +0200
+++ new/sickbeard/versionChecker.py 2013-06-06 13:55:36.000000000 +0200
@@ -315,7 +315,7 @@
gh = github.GitHub()
# find newest commit
- for curCommit in gh.commits('mr-orange', 'Sick-Beard', version.SICKBEARD_VERSION):
+ for curCommit in gh.commits('xbianonpi', 'Sick-Beard-TPB', version.SICKBEARD_VERSION):
if not self._newest_commit_hash:
self._newest_commit_hash = curCommit['sha']
@@ -344,9 +344,9 @@
return
if self._newest_commit_hash:
- url = 'http://github.com/mr-orange/Sick-Beard/compare/'+self._cur_commit_hash+'...'+self._newest_commit_hash
+ url = 'http://github.com/xbianonpi/Sick-Beard-TPB/compare/'+self._cur_commit_hash+'...'+self._newest_commit_hash
else:
- url = 'http://github.com/mr-orange/Sick-Beard/commits/'
+ url = 'http://github.com/xbianonpi/Sick-Beard-TPB/commits/'
new_str = 'There is a <a class="update" href="'+url+'" onclick="window.open(this.href); return false;">newer version available</a> ('+message+')'
new_str += "— <a class=""update"" href=\""+self.get_update_url()+"\">Update Now</a>"
@@ -452,7 +452,7 @@
Downloads the latest source tarball from github and installs it over the existing version.
"""
- tar_download_url = 'https://github.com/mr-orange/Sick-Beard/tarball/'+version.SICKBEARD_VERSION
+ tar_download_url = 'https://github.com/xbianonpi/Sick-Beard-TPB/tarball/'+version.SICKBEARD_VERSION
sb_update_dir = os.path.join(sickbeard.PROG_DIR, 'sb-update')
version_path = os.path.join(sickbeard.PROG_DIR, 'version.txt')