forked from MediaBrowser/plugin.video.emby
-
-
Notifications
You must be signed in to change notification settings - Fork 79
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 #2081 from croneter/python3-beta
Bump Python3 stable
- Loading branch information
Showing
31 changed files
with
781 additions
and
103 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Grabs kodi_id and kodi_type for the Kodi item the context menu was called for | ||
and sends a request to our main Python instance | ||
""" | ||
from urllib.parse import urlencode | ||
|
||
from xbmc import sleep | ||
from xbmcgui import Window | ||
|
||
from resources.lib.contextmenu.common import kodi_item_from_listitem | ||
|
||
|
||
def main(): | ||
kodi_id, kodi_type = kodi_item_from_listitem() | ||
args = { | ||
'kodi_id': kodi_id, | ||
'kodi_type': kodi_type | ||
} | ||
window = Window(10000) | ||
while window.getProperty('plexkodiconnect.command'): | ||
sleep(20) | ||
window.setProperty('plexkodiconnect.command', | ||
'WATCHLIST_ADD?%s' % urlencode(args)) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
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,28 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Grabs kodi_id and kodi_type for the Kodi item the context menu was called for | ||
and sends a request to our main Python instance | ||
""" | ||
from urllib.parse import urlencode | ||
|
||
from xbmc import sleep | ||
from xbmcgui import Window | ||
|
||
from resources.lib.contextmenu.common import kodi_item_from_listitem | ||
|
||
|
||
def main(): | ||
kodi_id, kodi_type = kodi_item_from_listitem() | ||
args = { | ||
'kodi_id': kodi_id, | ||
'kodi_type': kodi_type | ||
} | ||
window = Window(10000) | ||
while window.getProperty('plexkodiconnect.command'): | ||
sleep(20) | ||
window.setProperty('plexkodiconnect.command', | ||
'WATCHLIST_REMOVE?%s' % urlencode(args)) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
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
Oops, something went wrong.