-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #798 from MoojMidge/master
v7.0.8+beta.2
- Loading branch information
Showing
38 changed files
with
558 additions
and
336 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
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
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
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,42 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Copyright (C) 2014-2016 bromix (plugin.video.youtube) | ||
Copyright (C) 2016-2018 plugin.video.youtube | ||
SPDX-License-Identifier: GPL-2.0-only | ||
See LICENSES/GPL-2.0-only for more information. | ||
""" | ||
|
||
from __future__ import absolute_import, division, unicode_literals | ||
|
||
from . import menu_items | ||
from .directory_item import DirectoryItem | ||
from ..constants import paths | ||
|
||
|
||
class CommandItem(DirectoryItem): | ||
def __init__(self, | ||
name, | ||
command, | ||
context, | ||
image=None, | ||
fanart=None, | ||
plot=None): | ||
super(CommandItem, self).__init__( | ||
name, | ||
context.create_uri((paths.COMMAND, command)), | ||
image=image, | ||
fanart=fanart, | ||
plot=plot, | ||
action=True, | ||
category_label='__inherit__', | ||
) | ||
|
||
context_menu = [ | ||
menu_items.refresh(context), | ||
menu_items.goto_home(context), | ||
menu_items.goto_quick_search(context), | ||
menu_items.separator(), | ||
] | ||
self.add_context_menu(context_menu) |
Oops, something went wrong.