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
import struct, os | |
__64k = 65536 | |
__longlong_format_char = 'q' | |
__byte_size = struct.calcsize(__longlong_format_char) | |
def temp_file(): | |
import tempfile | |
file = tempfile.NamedTemporaryFile() | |
filename = file.name | |
return filename |
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
import struct, os | |
import urllib | |
__64k = 65536 | |
__longlong_format_char = 'q' | |
__byte_size = struct.calcsize(__longlong_format_char) | |
def temp_file(): | |
import tempfile | |
file = tempfile.NamedTemporaryFile() | |
filename = file.name |
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
import struct, os | |
__64k = 65536 | |
__longlong_format_char = 'q' | |
__byte_size = struct.calcsize(__longlong_format_char) | |
meta = {'filesize': '', 'filehash': ''} | |
def temp_file(): | |
import tempfile |
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
/home/osmc/.kodi/addons/plugin.video.seren/resources/lib/modules/player.py | |
def _keep_alive(self): | |
################################################ | |
#if self.min_time_before_scrape > time_left and not self.pre_scrape_initiated: | |
# self._handle_pre_scrape() | |
if self.current_time > 30 and not self.pre_scrape_initiated: | |
xbmc.log(str('SEREN_PRESCRAPE')+'===>PHIL', level=xbmc.LOGNOTICE) | |
self._handle_pre_scrape() | |
/home/osmc/.kodi/addons/plugin.video.seren/resources/lib/modules/globals.py |
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
{ | |
"yts": { | |
"name": "YTS", | |
"enabled": true, | |
"languages": [ | |
"en" | |
], | |
"base_url": "https://yts.am", | |
"fallback_urls": [ | |
"https://yts.pm", |
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
#!/usr/bin/python | |
import requests | |
import json | |
import time | |
import sys | |
import PTN | |
import re | |
regex = re.compile('[^a-zA-Z]') |
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
#!/usr/bin/env python | |
import requests | |
import json | |
import time | |
import sys | |
import base64 | |
kodi_credentials = b'USER:PASSWORD' | |
kodi_ip = '192.168.0.XX' | |
kodi_port = '8081' |
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
#!/usr/bin/env python | |
import requests | |
import json | |
import time | |
import sys | |
# | |
#/home/osmc/scripts/magnet.py "magnet:?xt=urn:btih:3e0a8674e7e2dba675c5073455d79b9e89d47955&dn=The.West.Wing.S07.1080p.WEB-DL.AAC2.0.H.264-NTb%5Brartv%5D&tr=http%3A%2F%2Ftracker.trackerfix.com%3A80%2Fannounce&tr=udp%3A%2F%2F9.rarbg.me%3A2950&tr=udp%3A%2F%2F9.rarbg.to%3A2900" -s 13 | |
# |
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
###/home/osmc/.kodi/addons/skin.arctic.horizon/1080i/Includes_Labels.xml: <!--PHIL--> | |
<variable name="Label_Info_Title"> | |
<!--PHIL--> | |
<value condition="Control.IsVisible(882)"> </value> | |
<!--MAKE TITLE BLANK WHEN CLEARLOGO VISIBLE--> | |
<!--PHIL--> | |
<value condition="[Container.Content() | Container.Content(playlists)] + String.IsEmpty(ListItem.DBType)">$INFO[System.Time]</value> | |
<value condition="[String.IsEqual(ListItem.DBType,season) | String.IsEqual(ListItem.DBType,episode)] + !String.IsEmpty(ListItem.TvShowTitle)">$INFO[ListItem.TvShowTitle]</value> |
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
###/home/osmc/.kodi/addons/plugin.video.themoviedb.helper/resources/lib/player.py | |
def play(self, itemtype, tmdb_id, season=None, episode=None, force_dialog=False): | |
########### | |
# Attempt to play local file first | |
is_local = False | |
# if self.details and self.itemtype == 'movie': | |
# is_local = self.playmovie() | |
# if self.details and self.itemtype == 'episode': | |
# is_local = self.playepisode() |
NewerOlder