-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
frdfsnlght
committed
Dec 19, 2014
1 parent
c69c0a4
commit 9058a80
Showing
16 changed files
with
170 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
* wait for delete failed API | ||
* submit issue: sb.searchtvdb and sb.searchtvrage both search all indexers | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import xbmc | ||
import xbmcgui | ||
|
||
import util as util | ||
|
||
showId = util.pluginArgs[0] | ||
season = util.pluginArgs[1] | ||
episode = util.pluginArgs[2] | ||
currentStatus = util.pluginArgs[3].lower() | ||
|
||
statuses = ['wanted', 'skipped', 'archived', 'ignored', 'failed'] | ||
statusList = [] | ||
for status in statuses: | ||
statusList.append(('* ' if status == currentStatus else '') + status.title()) | ||
dialog = xbmcgui.Dialog() | ||
statusIndex = dialog.select('Episode Status', statusList) | ||
if not statusIndex == -1: | ||
status = statuses[statusIndex] | ||
if not status == currentStatus: | ||
result = util.api.doEpisodeSetStatus(showId, season, episode, status) | ||
if result['result'] == 'success': | ||
xbmc.executebuiltin('Container.Refresh') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import xbmc | ||
import xbmcgui | ||
|
||
import util as util | ||
|
||
dialog = xbmcgui.Dialog() | ||
if dialog.yesno('Delete Failed Download', 'Delete this failed download?'): | ||
# need API for failed deletion | ||
release = util.pluginArgs[0] | ||
util.log('TODO: delete ' + release) | ||
#result = util.api.doDeleteFailed(release) | ||
#if result['result'] == 'success': | ||
#xbmc.executebuiltin('Container.Refresh') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,26 @@ | ||
import xbmcplugin | ||
import xbmcgui | ||
import urllib | ||
|
||
import resources.lib.util as util | ||
|
||
def menu(): | ||
util.xbmcAddDirectory('Shows', 'shows') | ||
util.xbmcAddDirectory('Upcoming', 'upcoming') | ||
util.xbmcAddDirectory('History', 'history') | ||
util.xbmcAddDirectory('Backlog', 'backlog') | ||
util.xbmcAddDirectory('Failed Downloads', 'failed') | ||
util.xbmcEndDirectory() | ||
|
||
def addDirectory(label, vf, params = {}): | ||
params['vf'] = vf | ||
url = util.pluginURL + '?' + urllib.urlencode(params) | ||
listItem = xbmcgui.ListItem(label) | ||
xbmcplugin.addDirectoryItem( | ||
handle = util.pluginId, | ||
url = url, | ||
listitem = listItem, | ||
isFolder = True | ||
) | ||
|
||
addDirectory('Shows', 'shows') | ||
addDirectory('Upcoming', 'upcoming') | ||
addDirectory('History', 'history') | ||
addDirectory('Backlog', 'backlog') | ||
addDirectory('Failed Downloads', 'failed') | ||
xbmcplugin.endOfDirectory(util.pluginId) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import xbmc | ||
import xbmcgui | ||
|
||
import util as util | ||
|
||
showId = util.pluginArgs[0] | ||
season = util.pluginArgs[1] | ||
|
||
statuses = ['wanted', 'skipped', 'archived', 'ignored', 'failed'] | ||
statusList = [] | ||
for status in statuses: | ||
statusList.append(status.title()) | ||
dialog = xbmcgui.Dialog() | ||
statusIndex = dialog.select('Season Status', statusList) | ||
if not statusIndex == -1: | ||
status = statuses[statusIndex] | ||
result = util.api.doEpisodeSetStatus(showId, season, None, status) | ||
if result['result'] == 'success': | ||
xbmc.executebuiltin('Container.Refresh') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters