source: titan/mediathek/localhoster/lib/common.py @ 42598

Last change on this file since 42598 was 42598, checked in by obi, 18 months ago

tithek fox fix master.fox stream playback

File size: 2.5 KB
Line 
1"""
2    urlresolver XBMC Addon
3    Copyright (C) 2011 t0mm0
4
5    This program is free software: you can redistribute it and/or modify
6    it under the terms of the GNU General Public License as published by
7    the Free Software Foundation, either version 3 of the License, or
8    (at your option) any later version.
9
10    This program is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13    GNU General Public License for more details.
14
15    You should have received a copy of the GNU General Public License
16    along with this program.  If not, see <http://www.gnu.org/licenses/>.
17"""
18import os
19from net import Net, get_ua  # @UnusedImport
20#from lib import log_utils  # @UnusedImport
21#from lib.net import Net  # @UnusedImport
22#from lib import cache  # @UnusedImport
23#from lib import kodi
24
25#addon_path = kodi.get_path()
26#plugins_path = os.path.join(addon_path, 'lib', 'urlresolver', 'plugins')
27#profile_path = kodi.translate_path(kodi.get_profile())
28#settings_file = os.path.join(addon_path, 'resources', 'settings.xml')
29#addon_version = kodi.get_version()
30addon_version = '1.0'
31#get_setting = kodi.get_setting
32#set_setting = kodi.set_setting
33#open_settings = kodi.open_settings
34#has_addon = kodi.has_addon
35
36
37RAND_UA = get_ua()
38IE_USER_AGENT = 'Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; AS; rv:11.0) like Gecko'
39#FF_USER_AGENT = 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/4.4.7.3000 Chrome/30.0.1599.101 Safari/537.36'
40FF_USER_AGENT = 'Mozilla%2F5.0+%28Windows+NT+6.3%3B+rv%3A36.0%29+Gecko%2F20100101+Firefox%2F36.0'
41OPERA_USER_AGENT = 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36 OPR/34.0.2036.50'
42IOS_USER_AGENT = 'Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25'
43ANDROID_USER_AGENT = 'Mozilla/5.0 (Linux; Android 4.4.2; Nexus 4 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.114 Mobile Safari/537.36'
44EDGE_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; ServiceUI 13) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134'
45CHROME_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36'
46SMU_USER_AGENT = 'URLResolver for Kodi/%s' % (addon_version)
Note: See TracBrowser for help on using the repository browser.